Documentation ¶
Index ¶
- type DirBlockInfo
- func (c *DirBlockInfo) DatabasePrimaryIndex() (rval interfaces.IHash)
- func (c *DirBlockInfo) DatabaseSecondaryIndex() (rval interfaces.IHash)
- func (e *DirBlockInfo) GetBTCBlockHash() interfaces.IHash
- func (e *DirBlockInfo) GetBTCBlockHeight() int32
- func (c *DirBlockInfo) GetBTCConfirmed() bool
- func (e *DirBlockInfo) GetBTCTxHash() (rval interfaces.IHash)
- func (e *DirBlockInfo) GetBTCTxOffset() (rval int32)
- func (c *DirBlockInfo) GetChainID() (rval interfaces.IHash)
- func (c *DirBlockInfo) GetDBHeight() uint32
- func (e *DirBlockInfo) GetDBMerkleRoot() (rval interfaces.IHash)
- func (c *DirBlockInfo) GetDatabaseHeight() uint32
- func (c *DirBlockInfo) GetEthereumAnchorRecordEntryHash() interfaces.IHash
- func (c *DirBlockInfo) GetEthereumConfirmed() bool
- func (e *DirBlockInfo) GetTimestamp() interfaces.Timestamp
- func (e *DirBlockInfo) Init()
- func (e *DirBlockInfo) JSONByte() ([]byte, error)
- func (e *DirBlockInfo) JSONString() (string, error)
- func (e *DirBlockInfo) MarshalBinary() (rval []byte, err error)
- func (c *DirBlockInfo) New() interfaces.BinaryMarshallableAndCopyable
- func (e *DirBlockInfo) SetTimestamp(timestamp interfaces.Timestamp)
- func (e *DirBlockInfo) String() string
- func (e *DirBlockInfo) UnmarshalBinary(data []byte) (err error)
- func (e *DirBlockInfo) UnmarshalBinaryData(data []byte) (newData []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirBlockInfo ¶
type DirBlockInfo struct { // Serial hash for the directory block DBHash interfaces.IHash DBHeight uint32 //directory block height Timestamp int64 // time of this dir block info being created // BTCTxHash is the Tx hash returned from rpcclient.SendRawTransaction BTCTxHash interfaces.IHash // use string or *btcwire.ShaHash ??? // BTCTxOffset is the index of the TX in this BTC block BTCTxOffset int32 // BTCBlockHeight is the height of the block where this TX is stored in BTC BTCBlockHeight int32 //BTCBlockHash is the hash of the block where this TX is stored in BTC BTCBlockHash interfaces.IHash // use string or *btcwire.ShaHash ??? // DBMerkleRoot is the merkle root of the Directory Block // and is written into BTC as OP_RETURN data DBMerkleRoot interfaces.IHash // A flag to to show BTC anchor confirmation BTCConfirmed bool EthereumAnchorRecordEntryHash interfaces.IHash EthereumConfirmed bool }
func NewDirBlockInfo ¶
func NewDirBlockInfo() *DirBlockInfo
func NewDirBlockInfoFromDirBlock ¶
func NewDirBlockInfoFromDirBlock(dirBlock interfaces.IDirectoryBlock) *DirBlockInfo
NewDirBlockInfoFromDirBlock creates a DirDirBlockInfo from DirectoryBlock
func (*DirBlockInfo) DatabasePrimaryIndex ¶
func (c *DirBlockInfo) DatabasePrimaryIndex() (rval interfaces.IHash)
func (*DirBlockInfo) DatabaseSecondaryIndex ¶
func (c *DirBlockInfo) DatabaseSecondaryIndex() (rval interfaces.IHash)
func (*DirBlockInfo) GetBTCBlockHash ¶
func (e *DirBlockInfo) GetBTCBlockHash() interfaces.IHash
func (*DirBlockInfo) GetBTCBlockHeight ¶
func (e *DirBlockInfo) GetBTCBlockHeight() int32
func (*DirBlockInfo) GetBTCConfirmed ¶
func (c *DirBlockInfo) GetBTCConfirmed() bool
func (*DirBlockInfo) GetBTCTxHash ¶
func (e *DirBlockInfo) GetBTCTxHash() (rval interfaces.IHash)
func (*DirBlockInfo) GetBTCTxOffset ¶
func (e *DirBlockInfo) GetBTCTxOffset() (rval int32)
func (*DirBlockInfo) GetChainID ¶
func (c *DirBlockInfo) GetChainID() (rval interfaces.IHash)
func (*DirBlockInfo) GetDBHeight ¶
func (c *DirBlockInfo) GetDBHeight() uint32
func (*DirBlockInfo) GetDBMerkleRoot ¶
func (e *DirBlockInfo) GetDBMerkleRoot() (rval interfaces.IHash)
func (*DirBlockInfo) GetDatabaseHeight ¶
func (c *DirBlockInfo) GetDatabaseHeight() uint32
func (*DirBlockInfo) GetEthereumAnchorRecordEntryHash ¶
func (c *DirBlockInfo) GetEthereumAnchorRecordEntryHash() interfaces.IHash
func (*DirBlockInfo) GetEthereumConfirmed ¶
func (c *DirBlockInfo) GetEthereumConfirmed() bool
func (*DirBlockInfo) GetTimestamp ¶
func (e *DirBlockInfo) GetTimestamp() interfaces.Timestamp
func (*DirBlockInfo) Init ¶
func (e *DirBlockInfo) Init()
func (*DirBlockInfo) JSONByte ¶
func (e *DirBlockInfo) JSONByte() ([]byte, error)
func (*DirBlockInfo) JSONString ¶
func (e *DirBlockInfo) JSONString() (string, error)
func (*DirBlockInfo) MarshalBinary ¶
func (e *DirBlockInfo) MarshalBinary() (rval []byte, err error)
func (*DirBlockInfo) New ¶
func (c *DirBlockInfo) New() interfaces.BinaryMarshallableAndCopyable
func (*DirBlockInfo) SetTimestamp ¶
func (e *DirBlockInfo) SetTimestamp(timestamp interfaces.Timestamp)
func (*DirBlockInfo) String ¶
func (e *DirBlockInfo) String() string
func (*DirBlockInfo) UnmarshalBinary ¶
func (e *DirBlockInfo) UnmarshalBinary(data []byte) (err error)
func (*DirBlockInfo) UnmarshalBinaryData ¶
func (e *DirBlockInfo) UnmarshalBinaryData(data []byte) (newData []byte, err error)
Click to show internal directories.
Click to hide internal directories.