2 releases
0.1.1 | Dec 5, 2022 |
---|---|
0.1.0 | Nov 23, 2022 |
#11 in #crystal
34 downloads per month
Used in dark-crystal-web3
19KB
392 lines
dark-crystal-web3-backup
Used by the secret owner to make and recover backups for Dark Crystal Web3.
Internally uses dark-crystal-key-backup-rust for secret sharing and encryption.
Try the deployed version of the web front end to see what this crate does.
Usage
Command line interface
The CLI has commands to create and recover secrets as well as a serve
command which serves the web-ui.
It expects to find the web-ui in ~/.local/share/dark-crystal-web3
dark-crystal-web3 help
or from the repository:
cargo run --bin cli -- help
JS bindings for nodejs or the browser:
Clone the repository and do
cd web3-backup-js-binding
wasm-pack build
or wasm-pach build --target nodejs
WASM Web front end using yew
Install trunk:
cargo install --locked trunk
cd dark-crystal-web3-web-ui
trunk serve
And open 0.0.0.0:8080
in a browser
lib.rs
:
Create encrypted share payloads, which are encoded into links to the dark-crystal-web3 dapp. Recover a secret from a set of decrypted shares.
Dependencies
~6MB
~127K SLoC