trickle

package
v0.4.13-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2017 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL