/* Package dagpb provides an implementation of the LD DAG-PB spec (https://gitlab.dms3.io/ld/specs/blob/master/block-layer/codecs/dag-pb.md) for go-ld-prime (https://gitlab.dms3.io/ld/go-ld-prime/). Use Decode() and Encode() directly, or import this package to have this codec registered into the go-ld-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: type PBNode struct { Links [PBLink] Data optional Bytes } type PBLink struct { Hash Link Name optional String Tsize optional Int } Use dagpb.Type.PBNode and friends directly for strictness guarantees. Basic ld.Node's will need to have the appropriate fields (and no others) to successfully encode using this codec. */ package dagpb //go:generate go run gen.go //go:generate gofmt -w ldsch_minima.go ldsch_satisfaction.go ldsch_types.go