Versions in this module Expand all Collapse all v1 v1.13.0 Feb 18, 2021 Changes in this version + const LocalGenesisBlockStr + const MainGenesisBlockStr + const TestGenesisBlockStr + const TestPrivateGenesisBlockStr + func CheckBlockPairIntegrity(block interfaces.IFBlock, prev interfaces.IFBlock) error + func CreateAddress(hash interfaces.IHash) interfaces.IAddress + func CreateRCD(data []byte) interfaces.IRCD + func GetGenesisFBlock(netID uint32) interfaces.IFBlock + func HumanReadablePrivateKeyStringToEverythingString(private string) (string, string, string, error) + func NewAddress(b []byte) interfaces.IAddress + func NewFBlock(prev interfaces.IFBlock) interfaces.IFBlock + func NewInAddress(address interfaces.IAddress, amount uint64) interfaces.ITransAddress + func NewOutAddress(address interfaces.IAddress, amount uint64) interfaces.ITransAddress + func NewOutECAddress(address interfaces.IAddress, amount uint64) interfaces.ITransAddress + func NewRCD_1(publicKey []byte) interfaces.IRCD + func NewRCD_2(n int, m int, addresses []interfaces.IAddress) (interfaces.IRCD, error) + func PrivateKeyStringToEverythingString(private string) (string, string, string, error) + func PublicKeyStringToECAddress(public string) (interfaces.IAddress, error) + func PublicKeyStringToECAddressString(public string) (string, error) + func PublicKeyStringToFactoidAddress(public string) (interfaces.IAddress, error) + func PublicKeyStringToFactoidAddressString(public string) (string, error) + func PublicKeyStringToFactoidRCDAddress(public string) (interfaces.IRCD, error) + func PublicKeyToECAddress(public []byte) (interfaces.IAddress, error) + func PublicKeyToFactoidAddress(public []byte) (interfaces.IAddress, error) + func RandomAddress() interfaces.IAddress + func RandomTransAddress() interfaces.ITransAddress + func UnmarshalBinaryAuth(data []byte) (a interfaces.IRCD, newData []byte, err error) + func UnmarshalFBlock(data []byte) (interfaces.IFBlock, error) + func UpdateAmount(amt uint64) + func ValidateAmounts(amts ...uint64) (uint64, error) + type Address struct + func (a *Address) CustomMarshalText() (text []byte, err error) + type ExpandedFBlock FBlock + type FBlock struct + BodyMR interfaces.IHash + DBHeight uint32 + ExchRate uint64 + PrevKeyMR interfaces.IHash + PrevLedgerKeyMR interfaces.IHash + Transactions []interfaces.ITransaction + func (a *FBlock) Init() + func (a *FBlock) IsSameAs(b interfaces.IFBlock) bool + func (b *FBlock) AddCoinbase(trans interfaces.ITransaction) error + func (b *FBlock) AddTransaction(trans interfaces.ITransaction) error + func (b *FBlock) CalculateHashes() + func (b *FBlock) EndOfPeriod(period int) + func (b *FBlock) GetBodyMR() (rval interfaces.IHash) + func (b *FBlock) GetChainID() (rval interfaces.IHash) + func (b *FBlock) GetCoinbaseTimestamp() interfaces.Timestamp + func (b *FBlock) GetDBHeight() uint32 + func (b *FBlock) GetEndOfPeriod() [10]int + func (b *FBlock) GetExchRate() uint64 + func (b *FBlock) GetHash() (rval interfaces.IHash) + func (b *FBlock) GetKeyMR() (rval interfaces.IHash) + func (b *FBlock) GetLedgerKeyMR() (rval interfaces.IHash) + func (b *FBlock) GetLedgerMR() (rval interfaces.IHash) + func (b *FBlock) GetPrevKeyMR() (rval interfaces.IHash) + func (b *FBlock) GetPrevLedgerKeyMR() (rval interfaces.IHash) + func (b *FBlock) GetTransactions() []interfaces.ITransaction + func (b *FBlock) IsCoinbasePatched() bool + func (b *FBlock) MarshalBinary() (rval []byte, err error) + func (b *FBlock) MarshalHeader() (rval []byte, err error) + func (b *FBlock) MarshalTrans() (rval []byte, err error) + func (b *FBlock) PatchCoinbase(ts interfaces.Timestamp) + func (b *FBlock) SetDBHeight(dbheight uint32) + func (b *FBlock) SetExchRate(rate uint64) + func (b *FBlock) SetPrevKeyMR(hash interfaces.IHash) + func (b *FBlock) SetPrevLedgerKeyMR(hash interfaces.IHash) + func (b *FBlock) UnmarshalBinary(data []byte) (err error) + func (b *FBlock) UnmarshalBinaryData(data []byte) ([]byte, error) + func (b FBlock) CustomMarshalText() (text []byte, err error) + func (b FBlock) GetNewInstance() interfaces.IFBlock + func (b FBlock) String() string + func (b FBlock) Validate() error + func (b FBlock) ValidateTransaction(index int, trans interfaces.ITransaction) error + func (c *FBlock) DatabasePrimaryIndex() (rval interfaces.IHash) + func (c *FBlock) DatabaseSecondaryIndex() (rval interfaces.IHash) + func (c *FBlock) GetDatabaseHeight() uint32 + func (c *FBlock) GetEntryHashes() []interfaces.IHash + func (c *FBlock) GetEntrySigHashes() []interfaces.IHash + func (c *FBlock) GetTransactionByHash(hash interfaces.IHash) interfaces.ITransaction + func (c *FBlock) New() interfaces.BinaryMarshallableAndCopyable + func (e *FBlock) JSONByte() ([]byte, error) + func (e *FBlock) JSONString() (string, error) + func (e FBlock) MarshalJSON() ([]byte, error) + type FactoidSignature struct + Signature [constants.SIGNATURE_LENGTH]byte + func NewED25519Signature(priv, data []byte) *FactoidSignature + func (h *FactoidSignature) MarshalText() (rval []byte, err error) + func (s *FactoidSignature) GetKey() []byte + func (s *FactoidSignature) GetSignature() *[constants.SIGNATURE_LENGTH]byte + func (s *FactoidSignature) IsSameAs(sig interfaces.ISignature) bool + func (s *FactoidSignature) JSONByte() ([]byte, error) + func (s *FactoidSignature) JSONString() (string, error) + func (s *FactoidSignature) SetSignature(sig []byte) error + func (s *FactoidSignature) UnmarshalBinary(data []byte) error + func (s *FactoidSignature) UnmarshalBinaryData(data []byte) ([]byte, error) + func (s *FactoidSignature) Verify([]byte) bool + func (s FactoidSignature) CustomMarshalText() ([]byte, error) + func (s FactoidSignature) MarshalBinary() ([]byte, error) + func (s FactoidSignature) String() string + func (sig *FactoidSignature) Bytes() []byte + type RCD_1 struct + PublicKey [constants.ADDRESS_LENGTH]byte + func (a RCD_1) CustomMarshalText() (text []byte, err error) + func (a RCD_1) GetPublicKey() []byte + func (a RCD_1) MarshalBinary() ([]byte, error) + func (b RCD_1) IsSameAs(rcd interfaces.IRCD) bool + func (b RCD_1) String() string + func (b RCD_1) UnmarshalBinary(data []byte) error + func (e *RCD_1) JSONByte() ([]byte, error) + func (e *RCD_1) JSONString() (string, error) + func (e *RCD_1) MarshalJSON() (rval []byte, err error) + func (r *RCD_1) MarshalText() (rval []byte, err error) + func (t *RCD_1) UnmarshalBinaryData(data []byte) (newData []byte, err error) + func (w RCD_1) CheckSig(trans interfaces.ITransaction, sigblk interfaces.ISignatureBlock) bool + func (w RCD_1) Clone() interfaces.IRCD + func (w RCD_1) GetAddress() (interfaces.IAddress, error) + func (w1 RCD_1) NumberOfSignatures() int + type RCD_2 struct + M int + N int + N_Addresses []interfaces.IAddress + func (a RCD_2) CustomMarshalText() ([]byte, error) + func (a RCD_2) MarshalBinary() ([]byte, error) + func (b RCD_2) CheckSig(trans interfaces.ITransaction, sigblk interfaces.ISignatureBlock) bool + func (b RCD_2) GetAddress() (interfaces.IAddress, error) + func (b RCD_2) IsSameAs(rcd interfaces.IRCD) bool + func (b RCD_2) NumberOfSignatures() int + func (b RCD_2) String() string + func (b RCD_2) UnmarshalBinary(data []byte) error + func (e *RCD_2) JSONByte() ([]byte, error) + func (e *RCD_2) JSONString() (string, error) + func (t *RCD_2) UnmarshalBinaryData(data []byte) (newData []byte, err error) + func (w RCD_2) Clone() interfaces.IRCD + type SignatureBlock struct + Signatures []interfaces.ISignature + func NewSingleSignatureBlock(priv, data []byte) *SignatureBlock + func (a SignatureBlock) MarshalBinary() ([]byte, error) + func (b *SignatureBlock) IsSameAs(s interfaces.ISignatureBlock) bool + func (b SignatureBlock) String() string + func (b SignatureBlock) UnmarshalBinary(data []byte) error + func (e *SignatureBlock) JSONByte() ([]byte, error) + func (e *SignatureBlock) JSONString() (string, error) + func (s *SignatureBlock) AddSignature(sig interfaces.ISignature) + func (s *SignatureBlock) UnmarshalBinaryData(data []byte) ([]byte, error) + func (s SignatureBlock) CustomMarshalText() ([]byte, error) + func (s SignatureBlock) GetSignature(index int) interfaces.ISignature + func (s SignatureBlock) GetSignatures() []interfaces.ISignature + type TransAddress struct + Address interfaces.IAddress + Amount uint64 + UserAddress string + func (a TransAddress) MarshalBinary() ([]byte, error) + func (e *TransAddress) JSONByte() ([]byte, error) + func (e *TransAddress) JSONString() (string, error) + func (t *TransAddress) GetUserAddress() string + func (t *TransAddress) IsSameAs(add interfaces.ITransAddress) bool + func (t *TransAddress) SetUserAddress(v string) + func (t *TransAddress) String() string + func (t *TransAddress) UnmarshalBinary(data []byte) error + func (t *TransAddress) UnmarshalBinaryData(data []byte) ([]byte, error) + func (ta *TransAddress) SetAddress(address interfaces.IAddress) + func (ta *TransAddress) SetAmount(amount uint64) + func (ta TransAddress) CustomMarshalText2(label string) ([]byte, error) + func (ta TransAddress) CustomMarshalTextAll(fct bool, label string) ([]byte, error) + func (ta TransAddress) CustomMarshalTextEC2(label string) ([]byte, error) + func (ta TransAddress) CustomMarshalTextECOutput() ([]byte, error) + func (ta TransAddress) CustomMarshalTextInput() ([]byte, error) + func (ta TransAddress) CustomMarshalTextOutput() ([]byte, error) + func (ta TransAddress) GetAddress() interfaces.IAddress + func (ta TransAddress) GetAmount() uint64 + func (ta TransAddress) GetName() string + func (ta TransAddress) StringECOutput() string + func (ta TransAddress) StringInput() string + func (ta TransAddress) StringOutput() string + type Transaction struct + BlockHeight uint32 + Inputs []interfaces.ITransAddress + MilliTimestamp uint64 + OutECs []interfaces.ITransAddress + Outputs []interfaces.ITransAddress + RCDs []interfaces.IRCD + SigBlocks []interfaces.ISignatureBlock + Txid interfaces.IHash + func (*Transaction) GetVersion() uint64 + func (e *Transaction) HasUserAddress(userAddr string) bool + func (e *Transaction) JSONByte() ([]byte, error) + func (e *Transaction) JSONString() (string, error) + func (t *Transaction) AddAuthorization(auth interfaces.IRCD) + func (t *Transaction) AddECOutput(ecoutput interfaces.IAddress, amount uint64) + func (t *Transaction) AddInput(input interfaces.IAddress, amount uint64) + func (t *Transaction) AddOutput(output interfaces.IAddress, amount uint64) + func (t *Transaction) AddRCD(rcd interfaces.IRCD) + func (t *Transaction) CustomMarshalText() (text []byte, err error) + func (t *Transaction) GetBlockHeight() (height uint32) + func (t *Transaction) GetECOutput(i int) (interfaces.ITransAddress, error) + func (t *Transaction) GetHash() (rval interfaces.IHash) + func (t *Transaction) GetInput(i int) (interfaces.ITransAddress, error) + func (t *Transaction) GetOutput(i int) (interfaces.ITransAddress, error) + func (t *Transaction) GetRCD(i int) (interfaces.IRCD, error) + func (t *Transaction) GetSignatureBlock(i int) interfaces.ISignatureBlock + func (t *Transaction) GetSignatureBlocks() []interfaces.ISignatureBlock + func (t *Transaction) GetTimestamp() interfaces.Timestamp + func (t *Transaction) GetTxID() (rval interfaces.IHash) + func (t *Transaction) IsSameAs(trans interfaces.ITransaction) bool + func (t *Transaction) MarshalBinarySig() (rval []byte, err error) + func (t *Transaction) SetBlockHeight(height uint32) + func (t *Transaction) SetSignatureBlock(i int, sig interfaces.ISignatureBlock) + func (t *Transaction) SetTimestamp(ts interfaces.Timestamp) + func (t *Transaction) UnmarshalBinary(data []byte) (err error) + func (t *Transaction) UnmarshalBinaryData(data []byte) ([]byte, error) + func (t Transaction) CalculateFee(factoshisPerEC uint64) (uint64, error) + func (t Transaction) GetECOutputs() []interfaces.ITransAddress + func (t Transaction) GetFullHash() interfaces.IHash + func (t Transaction) GetInputs() []interfaces.ITransAddress + func (t Transaction) GetOutputs() []interfaces.ITransAddress + func (t Transaction) GetRCDs() []interfaces.IRCD + func (t Transaction) GetSigHash() interfaces.IHash + func (t Transaction) MarshalBinary() ([]byte, error) + func (t Transaction) String() string + func (t Transaction) TotalECs() (sum uint64, err error) + func (t Transaction) TotalInputs() (sum uint64, err error) + func (t Transaction) TotalOutputs() (sum uint64, err error) + func (t Transaction) Validate(index int) error + func (t Transaction) ValidateSignatures() error + func (w *Transaction) New() interfaces.BinaryMarshallableAndCopyable Incompatible versions in this module v6.11.0+incompatible Nov 14, 2020 v6.5.2+incompatible Feb 5, 2020 v6.4.2-rc2+incompatible Sep 18, 2019 v6.3.2+incompatible Jun 9, 2019