itns-sidechain/lib/script
Mark Tyneway 779e314dcb
script: sighash SINGLEREVERSE
Implement a new sighash type SINGLEREVERSE. This
sighash type is similar to SINGLE, but is different
because instead of committing to the same output
index as the input's index being signed, it commits
to the index at (outputs.length-1) - index.

If the first input was signed with SINGLEREVERSE,
then it would only commit to the final output.
This is useful because covenants are "linked", so
that the next covenant in the series must be at the
same index as the input. This new sighash type allows
a user to commit to the covenant input but not the
output for that covenant.

This is a building block for atomic name swaps on chain.
2019-06-21 11:33:30 -06:00
..
common.js script: sighash SINGLEREVERSE 2019-06-21 11:33:30 -06:00
index.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
opcode.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
script.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
scripterror.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
scriptnum.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
sigcache.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
stack.js pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
witness.js primitives: fix witness and covenant encode methods. 2018-08-06 09:28:48 -07:00