o1-labs / o1js

TypeScript framework for zk-SNARKs and zkApps

Home Page:https://docs.minaprotocol.com/en/zkapps/how-to-write-a-zkapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mina-signer: mention private key conversion function when `PrivateKey.fromBase58()` fails

mitschabaude opened this issue · comments

Several users of mina-signer have been trying to use it with out of range private keys and ran into an error.

That's why we introduced a conversion function to support these private keys.
That function should be mentioned in the error message, whenever PrivateKey.fromBase58() fails with an error containing

Scalar: inputs larger than XXX are not allowed, got YYY

Hey I would like to help this issue if it is still available. @mitschabaude

@emirsoyturk yes that would be great! It's available

Just opened a PR