Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ tracing = "0.1"
affinidi-tdk = "0.10"
anyhow = "1.0"
tokio = "1"
# The `data_room` example seals records for real rather than pretending to. Dev-only:
# nothing in the library itself encrypts, and adding a cipher to its dependency graph for
# the sake of an example would be the wrong trade.
chacha20poly1305 = "0.10"
rand = "0.8"
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ This library supports both W3C VC 1.1 and 2.0 specifications.

See [CHANGELOG.md](CHANGELOG.md) for release history.

## Examples

```bash
cargo run --example sign_and_verify # create, sign, verify one credential
cargo run --example data_room # a whole data room, end to end
```

`data_room` runs the room story in one process with real DIDs, real signed credentials,
real AEAD and real chain verification: a room issues its owner a VAC, invites a member by
VIC, completes the VMC pair on their acknowledgement, seals a record, watches that member
equip an **agent with strictly less authority than they hold themselves**, rotates the
epoch on removal, and finally prints exactly what the host can see — which is ciphertext,
an epoch number, and nothing else.

## Credential Type Hierarchy

All credentials inherit from the abstract `DTGCredential`.
Expand Down
Loading