I hereby claim:
- I am astrojarred on github.
- I am astrojarred (https://keybase.io/astrojarred) on keybase.
- I have a public key ASCXbNSJdrbgCN4rZSk643tkZ2dyJfS9tlNTHUldTfhr7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from bip_utils import Bip39MnemonicValidator, MnemonicFileReader | |
# install bip_utils with `pip install bip_utils` | |
# https://pypi.org/project/bip-utils/ | |
def get_key(data, datatype="decimal", index_shift=0): | |
""" | |
Translates numerical representations of a 15-word bip39 key into a list of words |
When | |
[Case | |
(Deposit | |
(Role "seller") | |
(Role "seller") | |
(Token "" "") | |
(Constant 2000000) | |
) | |
(When | |
[Case |
# Signing and Verifying messages with COSE | |
from binascii import hexlify, unhexlify | |
from typing import Tuple, Union | |
import pycardano | |
from cose.algorithms import EdDSA | |
from cose.headers import KID, Algorithm | |
from cose.keys import CoseKey | |
from cose.keys.curves import Ed25519 | |
from cose.keys.keyops import SignOp, VerifyOp |