Self
This commit is contained in:
parent
5a67362b8e
commit
15aed9f320
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue