From 28790e0630270526f76d915515223e2a0e6d5169 Mon Sep 17 00:00:00 2001 From: Doug Anderson444 Date: Sat, 25 Nov 2023 21:21:25 -0400 Subject: [PATCH] new svg diagram --- README.md | 10 ++++++---- dac-flow.svg | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ee1bae..58a1bfa 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,16 @@ The Delegateable Anonymous Credentials (DAC) system. A system for issuing and ve This is a workspace broken down into: -- [delanocreds](/crates/delanocreds/): The core library for issuing and using anonymous credentials. +- [delanocreds](/crates/delanocreds/): The Rust core library for issuing and using anonymous credentials. - [delano-wit-component](/crates/delano-wit-component/): Wasm Interface Types for [Wasm Component](https://github.com/WebAssembly/component-model) use from any [host system](https://github.com/bytecodealliance/wit-bindgen#host-runtimes-for-components) such as Go, JavaScript, Python or Rust. - [examples](examples/): A simple demo that issues and verifies credentials ## Run Demo Binary +See how fast it creates and verifies credentials. + ```bash -cargo run +cargo run --release ``` ## Tests @@ -21,10 +23,10 @@ cargo run Workspace and integration tests are located in `./tests` and can be run with: ```bash -cargo test +cargo test --workspace ``` -Wasm test in `./tests/wasm.rs` using `wasm-bindgen-test` and [wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html#appendix-using-wasm-bindgen-test-without-wasm-pack) +When writing [`delanocreds`](/crates/delanocreds), the [`bls12-381-plus` crate](https://github.com/mikelodder7/bls12_381_plus/pull/3) wasn't wasm32 compatible, so I forked it and added wasm32 support. The wasm32 tests were added to verify the changes compile to wasm, added in `./tests/wasm.rs` using `wasm-bindgen-test` and [wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html#appendix-using-wasm-bindgen-test-without-wasm-pack). They can be run with this command: ```bash cargo test --target wasm32-unknown-unknown diff --git a/dac-flow.svg b/dac-flow.svg index 6360173..2e98d4f 100644 --- a/dac-flow.svg +++ b/dac-flow.svg @@ -1,4 +1,4 @@ - + @@ -18,4 +18,4 @@ - 1. Respected IssuerRoot Attributes2. Delegated Holdernameage > 21preferencesAnonymous Proof2. Doubting VerifierDid you say they're over 21?Here's your preferred beverageYes, we said they're over 21 \ No newline at end of file + 1. Respected IssuerRoot Attributes2. Delegated Holdernameage > 21preferencesAnonymous Proof2. Doubting VerifierDid you say they're over 21?Here's your preferred beverageYes, we said they're over 21🍹 \ No newline at end of file