pub trait ProofSigner:
Send
+ Sync
+ 'static {
// Required methods
fn verification_method(&self) -> &str;
fn prove<'a>(
&'a self,
document: &'a Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>;
}Expand description
Where a proof comes from: a key the server holds, or one it reaches through a signing service or the user’s device. What is signed is a whole document, and what comes back is that document with its proof.
Required Methods§
Sourcefn verification_method(&self) -> &str
fn verification_method(&self) -> &str
The DID URL of the key, which a proof names as its
verificationMethod.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".