Stamp via CLI
Get your first timestamp in under 5 minutes.
Prerequisites
- Rust Nightly
- A file to timestamp
Install the CLI
cargo install uts-cli --version 0.1.0-alpha.0 --lockedOr build from source:
git clone https://github.com/lightsing/uts.git
cd uts
cargo install --path crates/cliTimestamp a File
uts stamp myfile.txtThis creates myfile.txt.ots containing a pending timestamp proof.
Note:
The pending timestamp cannot prove the existence of the file, and relies on the liveness of the calendar server to retrieve the full proof later.
Upgrade the Timestamp
Wait for the calendar server to attest the batch on-chain (usually ~10 seconds), then run:
uts upgrade myfile.txt.otsThis command retrieves the full self-contained proof.
Note:
Due to the privacy-preserving design of UTS, the calendar server does not associate the file hash with the timestamp proof.
Before the UIP-1 upgrade, the loss of the
.otsfile means permanent loss of the timestamp proof.Always keep a backup of the
.otsfile if it's important to you.
Verify the Timestamp
uts verify myfile.txtThe command checks the file with the upgraded proof and confirms if the timestamp is valid.
Next Steps
- Architecture — How it works