Struct libsecp256k1_rs::Message [−][src]
pub struct Message(pub Scalar);
Hashed message input to an ECDSA signature.
Methods
impl Message[src]
impl Messagepub fn hash(b: &[u8]) -> Result<Message, Error>[src]
pub fn hash(b: &[u8]) -> Result<Message, Error>pub fn parse(p: &[u8; 32]) -> Message[src]
pub fn parse(p: &[u8; 32]) -> Messagepub fn serialize(&self) -> [u8; 32][src]
pub fn serialize(&self) -> [u8; 32]pub fn sign(
message: &Message,
seckey: &SecretKey
) -> Result<(Signature, RecoveryId), Error>[src]
pub fn sign(
message: &Message,
seckey: &SecretKey
) -> Result<(Signature, RecoveryId), Error>Sign a message using the secret key.
Trait Implementations
impl Debug for Message[src]
impl Debug for Messagefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Message[src]
impl Clone for Messagefn clone(&self) -> Message[src]
fn clone(&self) -> MessageReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Eq for Message[src]
impl Eq for Messageimpl PartialEq for Message[src]
impl PartialEq for Messagefn eq(&self, other: &Message) -> bool[src]
fn eq(&self, other: &Message) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Message) -> bool[src]
fn ne(&self, other: &Message) -> boolThis method tests for !=.
impl From<SecretKey> for Message[src]
impl From<SecretKey> for Messageimpl Combinable for Message[src]
impl Combinable for Message