Created
May 25, 2021 19:16
-
-
Save richo/7c4e1f64639a3e8a4f2e4e7ca3e4c665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn check_signature(&self, key: &ed25519_dalek::PublicKey) -> StdResult<(), ed25519_dalek::ed25519::Error> { | |
let bytes = self.details_as_proto() | |
.expect("Couldn't serialize details"); | |
let res = key.verify(&bytes, self.signature()); | |
dbg!(&res); | |
return res | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment