Documentation
¶
Index ¶
- type BitcoinHeader
- type BytesToBigUintTC
- type CalculateDifficultyTC
- type CalculateTxIDTC
- type DetermineInputLengthTC
- type DetermineOutputLengthError
- type DetermineOutputLengthTC
- type EncodeP2PKHTC
- type EncodeP2SHTC
- type EncodeP2WPKHTC
- type EncodeP2WSHTC
- type ExtractHashError
- type ExtractHashTC
- type ExtractInputAtIndexError
- type ExtractInputAtIndexInput
- type ExtractInputAtIndexTC
- type ExtractInputTxIDLETC
- type ExtractOpReturnDataError
- type ExtractOpReturnDataTC
- type ExtractOutpointTC
- type ExtractOutputAtIndexError
- type ExtractOutputAtIndexInput
- type ExtractOutputAtIndexTC
- type ExtractOutputScriptLenTC
- type ExtractScriptSigError
- type ExtractScriptSigLenTC
- type ExtractScriptSigTC
- type ExtractSequenceLELegacyError
- type ExtractSequenceLELegacyTC
- type ExtractSequenceLEWitnessTC
- type ExtractSequenceLegacyError
- type ExtractSequenceLegacyTC
- type ExtractSequenceWitnessTC
- type ExtractTargetTC
- type ExtractTimestampTC
- type ExtractTxIndexLETC
- type ExtractTxIndexTC
- type ExtractValueLETC
- type ExtractValueTC
- type Hash160Digest
- type Hash160TC
- type Hash256Digest
- type Hash256MerkleStepTC
- type Hash256TC
- type HexBytes
- type IsLegacyInputTC
- type ProveInput
- type ProveTC
- type RawHeader
- type Retarget
- type RetargetAlgorithmTC
- type SPVProof
- type ValidateHeaderChainError
- type ValidateHeaderChainTC
- type ValidateHeaderPrevHashInput
- type ValidateHeaderPrevHashTC
- type ValidateHeaderWorkInput
- type ValidateHeaderWorkTC
- type ValidateVinTC
- type ValidateVoutTC
- type VerifyHash256MerkleInput
- type VerifyHash256MerkleTC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitcoinHeader ¶
type BitcoinHeader = btcspv.BitcoinHeader
BitcoinHeader is a parsed Bitcoin header
type BytesToBigUintTC ¶
type CalculateDifficultyTC ¶
type CalculateTxIDTC ¶
type CalculateTxIDTC struct { Input SPVProof `json:"input"` Output Hash256Digest `json:"output"` }
type DetermineInputLengthTC ¶
type DetermineOutputLengthTC ¶
type EncodeP2PKHTC ¶
type EncodeP2SHTC ¶
type EncodeP2WPKHTC ¶
type EncodeP2WSHTC ¶
type EncodeP2WSHTC struct { Input Hash256Digest `json:"input"` Output string `json:"output"` }
type ExtractHashError ¶
type ExtractHashTC ¶
type ExtractInputAtIndexError ¶
type ExtractInputAtIndexError struct { Input ExtractInputAtIndexInput `json:"input"` ErrorMessage string `json:"golangError"` }
type ExtractInputAtIndexTC ¶
type ExtractInputAtIndexTC struct { Input ExtractInputAtIndexInput `json:"input"` Output HexBytes `json:"output"` }
type ExtractInputTxIDLETC ¶
type ExtractInputTxIDLETC struct { Input HexBytes `json:"input"` Output Hash256Digest `json:"output"` }
type ExtractOpReturnDataTC ¶
type ExtractOutpointTC ¶
type ExtractOutputAtIndexError ¶
type ExtractOutputAtIndexError struct { Input ExtractOutputAtIndexInput `json:"input"` ErrorMessage string `json:"golangError"` }
type ExtractOutputAtIndexTC ¶
type ExtractOutputAtIndexTC struct { Input ExtractOutputAtIndexInput `json:"input"` Output HexBytes `json:"output"` }
type ExtractScriptSigError ¶
type ExtractScriptSigLenTC ¶
type ExtractScriptSigTC ¶
type ExtractSequenceLegacyTC ¶
type ExtractTargetTC ¶
type ExtractTimestampTC ¶
type ExtractTxIndexLETC ¶
type ExtractTxIndexTC ¶
type ExtractValueLETC ¶
type ExtractValueTC ¶
type Hash160Digest ¶
type Hash160Digest = btcspv.Hash160Digest
Hash160Digest is a 20-byte ripemd160+sha2 hash
type Hash160TC ¶
type Hash160TC struct { Input HexBytes `json:"input"` Output Hash160Digest `json:"output"` }
type Hash256Digest ¶
type Hash256Digest = btcspv.Hash256Digest
Hash256Digest 32-byte double-sha2 digest
type Hash256MerkleStepTC ¶
type Hash256MerkleStepTC struct { Input []HexBytes `json:"input"` Output Hash256Digest `json:"output"` }
type Hash256TC ¶
type Hash256TC struct { Input HexBytes `json:"input"` Output Hash256Digest `json:"output"` }
type IsLegacyInputTC ¶
type ProveInput ¶
type ProveInput struct { TxIdLE Hash256Digest `json:"txIdLE"` MerkleRootLE Hash256Digest `json:"merkleRootLE"` Proof HexBytes `json:"proof"` Index uint `json:"index"` }
type ProveTC ¶
type ProveTC struct { Input ProveInput `json:"input"` Output bool `json:"output"` }
type Retarget ¶
type Retarget struct { Hash Hash256Digest `json:"hash"` Version uint `json:"version"` PrevBlock Hash256Digest `json:"prev_block"` MerkleRoot Hash256Digest `json:"merkle_root"` Timestamp uint `json:"timestamp"` Nbits HexBytes `json:"nbits"` Nonce HexBytes `json:"nonce"` Difficulty uint64 `json:"difficulty"` Hex RawHeader `json:"hex"` Height uint32 `json:"height"` }
type RetargetAlgorithmTC ¶
type ValidateHeaderChainTC ¶
type ValidateHeaderPrevHashInput ¶
type ValidateHeaderPrevHashInput struct { Header RawHeader `json:"header"` PrevHash Hash256Digest `json:"prevHash"` }
type ValidateHeaderPrevHashTC ¶
type ValidateHeaderPrevHashTC struct { Input ValidateHeaderPrevHashInput `json:"input"` Output bool `json:"output"` }
type ValidateHeaderWorkInput ¶
type ValidateHeaderWorkInput struct { Digest Hash256Digest `json:"digest"` Target sdk.Uint `json:"target"` }
type ValidateHeaderWorkTC ¶
type ValidateHeaderWorkTC struct { Input ValidateHeaderWorkInput `json:"input"` Output bool `json:"output"` }
type ValidateVinTC ¶
type ValidateVoutTC ¶
type VerifyHash256MerkleTC ¶
type VerifyHash256MerkleTC struct { Input VerifyHash256MerkleInput `json:"input"` Output bool `json:"output"` }
Click to show internal directories.
Click to hide internal directories.