pub trait PublicKey: WithMulticodec {
// Required methods
fn to_encoded_point_bytes(&self) -> Box<[u8]>;
fn to_jwk(&self) -> Jwk;
// Provided method
fn to_did(&self) -> Did { ... }
}Required Methods§
Sourcefn to_encoded_point_bytes(&self) -> Box<[u8]>
fn to_encoded_point_bytes(&self) -> Box<[u8]>
The compressed SEC1 point, which is the encoding did:key is built
from.
fn to_jwk(&self) -> Jwk
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".