js-multiformats icon indicating copy to clipboard operation
js-multiformats copied to clipboard

Multiformats interface (multihash, multicodec, multibase and CID)

Results 40 js-multiformats issues
Sort by recently updated
recently updated
newest added

## Goal As per https://github.com/ipld/js-car/issues/123 we do need a solution for verifying hashes in CAR files without shipping all the `MultihashHasher`-s with the CAR library. ## Proposal 1. Introduce backwards...

## Goal As per https://github.com/ipld/js-car/issues/123 we do need a solution for verifying hashes in CAR files without shipping all the MultihashHasher-s with the CAR library. ## Proposal Define a separate...

I believe @mikeal has compressed CID set representation & implementation. CID sets come up all the time and we always resort to some hacky version like maps with CID keys...

Currently `BlockEncoder` interface just encodes passed input into bytes https://github.com/multiformats/js-multiformats/blob/58117f2c1a90934903651b456ec3a09552d942e7/src/codecs/interface.ts#L6-L10 Problem is: 1. If you go beyond block size limit, your block won't be bit-swappable. 2. You may not even...

As things stand today it is impossible to satisfy both `Link` and `Block` interfaces with a same instance, because both they collide on `bytes` field: https://github.com/multiformats/js-multiformats/blob/15c52c8a5384e1bc84cccfa34ed6c7a78eb23978/src/block/interface.ts#L47-L55 https://github.com/multiformats/js-multiformats/blob/15c52c8a5384e1bc84cccfa34ed6c7a78eb23978/src/link/interface.ts#L21-L42 This is unfortunate...

Would like to know if this is the desired behavior: ```js Block = await import('multiformats/block') codec = await import('@ipld/dag-cbor') { sha256: hasher } = await import('multiformats/hashes/sha2') bytes = Buffer.from([ 100,...

P2

One of the problems we keep running into is: does this data going to fit the block size limit ? Right now there is no great solution for this, only...

Right now -- I should say, from how I understand it -- `js-multiformats` defines an interface for encoding and decoding using [individual codecs](https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts). This encapsulates the codec pattern perfectly well....

help wanted
P2
exp/expert

We're running into more and more cases where `BlockEncoder` interface just does not fit the bill: 1. With IPNFT geared towards NFTs we've discovered that NFT metadata can easily exceed...

I find `.code` filed and `.name` (to lesser degree) fields on following interfaces to be troublesome https://github.com/multiformats/js-multiformats/blob/9bcd7fef62888d7cefe8e4f5e929d4e3c9dadda9/src/codecs/interface.ts#L4-L15 Problem is that it prevents one from defining codec composition without introducing subtle...