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 line: await fs.promises.writeFile(kp.export())
is missing an argument (outputFilename).
The function loadKeyPairFromFile gets this error:
/nft-storage-quickstart/node_modules/ucan-storage/src/encoding.js:38
throw new SyntaxError(`Non-${name} character`)
^
SyntaxError: Non-base64pad character
at decode (/nft-storage-quickstart/node_modules/ucan-storage/src/encoding.js:38:13)
at Object.decode (/nft-storage-quickstart/node_modules/ucan-storage/src/encoding.js:123:14)
at Function.fromExportedKey (nft-storage-quickstart/node_modules/ucan-storage/src/keypair.js:42:34)
at loadKeyPairFromFile (/nft-storage-quickstart/test.mjs:22:20)
at async /nft-storage-quickstart/test.mjs:64:10
The text was updated successfully, but these errors were encountered:
Examples in this section:
https://nftstorage.github.io/ucan.storage/#saving-and-loading-keypairs
Have some errors.
This line:
await fs.promises.writeFile(kp.export())
is missing an argument (outputFilename).
The function loadKeyPairFromFile gets this error:
The text was updated successfully, but these errors were encountered: