Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrickleAppend ¶ added in v0.3.2
func TrickleAppend(ctx context.Context, basen node.Node, db *h.DagBuilderHelper) (out node.Node, err_out error)
TrickleAppend appends the data in `db` to the dag, using the Trickledag format
func TrickleLayout ¶
func TrickleLayout(db *h.DagBuilderHelper) (node.Node, error)
func VerifyTrickleDagStructure ¶ added in v0.3.2
func VerifyTrickleDagStructure(nd node.Node, p VerifyParams) error
VerifyTrickleDagStructure checks that the given dag matches exactly the trickle dag datastructure layout
Types ¶
type VerifyParams ¶ added in v0.4.12
type VerifyParams struct { Getter node.NodeGetter Direct int LayerRepeat int Prefix *cid.Prefix RawLeaves bool }
VerifyParams is used by VerifyTrickleDagStructure
Click to show internal directories.
Click to hide internal directories.