Implement From<[u8;32]> for Message
This commit is contained in:
parent
70f54e1dea
commit
eccd625828
|
@ -302,6 +302,13 @@ impl Message {
|
|||
}
|
||||
}
|
||||
|
||||
/// Creates a message from a `MESSAGE_SIZE` byte array
|
||||
impl From<[u8; constants::MESSAGE_SIZE]> for Message {
|
||||
fn from(buf: [u8; constants::MESSAGE_SIZE]) -> Message {
|
||||
Message(buf)
|
||||
}
|
||||
}
|
||||
|
||||
/// An ECDSA error
|
||||
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
|
||||
pub enum Error {
|
||||
|
|
Loading…
Reference in New Issue