Categorygithub.com/filecoin-project/go-amt-ipld/v4
modulepackage
4.4.0
Repository: https://github.com/filecoin-project/go-amt-ipld.git
Documentation: pkg.go.dev

# README

go-amt-ipld

Array Mapped Trie (Persistent Vector) implementation using go-ipld

This package is a reference implementation of the IPLD AMT used in the Filecoin blockchain.

AMT is an array mapped trie, suitable for storing large arrays, including sparse arrays.

**See https://godoc.org/github.com/filecoin-project/go-amt-ipld for more information and API details

License

Dual MIT and Apache 2

# Packages

No description provided by the author

# Functions

Diff returns a set of changes that transform node 'a' into node 'b'.
FromArray creates a new AMT and performs a BatchSet on it using the vals and options provided.
LoadAMT loads an existing AMT from the given IpldStore using the given root CID.
NewAMT creates a new, empty AMT root with the given IpldStore and options.
No description provided by the author
No description provided by the author

# Constants

These constants define the changes that can be applied to a DAG.
MaxIndex is the maximum index for elements in the AMT.
These constants define the changes that can be applied to a DAG.
These constants define the changes that can be applied to a DAG.

# Structs

Change represents a change to a DAG and contains a reference to the old and new CIDs.
Root is described in more detail in its internal serialized form, internal.Root.

# Type aliases

ChangeType denotes type of change in Change.
No description provided by the author