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
this change replaces the package tweetnacl with @noble/curves for Ed25519 curve signatures and validation.
To Reproduce
Steps to reproduce the behavior:
Generate an Ed25519KeyIdentity with dfx (old version of dfx, not exactly sure which one 🤷 )
Set up a TypeScript NodeJS Project with agent-js 0.15.3 installed and the script from utils.ts above, with your identity file path subbed in
Run the script with ts-node, it should succeed
Bump agent-js to ^1.1.1, and run the script again. You should see the error message described above.
Expected behavior Ed25519KeyIdentity.fromSecretKey() should not behave differently between 0.15.3 and agent-js >= 0.20.0
Desktop (please complete the following information):
OS: OSX
Node v18.12.1
The text was updated successfully, but these errors were encountered:
ByronBecker
changed the title
Issues reading in an Ed25519KeyIdentity from pem file after bumping agentJS from 0.15.3 to 1.1.1
Error reading in an Ed25519KeyIdentity from pem file after bumping agentJS from 0.15.3 to 1.1.1
Apr 2, 2024
Describe the bug
Previously, in a NodeJS enviroment calling
Ed25519KeyIdentity.fromSecretKey()
with a key generated from dfx worked.After bumping agentJS from
^0.15.3
to^1.1.1
, I now receive the following error.Where the code for forming the identity from the pem file looks like this:
I see that in the 0.20.0 Release Notes you have
To Reproduce
Steps to reproduce the behavior:
utils.ts
above, with your identity file path subbed inExpected behavior
Ed25519KeyIdentity.fromSecretKey()
should not behave differently between 0.15.3 and agent-js >= 0.20.0Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: