Categorygithub.com/musalbas/lazyledger-prototype
modulepackage
0.0.0-20200626135724-2aeca6f55ad3
Repository: https://github.com/musalbas/lazyledger-prototype.git
Documentation: pkg.go.dev

# README

lazyledger-prototype

Build Status Coverage Status GoDoc

# Packages

No description provided by the author

# Functions

ImportProbabilisticBlock imports a received probabilistic block.
ImportProbabilisticBlockBlockHeader imports a received probabilistic block without the messages.
ImportSimpleBlock imports a received simple block.
ImportSimpleBlockHeader imports a received simple block without the messages.
NewBlockchain returns a new blockchain.
NewBytesLeafHasher returns a new BytesLeafHasher for a slice.
NewCodedAxisSubtreeHasher returns a new CodedAxisSubtreeHasher for a pointer to a slice representing a coded axis.
NewCurrency creates a new currency instance.
No description provided by the author
NewFlagHasher returns a new hash.Hash computing checksums using the bashHasher with flags from flagger.
NewHashLeafHasher returns a new MessageLeafHasher for a slice of hashes.
NewMessage returns a new message from its namespace and data.
NewMessageLeafHasher returns a new MessageLeafHasher for a pointer to a slice of messages.
NewMessageSubtreeHasher returns a new MessageSubtreeHasher for a pointer to a slice of messages.
NewNamespaceDummyFlagger returns a new dummy flagger for namespaced Merkle trees.
NewPaddedMessageLeafHasher returns a new MessageLeafHasher for a pointer to a slice of messages, where messages should be padded.
No description provided by the author
NewProbabilisticBlock returns a new probabilistic block.
No description provided by the author
NewSimpleBlock returns a new simple block.
NewSimpleBlockStore creates a new empty simple block store.
NewSimpleMap creates a new empty SimpleMap.
UnmarshalMessage returns a message from its marshalled raw data.
UnmarshalPaddedMessage returns a message from its marshalled padded raw data.

# Structs

No description provided by the author
Blockchain is a chain of blocks.
BytesLeafHasher implements the merkletree.LeafHasher interface by reading a slice.
CodedAxisSubtreeHasher implements merkletree.SubtreeHasher by reading leaf data from an underlying slice representing a coded axis.
Currency is a demo cryptocurrency application.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HashLeafHasher implements the merkletree.LeafHasher interface from a slice of hashes.
InvalidKeyError is thrown when a key that does not exist is being accessed.
Message represents a namespaced message.
MessageLeafHasher implements the merkletree.LeafHasher interface by reading leaf data from an underlying slice of messages.
MessageSubtreeHasher implements merkletree.SubtreeHasher by reading leaf data from an underlying slice of messages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProbabilisticBlock represents a block designed for the Probabilistic Validity Rule.
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
SimpleBlock represents a block designed for the Simple Validity Rule.
SimpleBlockStore is a simple in-memory block store.
SimpleMap is a simple in-memory map.

# Interfaces

Application is an interface for a lazyledger application.
Block represents a block in the chain.
BlockStore is a key-value store for blocks.
Flagger is an interface for computing the flags of bytes of data.
MapStore is a key-value store.

# Type aliases

No description provided by the author