Struct libsecp256k1_rs::Message [−][src]
pub struct Message(pub Scalar);
Hashed message input to an ECDSA signature.
Methods
impl Message
[src]
impl Message
pub 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]) -> Message
pub 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 Message
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Message
[src]
impl Clone for Message
fn clone(&self) -> Message
[src]
fn clone(&self) -> Message
Returns 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 Message
impl PartialEq for Message
[src]
impl PartialEq for Message
fn eq(&self, other: &Message) -> bool
[src]
fn eq(&self, other: &Message) -> bool
This 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) -> bool
This method tests for !=
.
impl From<SecretKey> for Message
[src]
impl From<SecretKey> for Message
impl Combinable for Message
[src]
impl Combinable for Message