pub struct KeyPossessionProof {
pub public_key_hex: String,
pub commitment_hex: String,
pub response_hex: String,
pub context_hex: String,
}Expand description
A proof that the prover knows the signing key behind a public key.
Fields§
§public_key_hex: StringThe public key this proof attests to (hex, SEC1 compressed).
commitment_hex: StringCommitment point R = r·G (hex, SEC1 compressed).
response_hex: StringResponse z = r + c·x (hex).
context_hex: StringSHA-256 of the bound context (hex) — proofs do not transfer across contexts.
Trait Implementations§
Source§impl Clone for KeyPossessionProof
impl Clone for KeyPossessionProof
Source§fn clone(&self) -> KeyPossessionProof
fn clone(&self) -> KeyPossessionProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyPossessionProof
impl Debug for KeyPossessionProof
Source§impl<'de> Deserialize<'de> for KeyPossessionProof
impl<'de> Deserialize<'de> for KeyPossessionProof
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 KeyPossessionProof
impl RefUnwindSafe for KeyPossessionProof
impl Send for KeyPossessionProof
impl Sync for KeyPossessionProof
impl Unpin for KeyPossessionProof
impl UnsafeUnpin for KeyPossessionProof
impl UnwindSafe for KeyPossessionProof
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