Documentation ¶
Index ¶
- Variables
- func BtcReadOutPoint(r io.Reader, op *BtcOutPoint) error
- func BtcReadTxIn(r io.Reader, ti *BtcTxIn) error
- func BtcReadTxOut(r io.Reader, to *BtcTxOut) error
- func BtcWriteOutPoint(w io.Writer, op *BtcOutPoint) error
- func BtcWriteTxIn(w io.Writer, ti *BtcTxIn) error
- func BtcWriteTxOut(w io.Writer, to *BtcTxOut) error
- func CheckMerkleBranch(hash Uint256, merkleBranch []Uint256, index int) Uint256
- func GetExpectedIndex(nonce uint32, chainId, h int) int
- type AuxPow
- type BtcBlockHeader
- type BtcOutPoint
- type BtcTx
- type BtcTxIn
- type BtcTxOut
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AuxPowChainID = 1224
)
Functions ¶
func BtcReadOutPoint ¶
func BtcReadOutPoint(r io.Reader, op *BtcOutPoint) error
func BtcWriteOutPoint ¶
func BtcWriteOutPoint(w io.Writer, op *BtcOutPoint) error
func CheckMerkleBranch ¶
func CheckMerkleBranch(hash Uint256, merkleBranch []Uint256, index int) Uint256
func GetExpectedIndex ¶
Types ¶
type AuxPow ¶
type AuxPow struct { AuxMerkleBranch []Uint256 AuxMerkleIndex int ParCoinbaseTx BtcTx ParCoinBaseMerkle []Uint256 ParMerkleIndex int ParBlockHeader BtcBlockHeader ParentHash Uint256 }
type BtcBlockHeader ¶
type BtcBlockHeader struct { Version int32 PrevBlock Uint256 MerkleRoot Uint256 Timestamp uint32 Bits uint32 Nonce uint32 }
func (*BtcBlockHeader) Deserialize ¶
func (bh *BtcBlockHeader) Deserialize(r io.Reader) error
func (*BtcBlockHeader) Hash ¶
func (bh *BtcBlockHeader) Hash() Uint256
type BtcOutPoint ¶
type BtcOutPoint struct { Hash Uint256 Index uint32 }
type BtcTxIn ¶
type BtcTxIn struct { PreviousOutPoint BtcOutPoint SignatureScript []byte Sequence uint32 }
Click to show internal directories.
Click to hide internal directories.