Closed thobson88 closed 2 months ago
trustchain-cli vc sign -f <CREDENTIAL_FILE> --did <DID>
trustchain-cli vc verify -f <CREDENTIAL_FILE>
trustchain-cli data sign -f <DATASET_FILE> --did <DID>
trustchain-cli data verify -f <DATASET_FILE> -c <CREDENTIAL_FILE>
(other options same as for vc
case)
I've removed the xattr
stuff because it's platform-dependent and is a file system feature, so the attributes are not (in general) retained when the file is transferred.
To try out the updated CLI, checkout the branch:
git checkout 181-credentials4data
Then either install the CLI:
cargo install --path trustchain-cli
and then run the trustchain-cli
command as usual.
Or, descend to the trustchain-cli
directory:
cd trustchain-cli
and run the binary:
cargo run --bin trustchain-cli
Notes on hackmd: https://hackmd.io/h7FX48jpSOCuKoPmMs61bQ?view
Main steps:
data.tar
from the (recently) most downloaded dataset on huggingfacexattr
; note that extended attributes don't affect the hash; link to xattr crate~