Skip to content

Instantly share code, notes, and snippets.

@richo
Created May 25, 2021 19:16
Show Gist options
  • Save richo/7c4e1f64639a3e8a4f2e4e7ca3e4c665 to your computer and use it in GitHub Desktop.
Save richo/7c4e1f64639a3e8a4f2e4e7ca3e4c665 to your computer and use it in GitHub Desktop.
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