Documentation ¶
Index ¶
- type Block
- type Header
- func (h *Header) Deserialize(br *io.BinaryReader)
- func (h *Header) DeserializeUnsigned(br *io.BinaryReader)
- func (h *Header) GetHash() *helper.UInt256
- func (h *Header) GetHashString() string
- func (h *Header) GetIndex() uint32
- func (h *Header) GetMerkleRoot() *helper.UInt256
- func (h *Header) GetNextConsensus() *helper.UInt160
- func (h *Header) GetNonce() uint64
- func (h *Header) GetPrevHash() *helper.UInt256
- func (h *Header) GetPrimaryIndex() byte
- func (h *Header) GetScriptHashesForVerifying() []*helper.UInt160
- func (h *Header) GetSize() int
- func (h *Header) GetTimeStamp() uint64
- func (h *Header) GetVersion() uint32
- func (h *Header) GetWitnesses() []*tx.Witness
- func (h *Header) Serialize(bw *io.BinaryWriter)
- func (h *Header) SerializeUnsigned(bw *io.BinaryWriter)
- func (h *Header) SetIndex(value uint32)
- func (h *Header) SetMerkleRoot(value *helper.UInt256)
- func (h *Header) SetNextConsensus(value *helper.UInt160)
- func (h *Header) SetNonce(value uint64)
- func (h *Header) SetPrevHash(value *helper.UInt256)
- func (h *Header) SetPrimaryIndex(value byte)
- func (h *Header) SetTimeStamp(value uint64)
- func (h *Header) SetVersion(value uint32)
- func (h *Header) SetWitnesses(value []*tx.Witness)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header Transactions []tx.Transaction }
type Header ¶
func NewBlockHeader ¶
func NewBlockHeader() *Header
func NewBlockHeaderFromRPC ¶
func NewBlockHeaderFromRPC(header *models.RpcBlockHeader) (*Header, error)
func (*Header) Deserialize ¶
func (h *Header) Deserialize(br *io.BinaryReader)
func (*Header) DeserializeUnsigned ¶
func (h *Header) DeserializeUnsigned(br *io.BinaryReader)
DeserializeUnsigned deserialize blockheader without witness
func (*Header) GetHashString ¶
func (*Header) GetMerkleRoot ¶
func (*Header) GetNextConsensus ¶
func (*Header) GetPrevHash ¶
func (*Header) GetPrimaryIndex ¶
func (*Header) GetScriptHashesForVerifying ¶
func (*Header) GetTimeStamp ¶
func (*Header) GetVersion ¶
func (*Header) GetWitnesses ¶
func (*Header) Serialize ¶
func (h *Header) Serialize(bw *io.BinaryWriter)
func (*Header) SerializeUnsigned ¶
func (h *Header) SerializeUnsigned(bw *io.BinaryWriter)
SerializeUnsigned serialize Header without witness
func (*Header) SetMerkleRoot ¶
func (*Header) SetNextConsensus ¶
func (*Header) SetPrevHash ¶
func (*Header) SetPrimaryIndex ¶
func (*Header) SetTimeStamp ¶
func (*Header) SetVersion ¶
func (*Header) SetWitnesses ¶
Click to show internal directories.
Click to hide internal directories.