Versions in this module Expand all Collapse all v1 v1.0.4 Mar 19, 2021 v1.0.3 Mar 19, 2021 Changes in this version + const Invalid + const TransactionTypeAccountFee + const TransactionTypeCoinGeneration + const TransactionTypeCycle + const TransactionTypeCycleReward + const TransactionTypeCycleSignature + const TransactionTypeSeed + const TransactionTypeStandard + const TransactionTypeVerifierReward + const Undetermined + const Valid + func FromShlong(combined int64) (int16, int64) + func ToShlong(short int16, long int64) int64 + type ApprovedCycleTransaction struct + Amount int64 + ApprovalHeight int64 + InitiatorIdentifier []byte + ReceiverIdentifier []byte + func ReadNewApprovedCycleTransaction(r io.Reader) (*ApprovedCycleTransaction, error) + func (t *ApprovedCycleTransaction) GetSerializedLength() int + func (t *ApprovedCycleTransaction) Read(r io.Reader) error + func (t *ApprovedCycleTransaction) ToBytes() []byte + type BalanceList struct + BlockHeight int64 + BlockchainVersion int16 + Items []BalanceListItem + PendingCycleTransactions []*Transaction + PreviousVerifiers [][]byte + RecentlyApprovedCycleTransactions []*ApprovedCycleTransaction + RolloverFees byte + UnlockThreshold int64 + UnlockTransferSum int64 + func ReadNewBalanceList(r io.Reader) (*BalanceList, error) + func (bl *BalanceList) GetHash() []byte + func (bl *BalanceList) GetSerializedLength() int + func (bl *BalanceList) Normalize() + func (bl *BalanceList) Read(r io.Reader) error + func (bl *BalanceList) ToBytes() []byte + type BalanceListItem struct + Balance int64 + BlocksUntilFee int16 + Identifier []byte + type Block struct + BalanceListHash []byte + BlockchainVersion int16 + ContinuityState int + CycleInfoCache *BlockCycleInfoCache + CycleInformation *CycleInformation + Hash []byte + Height int64 + PreviousBlockHash []byte + SignatureState int + StartTimestamp int64 + Transactions []*Transaction + VerificationTimestamp int64 + VerifierIdentifier []byte + VerifierSignature []byte + func ReadNewBlock(r io.Reader) (*Block, error) + func (b *Block) GetSerializedLength() int + func (b *Block) Read(r io.Reader) error + func (b *Block) Serialize(forSigning bool) []byte + func (b *Block) ToBytes() []byte + type BlockCycleInfoCache struct + CycleHeadHeight int64 + CycleTailHeight int64 + Found bool + IsGenesis bool + NewVerifier bool + type BlockVote struct + Hash []byte + Height int64 + MessageSignature []byte + MessageTimestamp int64 + ReceiptTimestamp int64 + SenderIdentifier []byte + Timestamp int64 + func (b *BlockVote) GetSerializedLength() int + func (b *BlockVote) Read(r io.Reader) error + func (b *BlockVote) ToBytes() []byte + type CycleInformation struct + CycleLengths []int + InGenesisCycle bool + MaximumCycleLength int + NewVerifier bool + func (c CycleInformation) CalculateTrailingEdgeHeight(blockHeight int64) int64 + type CycleSignature struct + Id []byte + Signature []byte + type Transaction struct + Amount int64 + CycleSignatureTransactions []*Transaction + CycleSignatures []*CycleSignature + CycleTransactionSignature []byte + CycleTransactionVote bool + PreviousBlockHash []byte + PreviousHashHeight int64 + RecipientId []byte + SenderData []byte + SenderId []byte + Signature []byte + SignatureState int + Timestamp int64 + Type byte + func ReadNewTransaction(r io.Reader) (*Transaction, error) + func (t *Transaction) GetFee() int64 + func (t *Transaction) GetSerializedLength() int + func (t *Transaction) Read(r io.Reader, balanceListCycleTransaction bool) error + func (t *Transaction) SignatureIsValid() bool + func (t *Transaction) ToBytes() []byte