Updates the documentation for TariHasher. Does some renaming relating to hasher outputs.
Motivation and Context
The TariHasher type has minimal documentation. Because it uses CBOR encoding under the hood to help ensure canonical hasher input, it may be useful to describe its design intent and requirements on input data. This PR adds such documentation.
Separately, one use of the hasher functionality is to produce vote signature messages. The naming used suggests this value is a signature challenge, which is not the case. This PR does some renaming to clarify this.
How Has This Been Tested?
Existing tests pass.
What process can a PR reviewer use to test or verify this change?
Confirm that the updated documentation is accurate, and that the renaming was done correctly.
BREAKING CHANGE: Changes the VoteSignatureService public trait API via a rename.
Description
Updates the documentation for
TariHasher
. Does some renaming relating to hasher outputs.Motivation and Context
The
TariHasher
type has minimal documentation. Because it uses CBOR encoding under the hood to help ensure canonical hasher input, it may be useful to describe its design intent and requirements on input data. This PR adds such documentation.Separately, one use of the hasher functionality is to produce vote signature messages. The naming used suggests this value is a signature challenge, which is not the case. This PR does some renaming to clarify this.
How Has This Been Tested?
Existing tests pass.
What process can a PR reviewer use to test or verify this change?
Confirm that the updated documentation is accurate, and that the renaming was done correctly.
BREAKING CHANGE: Changes the
VoteSignatureService
public trait API via a rename.