Commit Graph

2 Commits

Author SHA1 Message Date
Dave Collins
a2366e6e0b
stdaddr: Accept vote and revoke limits separately.
This modifies the RewardCommitmentScript method of the StakeAddress
interface to accept the vote and revoke fee limits separately instead of
expecting the caller to have already encoded it properly.

This simplifies the creation of the reward commitment script since there
is not currently any other method available anywhere to independently
encode the limits properly and it is not a particularly trivial
encoding.

Finally, the tests and example are updated accordingly.
2021-03-30 01:59:44 -05:00
Dave Collins
37e4569917
stdaddr: Move from internal/staging to txscript.
This moves the new stdaddr package from the internal staging area to the
txscript module and updates the relevant paths and package README.md
accordingly.
2021-03-30 01:43:48 -05:00