pub struct DataIntegrityProof {
pub type_: String,
pub cryptosuite: CryptoSuite,
pub created: Option<String>,
pub verification_method: String,
pub proof_purpose: String,
pub proof_value: Option<String>,
pub context: Option<Vec<String>>,
}Fields§
§type_: StringMust be ‘DataIntegrityProof’
cryptosuite: CryptoSuite§created: Option<String>§verification_method: String§proof_purpose: String§proof_value: Option<String>§context: Option<Vec<String>>Implementations§
Source§impl DataIntegrityProof
impl DataIntegrityProof
Sourcepub fn sign_jcs_data<S>(
data_doc: &S,
context: Option<Vec<String>>,
secret: &Secret,
created: Option<String>,
) -> Result<DataIntegrityProof, DataIntegrityError>where
S: Serialize,
pub fn sign_jcs_data<S>(
data_doc: &S,
context: Option<Vec<String>>,
secret: &Secret,
created: Option<String>,
) -> Result<DataIntegrityProof, DataIntegrityError>where
S: Serialize,
Creates a signature for the given data using the specified key. data_doc: Serializable Struct context: Optional context for the proof secret: Secret containing the private key to sign with created: Optional timestamp for the proof creation (“2023-02-24T23:36:38Z”)
Returns a Result containing a proof if successfull
Trait Implementations§
Source§impl Clone for DataIntegrityProof
impl Clone for DataIntegrityProof
Source§fn clone(&self) -> DataIntegrityProof
fn clone(&self) -> DataIntegrityProof
Returns a duplicate 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 DataIntegrityProof
impl Debug for DataIntegrityProof
Source§impl<'de> Deserialize<'de> for DataIntegrityProof
impl<'de> Deserialize<'de> for DataIntegrityProof
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
Auto Trait Implementations§
impl Freeze for DataIntegrityProof
impl RefUnwindSafe for DataIntegrityProof
impl Send for DataIntegrityProof
impl Sync for DataIntegrityProof
impl Unpin for DataIntegrityProof
impl UnwindSafe for DataIntegrityProof
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