Skip to content

Popular Cryptographic Algorithms using various Crypto Libraries: Signatures

Notifications You must be signed in to change notification settings

bethanyuo/crypto_signatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cryptography: Signatures

Write code to play with popular cryptographic algorithms using crypto libraries from various programming languages. And, write code to sign Ethereum and Bitcoin messages, derive blockchain addresses and more.

Resources

Refer to the demos folder for sample calculations. Refer to the exercise-resources folder for sample inputs and outputs.

Python Libraries

JavaScript Libraries

Ethereum Signature Creator

Write a program to calculate an Ethereum signature by given message and private key.

  • Input: 256-bit private key + input text message.
  • Output: signature + message.

Ethereum Signature to Address

Write a program to find the signer’s Ethereum address by given message + Ethereum signature.

  • Input: message + signature
  • Output: address

Ethereum Signature Verifier

Write a program to verify the Ethereum signature of given message by given Ethereum address.

  • Input: message + signature + address
  • Output: valid / invalid.

Private Key to Bitcoin Address

Write a program to generate a Bitcoin address by given Bitcoin private key (WIF-encoded).

  • Input: BTC Private Key
  • Output: address

Module

MI1: Module 5: E1