Skip to content

Instantly share code, notes, and snippets.

@llk23r
Created March 8, 2024 11:05
Show Gist options
  • Save llk23r/448fe712439488ec193983ac64b326c9 to your computer and use it in GitHub Desktop.
Save llk23r/448fe712439488ec193983ac64b326c9 to your computer and use it in GitHub Desktop.
decode blockerts encoded proof
# pip install lds_merkle_proof_2019
from lds_merkle_proof_2019.merkle_proof_2019 import MerkleProof2019
example_proof_value = "znKD4YGVqA8texv1PrVrhripRpmtid9LqxNj8TRUKHD5dXobGcBnZcHJMY3oguH9T8YcT9MuqnzQxYYRcReoxc9vm5PhucNBqdFYwZuwNEeFTn9GoJLPqAwQSw2J2atnCuEFAqwMXstnLkSNQrEwpBAGshkH1eMhqSYh4Ut3gVHq85eSKuu2YFHeCHAXN6QW7qfAiiiS4VLSE9E9PPUDdbp3MrDSb52gentZHJiHJHpKggxKs8GYYkqFQmr7rJ8HqVzLmwRRMAYA7TsVopawvFGtXTsbWXg6BK9jCFEPYvD3vNBvW5bVpEGvJgH"
mp2019 = MerkleProof2019()
decoded_proof = mp2019.decode(example_proof_value)
print(decoded_proof)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment