Closed vishalxl closed 1 year ago
Can you send a pull request? If not I can do it eventually, but inertia is a force.
will send soon.
Update: Once I pad the 0's to the returned value of public key, even then there seems to be a problem where the signed nostr message/event is not being accepted by the relays, so it indicates the messages using such secret key ( with leading 0's in its public key) aren't being generated correctly.
To give a sample for investigators
ea7daa0537b93aa3ae4495a274ecc05077e3dc168809d77a7afa4ec1db0fb3bd # private key
0ba0206887bd61579bf65ec09d7806bea32c64be1cf2c978cf031a811cd238db # public key
Trying to figure out whats wrong here. This is really huge issue for all dart/flutter client, cause its making signatures wrong as @vishalxl said . Unfortunately haven't been able to figure out where is the problem, but will continue next week trying
Had a discussion with @fiatjaf and we werent able reproduce failing events (so it was probably mistake on my site). In this case, just leading 0's were the issue
The result is that the user gets wrong value.
In function getPublicKey(...)
Should be
@johnonchain