proxy.golang.org : github.com/ipld/go-codec-dagpb : v1.1.0
Package dagpb provides an implementation of the IPLD DAG-PB spec (https://github.com/ipld/specs/blob/master/block-layer/codecs/dag-pb.md) for go-ipld-prime (https://github.com/ipld/go-ipld-prime/). Use Decode() and Encode() directly, or import this package to have this codec registered into the go-ipld-prime multicodec registry and available from the cidlink.DefaultLinkSystem. Nodes encoded with this codec _must_ conform to the DAG-PB spec. Specifically, they should have the non-optional fields shown in the DAG-PB schema: Use dagpb.Type.PBNode and friends directly for strictness guarantees. Basic ipld.Node's will need to have the appropriate fields (and no others) to successfully encode using this codec.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/ipld/[email protected]
Published:
Indexed:
- github.com/ipfs/go-cid v0.0.7
- github.com/ipld/go-ipld-prime v0.9.0
- github.com/mr-tron/base58 v1.2.0
- github.com/multiformats/go-varint v0.0.6
- github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e
- golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1