Vade Evan Substrate Plugin
About
This crate allows you to use to work with DIDs Trust and Trace, which runs on evan.network.
For this purpose a VadePlugin implementation is exported: VadeEvanSubstrate.
VadeEvanSubstrate
Supports creating, updating and getting DIDs and DID documents on substrate, therefore supports:
Signing substrate requests
As the did resolver instance needs to sign its requests against substrate, a remote endpoint for signing has to be provided. The DID resolver will sign requests for did_create and did_update. A signing endpoint has to be passed with the config argument in the constructor, e.g.:
use ;
let signer: = Boxnew;
let resolver = new;
signing_url will be called with a POST request. The messages that should be signed is passed to the server alongside a reference to a key like this:
Two types of of responses are supported. Successful signing results are give in this format:
Errors can be signaled this way:
Compiling vade-evan-substrate
"Regular" build
No surprise here:
WASM
To compile vade-evan-substrate for wasm, use wasm pack.
Also you have to specify whether to build a browser or a nodejs environment.
nodejs:
browser: