10

Some people have suggested repurposing OP_NOP3 as a new opcode, OP_CHECKSEQUENCEVERIFY.

What would the new opcode do? Why is it useful? Can't the signer choose the sequence field when they sign?

6

OP_CHECKSEQUENCEVERIFY (a.k.a OP_RELATIVECHECKLOCKTIMEVERIFY) can do Relative lock times (used for sidechains and lightning).

It basically checks, if a inputs sequence number is smaller then the sequence threshold (1 << 31 = 2147483648), and if, it will compare the nLockTime against the sequence number of the input.

More info:

  • OP_CSV (BIP112) only constrains the nSequence value. The comparison of nSequence against time happens independently of OP_CSV's usage (BIP68). – Pieter Wuille Feb 8 '16 at 2:41

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.