Categorygithub.com/ethereum/go-verkle
modulepackage
0.2.2
Repository: https://github.com/ethereum/go-verkle.git
Documentation: pkg.go.dev

# README

Go Version Lint and Test goreports API Reference

go-verkle

A Go implementation of Verkle Tree datastructure defined in the spec.

Test & Benchmarks

To run the tests and benchmarks, run the following commands:

$ go test ./...

To run the benchmarks:

go test ./... -bench=. -run=none -benchmem

Security

If you find any security vulnerability, please don't open a GH issue and contact repo owners directly.

LICENSE

License.

# Packages

No description provided by the author

# Functions

BatchNewLeafNode creates a new leaf node from the given data.
No description provided by the author
DeserializeProof deserializes the proof found in blocks, into a format that can be used to rebuild a stateless version of the tree.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HexToPrefixedString turns a byte slice into its hex representation and prefixes it with `0x`.
No description provided by the author
No description provided by the author
MergeTrees takes a series of subtrees that got filled following a command-and-conquer method, and merges them into a single tree.
New creates a new tree root.
New creates a new leaf node.
NewLeafNodeWithNoComms create a leaf node but does not compute its commitments.
No description provided by the author
ParseNode deserializes a node into its proper VerkleNode instance.
PostStateTreeFromProof uses the pre-state trie and the list of updated values to produce the stateless post-state trie.
PrefixedHexStringToBytes does the opposite of HexToPrefixedString.
PreStateTreeFromProof builds a stateless prestate tree from the proof.
SerializeProof serializes the proof in the rust-verkle format: * len(Proof of absence stem) || Proof of absence stems * len(depths) || serialize(depth || ext statusi) * len(commitments) || serialize(commitment) * Multipoint proof it also returns the serialized keys and values.
No description provided by the author
No description provided by the author
Verify is the API function that verifies a verkle proofs as found in a block/execution payload.

# Constants

Defined by the spec.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
EmptyCodeHashPoint is a cached point that is used to represent an empty code hash.
EmptyCodeHashPoint is a cached point that is used to represent an empty code hash.
EmptyCodeHashPoint is a cached point that is used to represent an empty code hash.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BatchNewLeafNodeData is a struct that contains the data needed to create a new leaf node.
No description provided by the author
A few proxy types that export their fields, so that the core type does not.
A few proxy types that export their fields, so that the core type does not.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProofElements gathers the elements needed to build a proof.
SerializedNode contains a serialization of a tree node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author