# Functions

NewDag creates a new dag with the given config, and writes the dag db to memory.
NewTransaction creates a new transaction with the given account nonce, value, sender, recipient, gas price, gas limit, and payload.
OpenDag attempts to open all dag-related resources.
SignMessage signs a given message hash via ecdsa, and returns a new signature.
SignTransaction signs a given transaction via ecdsa, and sets the transaction signature to the new signature.
TransactionFromBytes deserializes a transaction from a given byte array.

# Variables

BestTransactionRequest represents the global best transaction request message byte value.
ErrAlreadySigned defines an error describing a situation in which a message has already been signed.
ErrDagAlreadyExists represents an error describing the attempted overwriting of an existing DAG.
ErrDagDbNotOpened represents an error describing the attempted appending of a data set to the working dag, despite the fact that the dag db has not yet been opened.
ErrDuplicateTransaction represents an error describing a duplicate transaction entry in the given working dag db.
ErrInvalidSignature represents an error describing an.
ErrNilGenesis represents an error describing a genesis value of nil.
ErrNilHash defines an error describing a situation in which a message has no hash.
ErrNilSignature represents an error describing a transaction lacking a signature.
ErrNilTransaction represents an error describing a transaction pointer of nil value.
ErrNilTransactionAtHash represents an error describing a transaction pointer of nil value discovered through the querying of the working db for an invalid hash.
ErrNoWorkingHost represents an error describing a p2p.WorkingHost value of nil.
GenesisHashRequest represents the global genesis transaction request message byte value.
TransactionRequest represents the global transaction request message byte value.
WorkingDagDB represents the current opened dag database.

# Structs

Dag is a simple struct used to abstract db reading and writing methods.
Signature is a data type representing a verifiable ECDSA signature--that of which is not necessarily a transaction signature.
Transaction is a data type representing a transfer of monetary value between addresses.