script

package
v0.0.0-...-e8e2ae4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendGetLockingScriptFromPreimage

func AppendGetLockingScriptFromPreimage(s *bscript.Script) (*bscript.Script, error)

func AppendP2PKH

func AppendP2PKH(s *bscript.Script, address string) (*bscript.Script, error)

func AppendPushTx

func AppendPushTx(s *bscript.Script) (*bscript.Script, error)

func IsOpPushTx

func IsOpPushTx(s *bscript.Script) bool

TODO: Not good checking because we haven't standardized Script Template Assumes OpPUSHTX is first thing on the stack

func NewPushTxUnlockingScript

func NewPushTxUnlockingScript(pubKey, preimage, sig []byte, sigHashFlag sighash.Flag) (*bscript.Script, error)

func SplitPushTxFromLockingScript

func SplitPushTxFromLockingScript(s *bscript.Script) *bscript.Script

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL