MCPcopy Index your code
hub / github.com/btcsuite/btcd / Script

Method Script

txscript/scriptbuilder.go:295–297  ·  view source on GitHub ↗

Script returns the currently built script. When any errors occurred while building the script, the script will be returned up the point of the first error along with the error.

()

Source from the content-addressed store, hash-verified

293// building the script, the script will be returned up the point of the first
294// error along with the error.
295func (b *ScriptBuilder) Script() ([]byte, error) {
296 return b.script, b.err
297}
298
299// NewScriptBuilder returns a new instance of a script builder. See
300// ScriptBuilder for details.

Callers 15

finalizeNonWitnessInputFunction · 0.95
finalizeWitnessInputFunction · 0.95
pushDataScriptFunction · 0.95
mergeScriptsFunction · 0.95
SignTxOutputFunction · 0.95
TestScriptBuilderAllocFunction · 0.95
TestScriptBuilderAddOpFunction · 0.95
TestScriptBuilderAddDataFunction · 0.95
TestExceedMaxScriptSizeFunction · 0.95
TestErroredScriptFunction · 0.95
parseShortFormFunction · 0.95

Calls

no outgoing calls

Tested by 11

TestScriptBuilderAllocFunction · 0.76
TestScriptBuilderAddOpFunction · 0.76
TestScriptBuilderAddDataFunction · 0.76
TestExceedMaxScriptSizeFunction · 0.76
TestErroredScriptFunction · 0.76
parseShortFormFunction · 0.76
genComplexScriptFunction · 0.76
TestDebugEngineFunction · 0.76
TestHasCanonicalPushFunction · 0.76