Skip to content

Instantly share code, notes, and snippets.

@mratsim
Created February 12, 2020 19:15
Show Gist options
  • Save mratsim/41018698f3fead92f2b05d2ef4e3d055 to your computer and use it in GitHub Desktop.
Save mratsim/41018698f3fead92f2b05d2ef4e3d055 to your computer and use it in GitHub Desktop.
from py_ecc import bls
privkey = int('0x47b8192d77bf871b62e87859d653922725724a5c031afeabc60bcef5ff665138', 16)
message = bytes.fromhex('0000000000000000000000000000000000000000000000000000000000000000')
sig = bls.G2ProofOfPossession.Sign(privkey, message)
print(f'message: 0x{sig.hex()}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment