Question: Use Python Language: In this assignment, your task is to implement a program creating/executing P2MS script using the Pycryptodome package. The requirements for the program

Use Python Language: In this assignment, your task is to implement a program creating/executing P2MS script using the Pycryptodome package. The requirements for the program are as follows: 1) Use Python 3.5 or above and Pycryptodome package. 2) To simulate P2MS script, the program takes two parameters the number of signatures (M) for scriptSig and the number of public keys (N) for scriptPubKey. N is equal to or greater than M and outputs scriptPubKey (in scriptPubKey.txt) and scriptSig (in scriptSig.txt). a) The program (randomly) is needed to generate N pairs of DSA 1024 bits public keys/private keys. b) The program generates M DSA signatures using the private keys generated in a). The text CSCI301 Contemporary Topics in Security 2023 is signed in each signature and they must be signed by the different private keys. c) scriptPubKey and scriptSig must be generated using the values generated in a) and b) 3) Your program is needed to execute a P2MS script by taking scriptPubKey and scriptSig. In particular, the program 1) takes scriptPubKey and scriptSig from files 2) constructs a script and 3) executes the script. You can implement this in a separate program if you want.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!