Skip to content

A Jupyter notebook based implementation of BIP0322 signatures using Jimmy Song's buidl-python bitcoin library

Notifications You must be signed in to change notification settings

wip-abramson/bip0322-signatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: Work on this project is continuing under a Legendary Requirements repository which can be found here

BIP-0322 Signatures for Verifiable Credentials

BIP-0322: Generic Signed Message Format

There are two jupyter notebooks in this folder. They attempt to demonstrate how you would use BIP-0322 signatures to sign and verify a VC. There is a notebook for each.

However, initially all these notebooks are trying to do is implement BIP-0322 signatures using the buidl-python library developed by Jimmy Song.

Current Issues

I am currently unable to either verify or produce the signature provided in the BIP-0322 test vectors. However, using the current implementation in the signing notebook I am able to produce a signature, that can be verified in the verification notebook.

The most likely issue here is I have replicated the same error across both notebooks, however currently I have been unable to spot this.

Note: These instructions are for a linux machine

Pre-requisites

  • Python v3.8
  • Pip

Running the Notebooks

  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install python packages
pip install -r requirements.txt
  1. Launch the jupyter server
jupyter notebook
  1. Run through the notebooks

shift + enter runs a cell

About

A Jupyter notebook based implementation of BIP0322 signatures using Jimmy Song's buidl-python bitcoin library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published