Class Script.Builder
java.lang.Object
com.codename1.crypto.bitcoin.Script.Builder
- Enclosing class:
Script
Appends opcodes and pushes to a script.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()The script.number(long value) Appends a number as script arithmetic reads it:OP_0,OP_1NEGATE,OP_1..OP_16, or a minimal little-endian sign-magnitude push.op(int opcode) Appends one opcode.push(byte[] data) Appends a data push with the shortest push opcode for its length.
-
Method Details
-
op
Appends one opcode. -
push
Appends a data push with the shortest push opcode for its length. -
number
Appends a number as script arithmetic reads it:OP_0,OP_1NEGATE,OP_1..OP_16, or a minimal little-endian sign-magnitude push. -
build
The script.
-