# Functions
CalculateCoinbase calculates the coinbase for a given height.
CalculateNumSiacoins calculates the number of siacoins in circulation at a given height.
CurrentTimestamp returns the current time as a Timestamp.
Ed25519PublicKey returns pk as a SiaPublicKey, denoting its algorithm as Ed25519.
IntToTarget converts a big.Int to a Target.
NewCurrency creates a Currency value from a big.Int.
NewCurrency64 creates a Currency value from a uint64.
PostTax returns the amount of currency remaining in a file contract payout after tax.
RatToTarget converts a big.Rat to a Target.
Tax returns the amount of Currency that will be taxed from fc.
TransactionGraph will return a set of valid transactions that all spend outputs according to the input graph.
# Constants
BlockHeaderSize is the size, in bytes, of a block header.
SpecifierLen is the length in bytes of a Specifier.
UnlockHashChecksumSize is the size of the checksum used to verify human-readable addresses.
# Variables
BlockFrequency is the desired number of seconds that should elapse, on average, between successive Blocks.
BlockSizeLimit is the maximum size of a binary-encoded Block that is permitted by the consensus rules.
EndOfTime is value to be used when a date in the future is needed for validation.
ErrDoubleSpend is an error when a transaction uses a parent object twice.
ErrEntropyKey is the error when a transaction tries to sign an entropy public key.
ErrFileContractOutputSumViolation is an error when a file contract has invalid output sums.
ErrFileContractWindowEndViolation is an error when a file contract window must end at least one block after it starts.
ErrFileContractWindowStartViolation is an error when a file contract window must start in the future.
ErrFrivolousSignature is the error when a transaction contains a frivolous signature.
ErrInvalidPubKeyIndex is the error when a transaction contains a signature that points to a nonexistent public key.
ErrInvalidUnlockHashChecksum is the error when the provided unlock hash has an invalid checksum.
ErrMissingSignatures is the error when a transaction has inputs with missing signatures.
ErrNegativeCurrency is the error that is returned if performing an operation results in a negative currency.
ErrNegativeTarget is an error when a negative value used when converting to target.
ErrNonZeroClaimStart is an error when a transaction has a siafund output with a non-zero siafund claim.
ErrNonZeroRevision is an error when a new file contract has a nonzero revision number.
ErrPrematureSignature is the error when the timelock on signature has not expired.
ErrPublicKeyOveruse is the error when public key was used multiple times while signing transaction.
ErrSortedUniqueViolation is the error when a sorted unique violation occurs.
ErrStorageProofWithOutputs is an error when a transaction has both a storage proof and other outputs.
ErrTimelockNotSatisfied is an error when a timelock has not been met.
These Specifiers are used internally when calculating a type's ID.
ErrTransactionTooLarge is an error when a transaction is too large to fit in a block.
ErrUint64Overflow is the error that is returned if converting to a unit64 would cause an overflow.
ErrUnlockHashWrongLen is the error when a marshalled unlock hash is the wrong length.
ErrWholeTransactionViolation is the error when there's a covered fields violation.
ErrZeroMinerFee is an error when a transaction has a zero value miner fee.
ErrZeroOutput is an error when a transaction cannot have an output or payout that has zero value.
ErrZeroRevision is an error when a transaction has a file contract revision with RevisionNumber=0.
ExtremeFutureThreshold is a temporal limit beyond which Blocks are discarded by the consensus rules.
FullCoveredFields is a covered fileds object where the 'WholeTransaction' field has been set to true.
FutureThreshold is a temporal limit beyond which Blocks are discarded by the consensus rules.
GenesisBlock is the first block of the block chain.
GenesisID is used in many places.
GenesisSiafundAllocation is the set of SiafundOutputs created in the Genesis block.
GenesisTimestamp is the timestamp when genesis block was mined.
InitialCoinbase is the coinbase reward of the Genesis block.
MaturityDelay specifies the number of blocks that a maturity-required output is required to be on hold before it can be spent on the blockchain.
MaxTargetAdjustmentDown restrict how much the block difficulty is allowed to change in a single step, which is important to limit the effect of difficulty raising and lowering attacks.
MaxTargetAdjustmentUp restrict how much the block difficulty is allowed to change in a single step, which is important to limit the effect of difficulty raising and lowering attacks.
MedianTimestampWindow tells us how many blocks to look back when calculating the median timestamp over the previous n blocks.
MinimumCoinbase is the minimum coinbase reward for a block.
OakDecayDenom is the denominator for how much the total timestamp is decayed each step.
OakDecayNum is the numerator for how much the total timestamp is decayed each step.
OakHardforkBlock is the height at which the hardfork to switch to the oak difficulty adjustment algorithm is triggered.
OakHardforkFixBlock is the height at which the hardfork to switch from the broken oak difficulty adjustment algorithm to the fixed oak difficulty adjustment algorithm is triggered.
64 KB.
OakMaxBlockShift is the maximum number of seconds that the oak algorithm will shift the difficulty.
OakMaxDrop is the drop is the maximum amount that the difficulty will drop each block.
OakMaxRise is the maximum amount that the difficulty will rise each block.
ProofMissed indicates that a StorageProof was missed, which means that no valid proof was submitted within the proof window.
ProofValid indicates that a valid StorageProof was submitted within the proof window.
RootDepth is the cumulative target of all blocks.
RootTarget is the target for the genesis block - basically how much work needs to be done in order to mine the first block.
SiacoinPrecision is the number of base units in a siacoin.
SiafundCount is the total number of Siafunds in existence.
SiafundPortion is the percentage of siacoins that is taxed from FileContracts.
SignatureEd25519 is a specifier for Ed22519.
SignatureEntropy is a specifier for entropy.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
These Specifiers are used internally when calculating a type's ID.
TargetWindow is the number of blocks to look backwards when determining how much time has passed vs.
TaxHardforkHeight is the height at which the tax hardfork occurred.
ZeroCurrency defines a currency of value zero.
# Structs
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
No description provided by the author
StdClock is an implementation of Clock that retrieves the current time using the system time.
No description provided by the author
No description provided by the author
TransactionGraphEdge defines an edge in a TransactionGraph, containing a source transaction, a destination transaction, a value, and a miner fee.
No description provided by the author
No description provided by the author
# Interfaces
Clock allows clients to retrieve the current time.
# 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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author