Struct secp256k1zkp::pedersen::ProofMessage
source · pub struct ProofMessage(/* private fields */);
Expand description
A message included in a range proof. The message is recoverable by rewinding a range proof passing in the same nonce that was used to originally create the range proof.
Implementations§
source§impl ProofMessage
impl ProofMessage
sourcepub fn empty() -> ProofMessage
pub fn empty() -> ProofMessage
Creates an empty message.
sourcepub fn from_bytes(array: &[u8]) -> ProofMessage
pub fn from_bytes(array: &[u8]) -> ProofMessage
Creates a message from a byte slice.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
The length of the message. This will be PROOF_MSG_SIZE unless the message has been truncated.
Trait Implementations§
source§impl Clone for ProofMessage
impl Clone for ProofMessage
source§fn clone(&self) -> ProofMessage
fn clone(&self) -> ProofMessage
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 ProofMessage
impl Debug for ProofMessage
source§impl PartialEq for ProofMessage
impl PartialEq for ProofMessage
source§fn eq(&self, other: &ProofMessage) -> bool
fn eq(&self, other: &ProofMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProofMessage
Auto Trait Implementations§
impl Freeze for ProofMessage
impl RefUnwindSafe for ProofMessage
impl Send for ProofMessage
impl Sync for ProofMessage
impl Unpin for ProofMessage
impl UnwindSafe for ProofMessage
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