Struct did_ion::sidetree::UpdateOperation
source · pub struct UpdateOperation {
pub did_suffix: DIDSuffix,
pub reveal_value: String,
pub delta: Delta,
pub signed_data: String,
}Expand description
Fields§
§did_suffix: DIDSuffix§reveal_value: StringOutput of Sidetree::reveal_value
delta: Delta§signed_data: StringCompact JWS (RFC 7515) of UpdateClaims
https://identity.foundation/sidetree/spec/v1.0.0/#update-signed-data-object
Trait Implementations§
source§impl Clone for UpdateOperation
impl Clone for UpdateOperation
source§fn clone(&self) -> UpdateOperation
fn clone(&self) -> UpdateOperation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UpdateOperation
impl Debug for UpdateOperation
source§impl<'de> Deserialize<'de> for UpdateOperation
impl<'de> Deserialize<'de> for UpdateOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for UpdateOperation
impl Serialize for UpdateOperation
source§impl SidetreeOperation for UpdateOperation
impl SidetreeOperation for UpdateOperation
source§fn partial_verify<S: Sidetree>(
self
) -> AResult<PartiallyVerifiedUpdateOperation>
fn partial_verify<S: Sidetree>(
self
) -> AResult<PartiallyVerifiedUpdateOperation>
Partially verify an UpdateOperation
Specifically, the following is done:
- The operation’s signed data is verified against the revealed public key that it must contain;
- the revealed public key is verified against the operation’s reveal value; and
- the operation’s delta object is verified against the delta hash in the signed data payload.
The DID Suffix is not verified by this function. The correspondence of the reveal value’s hash to the previous update commitment is not checked either, since that is not known from this function.
§type PartiallyVerifiedForm = PartiallyVerifiedUpdateOperation
type PartiallyVerifiedForm = PartiallyVerifiedUpdateOperation
The result of partially verifying the operation.