Created
October 12, 2025 11:29
-
-
Save abramsymons/6117939c573f733452824322fa2a6bfa 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 pprint import pprint | |
from eigensdk.crypto.bls import attestation | |
BLS_KEY_STORE_PATH = "" | |
BLS_KEY_PASSWORD = "" | |
bls_key_pair = attestation.KeyPair.read_from_file( | |
BLS_KEY_STORE_PATH, | |
BLS_KEY_PASSWORD, | |
) | |
d = { | |
"pubkeyG2_X": [ | |
bls_key_pair.pub_g2.x.get_a().getStr(10).decode(), | |
bls_key_pair.pub_g2.x.get_b().getStr(10).decode(), | |
], | |
"pubkeyG2_Y": [ | |
bls_key_pair.pub_g2.y.get_a().getStr(10).decode(), | |
bls_key_pair.pub_g2.y.get_b().getStr(10).decode(), | |
] | |
} | |
pprint(d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment