Encoding Length
int encodingLength(int i) { return i < ops.OP_PUSHDATA1 ? 1 : i <= 0xff ? 2 : i <= 0xffff ? 3 : 5; }