Skip to content

Instantly share code, notes, and snippets.

@amiller
Created October 17, 2022 14:10
Show Gist options
  • Save amiller/197e1e24f19b13c57b8e0db1cbed6538 to your computer and use it in GitHub Desktop.
Save amiller/197e1e24f19b13c57b8e0db1cbed6538 to your computer and use it in GitHub Desktop.
from ed25519_axolotl import (validate_signature, fast_signature)
# This is the master public key for the Secret-4 blockchain.
consensus_io_exchange_pubkey = \
bytes.fromhex("083b1a03661211d5a4cc8d39a77795795862f7730645573b2bcc2c1920c53c04")
message = """
I have captured the Secret-4 consensus_seed flag!
Let's sign the logbook then dispose of this toxic waste.
-- Andrew Miller
Decentralized Systems Lab
October 6, 2022
"""
signature = bytes.fromhex("e8a9ebb32e9670801d557038e60c07a8c7abc9dddddfca0a50b850cbf880e298"+
"a26647e7f77a72a222af2926ca13a4d71f997bcc64f7670f9a51c91ea502c903")
assert validate_signature(consensus_io_exchange_pubkey, message.encode('utf-8'), signature)
print(message)
print('Signature Ok')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment