Skip to content

Instantly share code, notes, and snippets.

View astrojarred's full-sized avatar
🌈

Jarred Green astrojarred

🌈
View GitHub Profile

Keybase proof

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:

@astrojarred
astrojarred / bip39_translator.py
Created May 20, 2021 17:05
Translates numerical representations of a 15-word bip39 key into a list of words
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
@astrojarred
astrojarred / blockly.xml
Last active October 1, 2021 05:04
Token Sale 1
When
[Case
(Deposit
(Role "seller")
(Role "seller")
(Token "" "")
(Constant 2000000)
)
(When
[Case
@astrojarred
astrojarred / pycardano_cose.py
Last active May 25, 2022 23:20
Signing and Verifying messages with Pycardano and COSE
# 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