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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started