Documentation ¶
Index ¶
- Constants
- type CoinbaseTransaction
- func (c *CoinbaseTransaction) AppendBinaryFlags(preAllocatedBuf []byte, pruned bool) ([]byte, error)
- func (c *CoinbaseTransaction) BufferLength() int
- func (c *CoinbaseTransaction) CalculateId() (hash types.Hash)
- func (c *CoinbaseTransaction) FromReader(reader utils.ReaderAndByteReader) (err error)
- func (c *CoinbaseTransaction) MarshalBinary() ([]byte, error)
- func (c *CoinbaseTransaction) MarshalBinaryFlags(pruned bool) ([]byte, error)
- func (c *CoinbaseTransaction) OutputsBlob() ([]byte, error)
- func (c *CoinbaseTransaction) SideChainHashingBlob(preAllocatedBuf []byte, zeroTemplateId bool) ([]byte, error)
- func (c *CoinbaseTransaction) UnmarshalBinary(data []byte) error
- type ExtraTag
- func (t *ExtraTag) AppendBinary(preAllocatedBuf []byte) ([]byte, error)
- func (t *ExtraTag) BufferLength() int
- func (t *ExtraTag) FromReader(reader utils.ReaderAndByteReader) (err error)
- func (t *ExtraTag) MarshalBinary() ([]byte, error)
- func (t *ExtraTag) SideChainHashingBlob(preAllocatedBuf []byte, zeroTemplateId bool) ([]byte, error)
- func (t *ExtraTag) UnmarshalBinary(data []byte) error
- type ExtraTags
- func (t *ExtraTags) AppendBinary(preAllocatedBuf []byte) (buf []byte, err error)
- func (t *ExtraTags) BufferLength() (length int)
- func (t *ExtraTags) FromReader(reader utils.ReaderAndByteReader) (err error)
- func (t *ExtraTags) GetTag(tag uint8) *ExtraTag
- func (t *ExtraTags) MarshalBinary() ([]byte, error)
- func (t *ExtraTags) SideChainHashingBlob(preAllocatedBuf []byte, zeroTemplateId bool) (buf []byte, err error)
- func (t *ExtraTags) UnmarshalBinary(data []byte) (err error)
- type Output
- type Outputs
Constants ¶
View Source
const TxExtraAdditionalPubKeysMaxCount = 4096
View Source
const TxExtraNonceMaxCount = 255
View Source
const TxExtraPaddingMaxCount = 255
View Source
const TxExtraTagAdditionalPubKeys = 0x04
View Source
const TxExtraTagMergeMining = 0x03
View Source
const TxExtraTagMysteriousMinergate = 0xde
View Source
const TxExtraTagNonce = 0x02
View Source
const TxExtraTagPadding = 0x00
View Source
const TxExtraTagPubKey = 0x01
View Source
const TxExtraTemplateNonceSize = 4
View Source
const TxInGen = 0xff
View Source
const TxInToKey = 0x2
View Source
const TxOutToKey = 2
View Source
const TxOutToTaggedKey = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinbaseTransaction ¶
type CoinbaseTransaction struct { Version uint8 `json:"version"` // UnlockTime would be here InputCount uint8 `json:"input_count"` InputType uint8 `json:"input_type"` // UnlockTime re-arranged here to improve memory layout space UnlockTime uint64 `json:"unlock_time"` GenHeight uint64 `json:"gen_height"` Outputs Outputs `json:"outputs"` // OutputsBlobSize length of serialized Outputs. Used by p2pool serialized pruned blocks, filled regardless OutputsBlobSize uint64 `json:"outputs_blob_size"` // TotalReward amount of reward existing Outputs. Used by p2pool serialized pruned blocks, filled regardless TotalReward uint64 `json:"total_reward"` Extra ExtraTags `json:"extra"` ExtraBaseRCT uint8 `json:"extra_base_rct"` }
func (*CoinbaseTransaction) AppendBinaryFlags ¶
func (c *CoinbaseTransaction) AppendBinaryFlags(preAllocatedBuf []byte, pruned bool) ([]byte, error)
func (*CoinbaseTransaction) BufferLength ¶
func (c *CoinbaseTransaction) BufferLength() int
func (*CoinbaseTransaction) CalculateId ¶
func (c *CoinbaseTransaction) CalculateId() (hash types.Hash)
func (*CoinbaseTransaction) FromReader ¶
func (c *CoinbaseTransaction) FromReader(reader utils.ReaderAndByteReader) (err error)
func (*CoinbaseTransaction) MarshalBinary ¶
func (c *CoinbaseTransaction) MarshalBinary() ([]byte, error)
func (*CoinbaseTransaction) MarshalBinaryFlags ¶
func (c *CoinbaseTransaction) MarshalBinaryFlags(pruned bool) ([]byte, error)
func (*CoinbaseTransaction) OutputsBlob ¶
func (c *CoinbaseTransaction) OutputsBlob() ([]byte, error)
func (*CoinbaseTransaction) SideChainHashingBlob ¶
func (c *CoinbaseTransaction) SideChainHashingBlob(preAllocatedBuf []byte, zeroTemplateId bool) ([]byte, error)
func (*CoinbaseTransaction) UnmarshalBinary ¶
func (c *CoinbaseTransaction) UnmarshalBinary(data []byte) error
type ExtraTag ¶
type ExtraTag struct { // VarInt has different meanings. In TxExtraTagMergeMining it is depth, while in others it is length VarInt uint64 `json:"var_int"` Tag uint8 `json:"tag"` HasVarInt bool `json:"has_var_int"` Data types.Bytes `json:"data"` }
func (*ExtraTag) AppendBinary ¶
func (*ExtraTag) BufferLength ¶
func (*ExtraTag) FromReader ¶
func (t *ExtraTag) FromReader(reader utils.ReaderAndByteReader) (err error)
func (*ExtraTag) MarshalBinary ¶
func (*ExtraTag) SideChainHashingBlob ¶
func (*ExtraTag) UnmarshalBinary ¶
type ExtraTags ¶
type ExtraTags []ExtraTag
func (*ExtraTags) AppendBinary ¶
func (*ExtraTags) BufferLength ¶
func (*ExtraTags) FromReader ¶
func (t *ExtraTags) FromReader(reader utils.ReaderAndByteReader) (err error)
func (*ExtraTags) MarshalBinary ¶
func (*ExtraTags) SideChainHashingBlob ¶
func (*ExtraTags) UnmarshalBinary ¶
type Outputs ¶
type Outputs []Output
func (*Outputs) AppendBinary ¶
func (*Outputs) BufferLength ¶
func (*Outputs) FromReader ¶
func (s *Outputs) FromReader(reader utils.ReaderAndByteReader) (err error)
func (*Outputs) MarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.