[−][src]Crate vade_evan
This project is providing two plugins to be used with the ['vade'] library. These plugins offer functionalities to work with VCs and DIDs on evan.network.
Usage
Plugins from this project can be used within the ['vade'] library as described in its own documentation. To give you a jump start, here is how you can retrieve VC documents:
extern crate vade; extern crate vade_evan; use vade::Vade; use vade_evan::plugin::rust_vcresolver_evan::RustVcResolverEvan; const EXAMPLE_VC_NAME_REMOTE: &str = "vc:evan:testcore:0x6e90a3e2bf3823e52eceb0f81373eb58b1a0a238965f0d4388ab9ce9ceeddfd3"; #[tokio::test] async fn can_fetch_a_vc_document() { let rde = RustVcResolverEvan::new(); let mut vade = Vade::new(); vade.register_vc_resolver(Box::from(rde)); let _vc = vade.get_vc_document(&EXAMPLE_VC_NAME_REMOTE).await.unwrap(); }
Plugins
Plugins are described below shotly, for more details see respective API documentation
VC Resolver
Allows to work with VCs on evan.network, currently includes:
- retrieving VCs
- validating VCs, which will
- check
proof
(if attached) - check
credentialStatus
online (if attached)
- check
DID Resolver
Allows to work with DIDs on evan.network, currently includes:
- retrieving DIDs
Modules
platform | Platform depenent |
plugin |
|