Documentation
¶
Index ¶
- Constants
- 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 GetExpectedIndex(nonce uint32, chainID, h int) int
- func GetMerkleRoot(hash common.Uint256, merkleBranch []common.Uint256, index int) common.Uint256
- type AuxPow
- type BtcHeader
- type BtcOutPoint
- type BtcTx
- type BtcTxIn
- type BtcTxOut
Constants ¶
View Source
const (
// MaxScriptSize is the maximum allowed length of a raw script.
MaxScriptSize = 10000
)
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 GetExpectedIndex ¶
Types ¶
type AuxPow ¶
type AuxPow struct {
AuxMerkleBranch []common.Uint256
AuxMerkleIndex int
ParCoinbaseTx BtcTx
ParCoinBaseMerkle []common.Uint256
ParMerkleIndex int
ParBlockHeader BtcHeader
ParentHash common.Uint256
}
func GenerateAuxPow ¶
func GenerateAuxPow(msgBlockHash Uint256) *AuxPow
type BtcHeader ¶
type BtcOutPoint ¶
type BtcTxIn ¶
type BtcTxIn struct {
PreviousOutPoint BtcOutPoint
SignatureScript []byte
Sequence uint32
}
Click to show internal directories.
Click to hide internal directories.