Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that X ,, - p X.

Answered: 1 week ago