# Functions
CreateBlockchain creates a new local blockchain DB.
No description provided by the author
DeserializeAccount deserializes an account.
DeserializeBlock deserializes a block from persistence.
DeserializeDocumentMapping deserializes encoded bytes to an DocumentMapping object.
DeserializeTransaction deserializes a transaction.
IntToHex converts an int64 to a byte array.
No description provided by the author
isValidSig verifies if the rawData is a signed correctly.
NewBlock creates and returns Block.
NewBlockchain creates a new Blockchain with genesis Block (reading existing DB data and initializing a Blockchain struct).
NewCoinbaseTX creates a new coinbase transaction.
NewGenesisBlock creates and returns genesis block.
NewMerkleNode creates a new Merkle tree node.
NewMerkleTree creates a new Merkle tree from a sequence of data.
NewSearch create an instance to access the search features.
NewTransaction creates a new transaction.
PublicKeyToAddress generates the address of a given publicKey in bytes.
RandStringBytesMask generates random string using masking with source.
Sign signs the digest of rawData.
SortByteArrays sorts the slice of byte arrays.
UnmarshalAccount deserializes an account for p2p.
# Constants
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
# Structs
Account represents an end user's information including the public key.
Block keeps block headers.
Blockchain keeps a sequence of Blocks.
Document represents a document with metadata in the search result.
DocumentMapping represents the schema of a collection.
MerkleNode represents a Merkle tree node.
MerkleTree represents a Merkle tree.
Role represents the rights of access to collections and API endpoints.
Search encapsulates all the indices with search engine features.
Transaction one transaction has on document.