Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Work Please see 1sr comment for further details. Please enter the password: Crypto this is the hash of entered password of12b878966127473291296ec828eab6120275863680ec60@3682821d77fd31 This the hash

Python Work

Please see 1sr comment for further details.

image text in transcribedimage text in transcribed
Please enter the password: Crypto this is the hash of entered password of12b878966127473291296ec828eab6120275863680ec60@3682821d77fd31 This the hash of our password df12bat89661274c73291296ec828eab61202+5863680ec6003682821d77fd31 The hash matches please continue e. After hash matching, it should ask borrower and lender name, then it check whether both borrower and lender names exist in the blocks or not, if yes, then ask the amount you should transfer, If name does not exist in blocks, it should not perform the transaction and display the message "wrong names, re enter the name/data" 15 Marks Enter your borrower name: Prudvi Enter your lender name: Vamsi Both Borrower and Lender are in block chain please continue f. When user enter the amount, then the amount from the borrower should be deducted and the amount should be added to the lender. If the entered amount is more than the amount existed in the block then it should display the message "Not enough amount, re-enter the amount" 15 Marks Enter the amount of money you want to send: 10 Transaction is complete please check your account g. Now new hash should be generated and blocks should be updated since the transaction is done. 5 Marks. 'i'our required to extend that program by creating a new function called "transaction" which should perform a transaction in between the borrower and lender and a function called password which should create hash for the password entered . The transaction function should contain a. Hardcode your password in the code and create a hash of this variable our_password 5 Marks b. Ask the user if they want to perform the transaction, If user say "'i'es" it should move further for performing transaction otherwise it end with message \"Thank you" 5 Marks c. Ifyes then user have to enter the password, hash should be generated by using the password function you created, this hash and the previous password hash should match. 5 Marks d. If hash doesn't match - Then it should print entered password is wrong 5 Marks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago