MCPcopy
hub / github.com/btcsuite/btcd / PushByteArray

Method PushByteArray

txscript/stack.go:51–53  ·  view source on GitHub ↗

PushByteArray adds the given back array to the top of the stack. Stack transformation: [... x1 x2] -> [... x1 x2 data]

(so []byte)

Source from the content-addressed store, hash-verified

49//
50// Stack transformation: [... x1 x2] -> [... x1 x2 data]
51func (s *stack) PushByteArray(so []byte) {
52 s.stk = append(s.stk, so)
53}
54
55// PushInt converts the provided scriptNum to a suitable byte array then pushes
56// it onto the top of the stack.

Callers 15

TestStackFunction · 0.95
PushIntMethod · 0.95
PushBoolMethod · 0.95
TuckMethod · 0.95
DupNMethod · 0.95
RotNMethod · 0.95
SwapNMethod · 0.95
OverNMethod · 0.95
PickNMethod · 0.95
RollNMethod · 0.95
setStackFunction · 0.80
opcodeFalseFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.76