ucan.storage icon indicating copy to clipboard operation
ucan.storage copied to clipboard

UCAN.storage spec and packages

Results 11 ucan.storage issues
Sort by recently updated
recently updated
newest added

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...

cic

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...

stack/api-protocols
topic/ucan

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 =...

stack/api-protocols
topic/ucan

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`...

stack/api-protocols
topic/ucan

stack/api-protocols
topic/ucan

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...

stack/api-protocols
topic/ucan

https://github.com/nftstorage/ucan.storage/pull/3#issuecomment-1063907968

stack/api-protocols
topic/ucan