pub struct ION;Trait Implementations§
source§impl Sidetree for ION
impl Sidetree for ION
source§fn generate_key() -> Result<JWK, SidetreeError>
fn generate_key() -> Result<JWK, SidetreeError>
Generate a new keypair (KEY_ALGORITHM)
source§fn validate_key(key: &JWK) -> Result<(), SidetreeError>
fn validate_key(key: &JWK) -> Result<(), SidetreeError>
Ensure that a keypair is valid for this Sidetree DID Method Read more
source§const SIGNATURE_ALGORITHM: Algorithm = Algorithm::ES256K
const SIGNATURE_ALGORITHM: Algorithm = Algorithm::ES256K
SIGNATURE_ALGORITHM (JWS alg)source§fn data_encoding_scheme(data: &[u8]) -> String
fn data_encoding_scheme(data: &[u8]) -> String
source§fn json_canonicalization_scheme<T: Serialize + ?Sized>(
value: &T
) -> Result<String, SidetreeError>
fn json_canonicalization_scheme<T: Serialize + ?Sized>(
value: &T
) -> Result<String, SidetreeError>
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) -> AResult<String>
fn commitment_scheme(pkjwk: &PublicKeyJwk) -> AResult<String>
source§fn create_existing(
update_pk: &PublicKeyJwk,
recovery_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>
) -> AResult<Operation>
fn create_existing(
update_pk: &PublicKeyJwk,
recovery_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>
) -> AResult<Operation>
Create a Sidetree-based DID using existing keys Read more
source§fn create(patches: Vec<DIDStatePatch>) -> AResult<(Operation, JWK, JWK)>
fn create(patches: Vec<DIDStatePatch>) -> AResult<(Operation, JWK, JWK)>
Create a Sidetree-based DID Read more
source§fn update(
did_suffix: DIDSuffix,
update_key: &JWK,
new_update_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>
) -> AResult<UpdateOperation>
fn update(
did_suffix: DIDSuffix,
update_key: &JWK,
new_update_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>
) -> AResult<UpdateOperation>
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>
) -> AResult<Operation>
fn recover_existing(
did_suffix: DIDSuffix,
recovery_key: &JWK,
new_update_pk: &PublicKeyJwk,
new_recovery_pk: &PublicKeyJwk,
patches: Vec<DIDStatePatch>
) -> AResult<Operation>
Recover a Sidetree-based DID using existing keys Read more
source§fn recover(
did_suffix: DIDSuffix,
recovery_key: &JWK,
patches: Vec<DIDStatePatch>
) -> AResult<(Operation, JWK, JWK)>
fn recover(
did_suffix: DIDSuffix,
recovery_key: &JWK,
patches: Vec<DIDStatePatch>
) -> AResult<(Operation, JWK, JWK)>
Recover a Sidetree-based DID Read more
source§fn deactivate(
did_suffix: DIDSuffix,
recovery_key: JWK
) -> AResult<DeactivateOperation>
fn deactivate(
did_suffix: DIDSuffix,
recovery_key: JWK
) -> AResult<DeactivateOperation>
Deactivate a Sidetree-based DID Read more