You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once in a ~10 transaction, I am getting the following error: "message": "invalid high s-value encountered in r1 signature at /v1/chain/send_transaction2", "stack": "exception: invalid high s-value encountered in r1 signature at /v1/chain/send_transaction2\n at APIClient.<anonymous> (/Users/dev-dante/Documents/Codes/eos/node_modules/@wharfkit/antelope/src/api/client.ts:139:19)\n at Generator.next (<anonymous>)\n at fulfilled (/Users/dev-dante/Documents/Codes/eos/node_modules/tslib/tslib.js:114:62)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)" } }
I looked through the code base but couldn't figure out what's the reason. The error is coming from this line.
PS:
I am using wharfkit/antelope library to send transaction.
My accounts public/private key is R1, not K1.
The text was updated successfully, but these errors were encountered:
yes, I'm using secp256r1 implementation of elliptic javascript library, I'm not using antelope's own signer. (I am performing offline signing). I am using R1 public and private keys.
You need to make sure the signature is in canonical format which for secp256r1 signatures in leap means the s value is less than the half order of the curve. If you're using elliptic it can do that for you by passing canonical: true. For example, how wharfkit passes that option when performing the signatur with elliptic, https://github.com/wharfkit/antelope/blob/master/src/crypto/sign.ts#L22
Hi
Once in a ~10 transaction, I am getting the following error:
"message": "invalid high s-value encountered in r1 signature at /v1/chain/send_transaction2", "stack": "exception: invalid high s-value encountered in r1 signature at /v1/chain/send_transaction2\n at APIClient.<anonymous> (/Users/dev-dante/Documents/Codes/eos/node_modules/@wharfkit/antelope/src/api/client.ts:139:19)\n at Generator.next (<anonymous>)\n at fulfilled (/Users/dev-dante/Documents/Codes/eos/node_modules/tslib/tslib.js:114:62)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)" } }
I looked through the code base but couldn't figure out what's the reason. The error is coming from this line.
PS:
I am using
wharfkit/antelope
library to send transaction.My accounts public/private key is
R1
, notK1
.The text was updated successfully, but these errors were encountered: