Summary
Implement a CLI subcommand ffs-client protocol mcr post-commitment which will post a commitment to an MCR implementation. In addition to the accepting variables to configure where and how the commit is being posted, you should also be able to provide one of the following:
--commitment-hex: should be a hex-encoded version of the commitment.
- OR
--preimage-string: should be a string that will be hashed to for the commitment, can accept pipes (hence we don't add an additional config for files).
Note: this is pulled up under ffs-client because we are at the time of writing unsure about goals of the final ffs CLI and would like to prevent that binary from bloating prematurely.
Summary
Implement a CLI subcommand
ffs-client protocol mcr post-commitmentwhich will post a commitment to an MCR implementation. In addition to the accepting variables to configure where and how the commit is being posted, you should also be able to provide one of the following:--commitment-hex: should be a hex-encoded version of the commitment.--preimage-string: should be a string that will be hashed to for the commitment, can accept pipes (hence we don't add an additional config for files).Note: this is pulled up under
ffs-clientbecause we are at the time of writing unsure about goals of the finalffsCLI and would like to prevent that binary from bloating prematurely.