Skip to content

Commit

Permalink
new svg diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Nov 26, 2023
1 parent f4a3d13 commit 28790e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,27 @@ 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

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
Expand Down
4 changes: 2 additions & 2 deletions dac-flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 28790e0

Please sign in to comment.