cysecud / ecc_weak_keys

elliptic curve algorithm and nist curves
0 stars 1 forks source link

secp256k1.gp not work #5

Open Hurd8x opened 3 days ago

Hurd8x commented 3 days ago

key_pairs_gen() Your private and public keys have been generated! Type sk to visualize you secret key and pk to visualize the public key. ? test_key(pk,32) Point to be tested: [Mod(15082517359000147371703545448537779779783703943154367759348226164272700643883, 115792089237316195423570985008687907853269984665640564039457584007908834671663), Mod(42497839521293684573184706198506912554809336488225568870647095025902454102392, 115792089237316195423570985008687907853269984665640564039457584007908834671663)] Divisor: 18051648 at top-level: test_key(pk,32) ^--------------- in function test_key: ...ound==32,foreach(div32,d, bsgs(public_key,d)),i ^--------------------- in function bsgs: ...P,lift(Mod(zd,p)^(m*i))); foreach(bs,baby_step, ^--------------------- not a function in function call Break loop: type 'break' to go back to GP *** prompt

how to resolve this problem ?

Thank you.

enh11 commented 3 days ago

Try to change the path in the last line in the secp256k1.gp, \r /your/path/secp256k1.gp

I am out all weekend long. Thus, I will fix it on Monday if other problems come. Let me know. Regards.

Il ven 29 nov 2024, 18:16 Hurd8x @.***> ha scritto:

key_pairs_gen() Your private and public keys have been generated! Type sk to visualize you secret key and pk to visualize the public key. ? test_key(pk,32) Point to be tested: [Mod(15082517359000147371703545448537779779783703943154367759348226164272700643883, 115792089237316195423570985008687907853269984665640564039457584007908834671663), Mod(42497839521293684573184706198506912554809336488225568870647095025902454102392, 115792089237316195423570985008687907853269984665640564039457584007908834671663)] Divisor: 18051648 at top-level: test_key(pk,32) ^--------------- in function test_key: ...ound==32,foreach(div32,d, bsgs(public_key,d)),i ^--------------------- in function bsgs: ...P,lift(Mod(zd,p)^(m*i))); foreach(bs,baby_step, ^--------------------- not a function in function call Break loop: type 'break' to go back to GP *** prompt

how to resolve this problem ?

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/cysecud/ecc_weak_keys/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAT24MF5I3DTKC573WDMSUL2DCOPTAVCNFSM6AAAAABSXPW7SGVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YDKNZRGYYTINA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hurd8x commented 3 days ago

Try to change the path in the last line in the secp256k1.gp, \r /your/path/secp256k1.gp I am out all weekend long. Thus, I will fix it on Monday if other problems come. Let me know. Regards. Il ven 29 nov 2024, 18:16 Hurd8x @.> ha scritto: key_pairs_gen() Your private and public keys have been generated! Type sk to visualize you secret key and pk to visualize the public key. ? test_key(pk,32) Point to be tested: [Mod(15082517359000147371703545448537779779783703943154367759348226164272700643883, 115792089237316195423570985008687907853269984665640564039457584007908834671663), Mod(42497839521293684573184706198506912554809336488225568870647095025902454102392, 115792089237316195423570985008687907853269984665640564039457584007908834671663)] Divisor: 18051648 at top-level: test_key(pk,32) ^--------------- in function test_key: ...ound==32,foreach(div32,d, bsgs(public_key,d)),i ^--------------------- in function bsgs: ...P,lift(Mod(zd,p)^(mi))); ** foreach(bs,baby_step, ^--------------------- not a function in function call Break loop: type 'break' to go back to GP prompt how to resolve this problem ? Thank you. — Reply to this email directly, view it on GitHub <#5>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAT24MF5I3DTKC573WDMSUL2DCOPTAVCNFSM6AAAAABSXPW7SGVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YDKNZRGYYTINA . You are receiving this because you are subscribed to this thread.Message ID: @.>

Im already change a path, without change a path, another error.Thank you very mach for fix.