This commit is contained in:
Michael Vines 2019-03-17 19:48:12 -07:00
parent 5a67362b8e
commit 15aed9f320
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ pub struct Signature(GenericArray<u8, U64>);
impl Signature { impl Signature {
pub fn new(signature_slice: &[u8]) -> Self { pub fn new(signature_slice: &[u8]) -> Self {
Signature(GenericArray::clone_from_slice(&signature_slice)) Self(GenericArray::clone_from_slice(&signature_slice))
} }
pub fn verify(&self, pubkey_bytes: &[u8], message_bytes: &[u8]) -> bool { pub fn verify(&self, pubkey_bytes: &[u8], message_bytes: &[u8]) -> bool {