Skip to content

Instantly share code, notes, and snippets.

@abramsymons
Created October 12, 2025 11:29
Show Gist options
  • Save abramsymons/6117939c573f733452824322fa2a6bfa to your computer and use it in GitHub Desktop.
Save abramsymons/6117939c573f733452824322fa2a6bfa to your computer and use it in GitHub Desktop.
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