Struct confidential_identity_v1::ProofPublicKey
source · pub struct ProofPublicKey { /* private fields */ }
Expand description
An Schnorrkel/Ristretto x25519 (“sr25519”) public key. This is the construct that the blockchain validator will use for claim proof validation.
Implementations§
source§impl ProofPublicKey
impl ProofPublicKey
sourcepub fn new(
cdd_id: RistrettoPoint,
investor_did: &[u8],
scope_id: RistrettoPoint,
scope_did: &[u8]
) -> Self
pub fn new( cdd_id: RistrettoPoint, investor_did: &[u8], scope_id: RistrettoPoint, scope_did: &[u8] ) -> Self
Create a public key object for the blockchain validator.
Inputs
cdd_id
: the investor’s CDD_ID.investor_did
: the investor’s DID.scope_id
: the investor’s SCOPE_ID.scope_did
: the scope DID
Trait Implementations§
source§impl Clone for ProofPublicKey
impl Clone for ProofPublicKey
source§fn clone(&self) -> ProofPublicKey
fn clone(&self) -> ProofPublicKey
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 Hash for ProofPublicKey
impl Hash for ProofPublicKey
source§impl Ord for ProofPublicKey
impl Ord for ProofPublicKey
source§fn cmp(&self, other: &ProofPublicKey) -> Ordering
fn cmp(&self, other: &ProofPublicKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ProofPublicKey> for ProofPublicKey
impl PartialEq<ProofPublicKey> for ProofPublicKey
source§fn eq(&self, other: &ProofPublicKey) -> bool
fn eq(&self, other: &ProofPublicKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProofPublicKey> for ProofPublicKey
impl PartialOrd<ProofPublicKey> for ProofPublicKey
source§fn partial_cmp(&self, other: &ProofPublicKey) -> Option<Ordering>
fn partial_cmp(&self, other: &ProofPublicKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ProofPublicKey
impl Eq for ProofPublicKey
impl StructuralEq for ProofPublicKey
impl StructuralPartialEq for ProofPublicKey
Auto Trait Implementations§
impl RefUnwindSafe for ProofPublicKey
impl Send for ProofPublicKey
impl Sync for ProofPublicKey
impl Unpin for ProofPublicKey
impl UnwindSafe for ProofPublicKey
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.