pub struct Eip712Method2021 {
pub id: IriBuf,
pub controller: UriBuf,
pub blockchain_account_id: BlockchainAccountId,
}Expand description
Eip712Method2021.
Fields§
§id: IriBufKey identifier.
controller: UriBufController of the verification method.
blockchain_account_id: BlockchainAccountIdBlockchain accound ID.
Implementations§
source§impl Eip712Method2021
impl Eip712Method2021
pub const NAME: &'static str = EIP712_METHOD_2021_TYPE
pub const IRI: &'static Iri = _
pub fn sign_bytes( &self, secret_key: &JWK, data: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
pub fn verify_bytes( &self, data: &[u8], signature_bytes: &[u8], ) -> Result<ProofValidity, ProofValidationError>
Trait Implementations§
source§impl Clone for Eip712Method2021
impl Clone for Eip712Method2021
source§fn clone(&self) -> Eip712Method2021
fn clone(&self) -> Eip712Method2021
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 Eip712Method2021
impl Debug for Eip712Method2021
source§impl<'de> Deserialize<'de> for Eip712Method2021
impl<'de> Deserialize<'de> for Eip712Method2021
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 From<Eip712Method2021> for AnyMethod
impl From<Eip712Method2021> for AnyMethod
source§fn from(value: Eip712Method2021) -> Self
fn from(value: Eip712Method2021) -> Self
Converts to this type from the input type.
source§impl Hash for Eip712Method2021
impl Hash for Eip712Method2021
source§impl<I_, V_> LinkedData<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedData<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
source§impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for Eip712Method2021where
IriBuf: LinkedDataDeserializeSubject<I_, V_>,
UriBuf: LinkedDataDeserializePredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<V_::Iri> + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for Eip712Method2021where
IriBuf: LinkedDataDeserializeSubject<I_, V_>,
UriBuf: LinkedDataDeserializePredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<V_::Iri> + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
fn deserialize_objects_in<'de_, D_>( vocabulary: &V_, interpretation: &I_, dataset: &D_, graph: Option<&I_::Resource>, objects: impl IntoIterator<Item = &'de_ I_::Resource>, context: Context<'_, I_>, ) -> Result<Self, FromLinkedDataError>
fn deserialize_objects<'a, D>(
vocabulary: &V,
interpretation: &I,
dataset: &D,
graph: Option<&<I as Interpretation>::Resource>,
objects: impl IntoIterator<Item = &'a <I as Interpretation>::Resource>,
) -> Result<Self, FromLinkedDataError>where
<I as Interpretation>::Resource: 'a,
D: PatternMatchingDataset<Resource = <I as Interpretation>::Resource>,
source§impl<I_, V_> LinkedDataDeserializeSubject<I_, V_> for Eip712Method2021where
IriBuf: LinkedDataDeserializeSubject<I_, V_>,
UriBuf: LinkedDataDeserializePredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<V_::Iri> + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializeSubject<I_, V_> for Eip712Method2021where
IriBuf: LinkedDataDeserializeSubject<I_, V_>,
UriBuf: LinkedDataDeserializePredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<V_::Iri> + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
fn deserialize_subject_in<D_>(
vocabulary_: &V_,
interpretation_: &I_,
dataset_: &D_,
graph_: Option<&I_::Resource>,
resource_: &I_::Resource,
context_: Context<'_, I_>,
) -> Result<Self, FromLinkedDataError>where
D_: PatternMatchingDataset<Resource = I_::Resource>,
fn deserialize_subject<D>( vocabulary: &V, interpretation: &I, dataset: &D, graph: Option<&<I as Interpretation>::Resource>, resource: &<I as Interpretation>::Resource, ) -> Result<Self, FromLinkedDataError>
source§impl<I_, V_> LinkedDataGraph<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataGraph<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_graph<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: GraphVisitor<I_, V_>,
source§impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_objects<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: PredicateObjectsVisitor<I_, V_>,
source§impl<I_, V_> LinkedDataResource<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataResource<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn interpretation( &self, vocabulary: &mut V_, interpretation: &mut I_, ) -> ResourceInterpretation<'_, I_, V_>
fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
source§impl<I_, V_> LinkedDataSubject<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataSubject<I_, V_> for Eip712Method2021where
UriBuf: LinkedDataPredicateObjects<I_, V_>,
BlockchainAccountId: LinkedDataPredicateObjects<I_, V_>,
IriBuf: LinkedDataResource<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_subject<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: SubjectVisitor<I_, V_>,
source§impl PartialEq for Eip712Method2021
impl PartialEq for Eip712Method2021
source§impl Serialize for Eip712Method2021
impl Serialize for Eip712Method2021
source§impl SigningMethod<JWK, ESKeccakKR> for Eip712Method2021
impl SigningMethod<JWK, ESKeccakKR> for Eip712Method2021
fn sign_bytes( &self, key: &JWK, _algorithm: ESKeccakKR, bytes: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
fn sign_bytes_multi( &self, secret: &S, algorithm: <A as SignatureAlgorithmType>::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>
source§impl TryFrom<AnyMethod> for Eip712Method2021
impl TryFrom<AnyMethod> for Eip712Method2021
source§impl TryFrom<GenericVerificationMethod> for Eip712Method2021
impl TryFrom<GenericVerificationMethod> for Eip712Method2021
§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
source§impl TypedVerificationMethod for Eip712Method2021
impl TypedVerificationMethod for Eip712Method2021
fn expected_type() -> Option<ExpectedType>
fn type_match(ty: &str) -> bool
fn type_(&self) -> &str
impl Eq for Eip712Method2021
impl StructuralPartialEq for Eip712Method2021
Auto Trait Implementations§
impl Freeze for Eip712Method2021
impl RefUnwindSafe for Eip712Method2021
impl Send for Eip712Method2021
impl Sync for Eip712Method2021
impl Unpin for Eip712Method2021
impl UnwindSafe for Eip712Method2021
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> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.