Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTransaction ¶
func CreateTransaction(txToSpend *externalapi.DomainTransaction) (*externalapi.DomainTransaction, error)
CreateTransaction create a transaction that spends the first output of provided transaction. Assumes that the output being spent has opTrueScript as it's scriptPublicKey Creates the value of the spent output minus 1 sompi
func ForAllNets ¶
ForAllNets runs the passed testFunc with all available networks if setDifficultyToMinumum = true - will modify the net params to have minimal difficulty, like in SimNet
func OpTrueScript ¶
func OpTrueScript() (*externalapi.ScriptPublicKey, []byte)
OpTrueScript returns a P2SH script paying to an anyone-can-spend address, The second return value is a redeemScript to be used with txscript.PayToScriptHashSignatureScript
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.