pub struct ION;Trait Implementations§
Source§impl Sidetree for ION
impl Sidetree for ION
Source§const SIGNATURE_ALGORITHM: Algorithm = Algorithm::ES256K
const SIGNATURE_ALGORITHM: Algorithm = Algorithm::ES256K
SIGNATURE_ALGORITHM (JWS alg)Source§fn generate_key() -> JWK
fn generate_key() -> JWK
Generate a new keypair (KEY_ALGORITHM)
Source§fn validate_key(key: &JWK) -> bool
fn validate_key(key: &JWK) -> bool
Ensure that a keypair is valid for this Sidetree DID Method Read more
Source§fn data_encoding_scheme(data: &[u8]) -> String
fn data_encoding_scheme(data: &[u8]) -> String
Source§fn reveal_value(commitment_value: &[u8]) -> String
fn reveal_value(commitment_value: &[u8]) -> String
Source§const MAX_OPERATION_HASH_LENGTH: usize = 100usize
const MAX_OPERATION_HASH_LENGTH: usize = 100usize
Source§const NONCE_SIZE: usize = 16usize
const NONCE_SIZE: usize = 16usize
Source§const MAX_CONTROLLER_LENGTH: Option<usize> = None
const MAX_CONTROLLER_LENGTH: Option<usize> = None
Maximum length of
controller property Read moreSource§const MAX_PKMB_LENGTH: Option<usize> = None
const MAX_PKMB_LENGTH: Option<usize> = None
Maximum length of
publicKeyMultibase property Read moreSource§fn commitment_scheme(pkjwk: &PublicKeyJwk) -> String
fn commitment_scheme(pkjwk: &PublicKeyJwk) -> String
Source§fn create_existing(
update_pk: &PublicKeyJwk,
recovery_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>,
) -> Result<Operation, CreateError>
fn create_existing( update_pk: &PublicKeyJwk, recovery_pk: &PublicKeyJwk, patches: Vec<DIDStatePatch>, ) -> Result<Operation, CreateError>
Create a Sidetree-based DID using existing keys Read more
Source§fn create(
patches: Vec<DIDStatePatch>,
) -> Result<(Operation, JWK, JWK), CreateError>
fn create( patches: Vec<DIDStatePatch>, ) -> Result<(Operation, JWK, JWK), CreateError>
Create a Sidetree-based DID Read more
Source§fn update(
did_suffix: DIDSuffix,
update_key: &JWK,
new_update_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>,
) -> Result<UpdateOperation, UpdateError>
fn update( did_suffix: DIDSuffix, update_key: &JWK, new_update_pk: &PublicKeyJwk, patches: Vec<DIDStatePatch>, ) -> Result<UpdateOperation, UpdateError>
Create a Sidetree-based DID Read more
Source§fn recover_existing(
did_suffix: DIDSuffix,
recovery_key: &JWK,
new_update_pk: &PublicKeyJwk,
new_recovery_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>,
) -> Result<Operation, RecoverError>
fn recover_existing( did_suffix: DIDSuffix, recovery_key: &JWK, new_update_pk: &PublicKeyJwk, new_recovery_pk: &PublicKeyJwk, patches: Vec<DIDStatePatch>, ) -> Result<Operation, RecoverError>
Recover a Sidetree-based DID using existing keys Read more
Source§fn recover(
did_suffix: DIDSuffix,
recovery_key: &JWK,
patches: Vec<DIDStatePatch>,
) -> Result<(Operation, JWK, JWK), RecoverError>
fn recover( did_suffix: DIDSuffix, recovery_key: &JWK, patches: Vec<DIDStatePatch>, ) -> Result<(Operation, JWK, JWK), RecoverError>
Recover a Sidetree-based DID Read more
Source§fn deactivate(
did_suffix: DIDSuffix,
recovery_key: JWK,
) -> Result<DeactivateOperation, DeactivateError>
fn deactivate( did_suffix: DIDSuffix, recovery_key: JWK, ) -> Result<DeactivateOperation, DeactivateError>
Deactivate a Sidetree-based DID Read more
Source§fn serialize_suffix_data(suffix_data: &SuffixData) -> DIDSuffix
fn serialize_suffix_data(suffix_data: &SuffixData) -> DIDSuffix
Source§fn validate_did_suffix(
suffix: &DIDSuffix,
) -> Result<(), InvalidSidetreeDIDSuffix>
fn validate_did_suffix( suffix: &DIDSuffix, ) -> Result<(), InvalidSidetreeDIDSuffix>
Check that a DID Suffix looks valid
Auto Trait Implementations§
impl Freeze for ION
impl RefUnwindSafe for ION
impl Send for ION
impl Sync for ION
impl Unpin for ION
impl UnwindSafe for ION
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.