Created
February 12, 2020 19:15
-
-
Save mratsim/41018698f3fead92f2b05d2ef4e3d055 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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