pub struct SchnorrProof {
pub r_hex: String,
pub z_hex: String,
}Expand description
A Schnorr proof: (R, z) serialized as hex strings.
Fields§
§r_hex: StringCommitment point R = g^k (SEC1 compressed, hex).
z_hex: StringResponse scalar z = k + c*x (32 bytes, hex).
Trait Implementations§
Source§impl Clone for SchnorrProof
impl Clone for SchnorrProof
Source§fn clone(&self) -> SchnorrProof
fn clone(&self) -> SchnorrProof
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 SchnorrProof
impl Debug for SchnorrProof
Source§impl<'de> Deserialize<'de> for SchnorrProof
impl<'de> Deserialize<'de> for SchnorrProof
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
impl Eq for SchnorrProof
Source§impl PartialEq for SchnorrProof
impl PartialEq for SchnorrProof
Source§fn eq(&self, other: &SchnorrProof) -> bool
fn eq(&self, other: &SchnorrProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchnorrProof
impl Serialize for SchnorrProof
impl StructuralPartialEq for SchnorrProof
Auto Trait Implementations§
impl Freeze for SchnorrProof
impl RefUnwindSafe for SchnorrProof
impl Send for SchnorrProof
impl Sync for SchnorrProof
impl Unpin for SchnorrProof
impl UnsafeUnpin for SchnorrProof
impl UnwindSafe for SchnorrProof
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