Closed laser closed 6 years ago
I talked to @dignifiedquire about this today.
My plan is to zero-pad the address public key-hash (already a 20-byte BLAKE2b digest) to 31 bytes and send that hash to the FPS as "prover id".
If I use the output of the Address#Hash
method, I ensure forward compatibility with any address format-changes.
Description
See: https://github.com/filecoin-project/go-filecoin/issues/474
Quoting my last comment on the issue:
Based on the above, the simplest thing might be to hash to 31 bytes and pad with a terminal zero byte in all cases. This would satisfy the requirements without getting too complicated.
Alternately, for the sake of simplicity, we could define the input to just be 31 bytes.
The latter solution would prevent Filecoin from using all available bits, but is that actually important?
Acceptance Criteria
Along with implementation, whatever decision gets made needs to be communicated to the FPS team so it can be reflected in the API.