ucan.storage
ucan.storage copied to clipboard
UCAN.storage spec and packages
I am trying to implement in the backend Nestjs to create a UCAN token. However, I have a problem with the ``` import { KeyPair } from 'ucan-storage/keypair’; ``` I...
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: ``` /nft-storage-quickstart/node_modules/ucan-storage/src/encoding.js:38 throw new SyntaxError(`Non-${name}...
Good point, but I wonder if that should be controlled by the [build](https://github.com/nftstorage/ucan.storage/pull/3/files/3677eca2683621cea8e9d081ce3e99f0b408a39d#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556R26). Basically `sign` should accept a header, payload, and the key pair. Honestly not a big deal, just...
I wonder if it's worth putting a check here to ensure that the proofs are encoded? Or even automated encoding of them if they're not, such as: ```javascript proofs =...
I've read through all of this, and it all looks great. I just have one suggestion (which may already be in the pipeline), which is that the logic in `semantics.js`...
token and issuer/audience are being validated together in each level of the chain, but the proofs chain can be a tree and we must allow for valid and invalid to...
https://github.com/nftstorage/ucan.storage/pull/3#issuecomment-1063907968