You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`+` dispatches on type: when at least one operand is bytes-like the compiler emits OP_CAT, auto-coercing int sides via OP_SCRIPTNUMTOLE64 to keep on-chain and off-chain hashing byte-identical.
150
+
`+` dispatches on type: when at least one operand is bytes-like the compiler emits OP_CAT. Int operands must be converted with an explicit `num2bin(value, width)` — the compiler never picks a width, because the width is what an off-chain signer has to reproduce byte for byte. `num2bin` writes little-endian sign-magnitude (sign in the top bit of the last byte), which matches an unsigned LE64 only for non-negative values, so an off-chain signer must encode negatives the same way; a value that does not fit the requested width fails the script rather than truncating.
151
151
152
152
Three layers of replay protection are baked into the signed message:
0 commit comments