Struct secp256k1zkp::pedersen::ProofMessage
source · pub struct ProofMessage(_);
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
sourceimpl 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 as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Converts the message to 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
sourceimpl Clone for ProofMessage
impl Clone for ProofMessage
sourcefn clone(&self) -> ProofMessage
fn clone(&self) -> ProofMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProofMessage
impl Debug for ProofMessage
sourceimpl PartialEq<ProofMessage> for ProofMessage
impl PartialEq<ProofMessage> for ProofMessage
sourcefn eq(&self, other: &ProofMessage) -> bool
fn eq(&self, other: &ProofMessage) -> bool
impl Eq for ProofMessage
Auto Trait Implementations
impl RefUnwindSafe for ProofMessage
impl Send for ProofMessage
impl Sync for ProofMessage
impl Unpin for ProofMessage
impl UnwindSafe for ProofMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more