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

Method PopByteArray

txscript/stack.go:74–76  ·  view source on GitHub ↗

PopByteArray pops the value off the top of the stack and returns it. Stack transformation: [... x1 x2 x3] -> [... x1 x2]

()

Source from the content-addressed store, hash-verified

72//
73// Stack transformation: [... x1 x2 x3] -> [... x1 x2]
74func (s *stack) PopByteArray() ([]byte, error) {
75 return s.nipN(0)
76}
77
78// PopInt pops the value off the top of the stack, converts it into a script
79// num, and returns it. The act of converting to a script num enforces the

Callers 15

TestStackFunction · 0.95
PopIntMethod · 0.95
PopBoolMethod · 0.95
TuckMethod · 0.95
DropNMethod · 0.95
popIfBoolFunction · 0.80
opcodeToAltStackFunction · 0.80
opcodeFromAltStackFunction · 0.80
opcodeEqualFunction · 0.80
opcodeRipemd160Function · 0.80
opcodeSha1Function · 0.80
opcodeSha256Function · 0.80

Calls 1

nipNMethod · 0.95

Tested by 1

TestStackFunction · 0.76