Skip to content

Commit 1fdec31

Browse files
Merge pull request #158 from LedgerHQ/enable-derivation-modes
Enable BLS12-377 and ZIP32 derivations in parameters installation
2 parents f9b7add + 13cc1ca commit 1fdec31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ledgerblue/loadApp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_argparser():
5454
parser.add_argument(
5555
"--curve",
5656
help="""A curve on which BIP 32 derivation is locked ("secp256k1", "secp256r1",
57-
"ed25519" or "bls12381g1"), can be repeated""",
57+
"ed25519", "bls12381g1", "bls12377g1" or "jubjub"), can be repeated""",
5858
action="append",
5959
)
6060
parser.add_argument(
@@ -227,6 +227,10 @@ def main(args, debug: bool = True):
227227
curveMask |= 0x04
228228
elif curve == "bls12381g1":
229229
curveMask |= 0x10
230+
elif curve == 'bls12377g1':
231+
curveMask |= 0x20
232+
elif curve == 'jubjub':
233+
curveMask |= 0x40
230234
else:
231235
raise Exception("Unknown curve " + curve)
232236

0 commit comments

Comments
 (0)