PopByteArray pops the value off the top of the stack and returns it. Stack transformation: [... x1 x2 x3] -> [... x1 x2]
()
| 72 | // |
| 73 | // Stack transformation: [... x1 x2 x3] -> [... x1 x2] |
| 74 | func (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 |