Encoding Length
int encodingLength(int i) { return i < OPS['OP_PUSHDATA1']! ? 1 : i <= 0xff ? 2 : i <= 0xffff ? 3 : 5; }