Documentation ¶
Index ¶
- func EvalScript(stack *util.Stack, s *script.Script, transaction *tx.Tx, nIn int, ...) error
- func VerifyScript(transaction *tx.Tx, scriptSig *script.Script, scriptPubKey *script.Script, ...) error
- type Checker
- type EmptyChecker
- func (sec *EmptyChecker) CheckLockTime(lockTime int64, txLockTime int64, sequence uint32) bool
- func (sec *EmptyChecker) CheckSequence(sequence int64, txToSequence int64, txVersion uint32) bool
- func (sec *EmptyChecker) CheckSig(transaction *tx.Tx, signature []byte, pubKey []byte, scriptCode *script.Script, ...) (bool, error)
- func (sec *EmptyChecker) VerifySignature(vchSig []byte, pubKey *crypto.PublicKey, sigHash *util.Hash) (bool, error)
- type RealChecker
- func (src *RealChecker) CheckLockTime(lockTime int64, txLockTime int64, sequence uint32) bool
- func (src *RealChecker) CheckSequence(sequence int64, txToSequence int64, txVersion uint32) bool
- func (src *RealChecker) CheckSig(transaction *tx.Tx, signature []byte, pubKey []byte, scriptCode *script.Script, ...) (bool, error)
- func (src *RealChecker) VerifySignature(vchSig []byte, pubKey *crypto.PublicKey, sigHash *util.Hash) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalScript ¶
Types ¶
type Checker ¶
type Checker interface { CheckLockTime(lockTime int64, txLockTime int64, sequence uint32) bool CheckSequence(sequence int64, txToSequence int64, txVersion uint32) bool CheckSig(transaction *tx.Tx, signature []byte, pubKey []byte, scriptCode *script.Script, nIn int, money amount.Amount, flags uint32) (bool, error) VerifySignature(vchSig []byte, pubKey *crypto.PublicKey, sigHash *util.Hash) (bool, error) }
type EmptyChecker ¶
type EmptyChecker struct { }
func NewScriptEmptyChecker ¶
func NewScriptEmptyChecker() *EmptyChecker
func (*EmptyChecker) CheckLockTime ¶
func (sec *EmptyChecker) CheckLockTime(lockTime int64, txLockTime int64, sequence uint32) bool
func (*EmptyChecker) CheckSequence ¶
func (sec *EmptyChecker) CheckSequence(sequence int64, txToSequence int64, txVersion uint32) bool
func (*EmptyChecker) VerifySignature ¶ added in v0.0.4
type RealChecker ¶
type RealChecker struct { }
func NewScriptRealChecker ¶
func NewScriptRealChecker() *RealChecker
func (*RealChecker) CheckLockTime ¶
func (src *RealChecker) CheckLockTime(lockTime int64, txLockTime int64, sequence uint32) bool
func (*RealChecker) CheckSequence ¶
func (src *RealChecker) CheckSequence(sequence int64, txToSequence int64, txVersion uint32) bool
func (*RealChecker) VerifySignature ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.