Skip to content

Instantly share code, notes, and snippets.

View thomivy's full-sized avatar

Thom Ivy thomivy

View GitHub Profile
import json
import base58
import pandas as pd
from web3 import Web3
def substrate_to_evm_address(substrate_address):
# Decode the SS58-encoded Substrate address to bytes
bytes_address = base58.b58decode(substrate_address)
# The first byte is the SS58 prefix. Remove it.
bytes_address_without_prefix = bytes_address[1:]
@thomivy
thomivy / keybase.md
Created September 20, 2019 13:51
Keybase Verification

Keybase proof

I hereby claim:

  • I am thomivy on github.
  • I am thomivy (https://keybase.io/thomivy) on keybase.
  • I have a public key ASApcdnwKPVQqFvNc4RMfXcsz1SI0n17K2SOO0vLYIm1bAo

To claim this, I am signing this object:

@thomivy
thomivy / proof
Created September 15, 2019 01:15
Edgeware Identity Attestation
Attesting to my edgeware account: II 0xccbfd1e6ac45b7e4cacfb6b622edfef33b9a89b685e115dda463a8772cb2b014 II
@thomivy
thomivy / proof
Created September 6, 2019 14:52
Edgeware Identity Attestation
Attesting to my edgeware account: II 0xe3dfe38119ded3ce89e876518921fc5a3e132998145aaedaa46d95fb73c4d72e II
@thomivy
thomivy / proof
Created September 3, 2019 20:21
Edgeware Identity Attestation
Attesting to my edgeware account: II 0xe3dfe38119ded3ce89e876518921fc5a3e132998145aaedaa46d95fb73c4d72e II
Verifying my Blockstack ID is secured with the address 13sgfUa9stjVapiQPt31VzVN3VtYk3CvHT https://explorer.blockstack.org/address/13sgfUa9stjVapiQPt31VzVN3VtYk3CvHT