go-ipld-cbor
go-ipld-cbor copied to clipboard
A cbor implementation of the go-ipld-format
This PR introduces a `BatchOpIpldStore` that exposes `GetMany` and `PutMany` methods. This is for use in parallel `ForEach` traversal methods for go-hamt-ipld and go-amt-ipld. Actually only the `GetMany` method is...
@arajasek just pushed a release tag: v0.0.6. Please manually verify validity (using [`gorelease`](https://pkg.go.dev/golang.org/x/exp/cmd/gorelease)), and update `version.json` to reflect the manually released version, if necessary. In the future, please use the...
Can we begin deprecation of this repository in favor of https://github.com/ipld/go-ipld-prime/tree/master/codec/dagcbor ?
Currently I have to convert the cbor node to JSON, then modify the doc as a interface{}, then create a byte reader and pass it back to `.FromJSON()` to get...
Just wanted to note something we ran into in our codebase. We recently upgraded our refmt because it has a lot of performance improvements. However, we use uint64s in our...
testcase in the code: https://github.com/ipfs/go-ipld-cbor/blob/e249008b68731703a093b723253be5175d518ed0/node_test.go#L337 ```go func TestResolvedValIsJsonable(t *testing.T) { // we can see that the value in map "foo" for key "bar" and "baz" is **interger** data := `{...
marshal for bigint is like: https://github.com/ipfs/go-ipld-cbor/blob/e249008b68731703a093b723253be5175d518ed0/refmt.go#L27-L36 ```go var BigIntAtlasEntry = atlas.BuildEntry(big.Int{}).Transform(). TransformMarshal(atlas.MakeMarshalTransformFunc( func(i big.Int) ([]byte, error) { return i.Bytes(), nil })). TransformUnmarshal(atlas.MakeUnmarshalTransformFunc( func(x []byte) (big.Int, error) { return *big.NewInt(0).SetBytes(x), nil...
I use rust to impl IPFS, and now, I meet a problem in CBOR serialize. this project use cbor serialize/deserialize lib is `github.com/polydawn/refmt` but I think this CBOR implementation not...
We currently encode byte slices to base64 encoded strings. We should instead use the escape syntax. Unfortunately, making this work _correctly_ may be kind of a pain.
We're now using `cid.Cid{}` (empty) as the "nil" CID. Unfortunately, refmt won't encode this to null. With https://github.com/polydawn/refmt/pull/36, we can at least *omit* empty CIDs however, we still need to...