Skip to content

Commit

Permalink
removing couple comments
Browse files Browse the repository at this point in the history
  • Loading branch information
coax1d committed Nov 22, 2024
1 parent 2e545b7 commit f9f6e4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions substrate/primitives/application-crypto/src/bandersnatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ impl RuntimePublic for Public {
sp_io::crypto::bandersnatch_sign(key_type, self, msg.as_ref())
}

/// Dummy implementation. Returns `false`.
fn verify<M: AsRef<[u8]>>(&self, msg: &M, signature: &Self::Signature) -> bool {
let sig = AppSignature::from(signature.clone());
let pub_key = AppPublic::from(self.clone());
AppPair::verify(&sig, msg.as_ref(), &pub_key)
}

/// Dummy implementation. Returns 'None'.
fn generate_pop(&mut self, key_type: KeyTypeId) -> Option<Self::Signature> {
let pub_key_as_bytes = self.to_raw_vec();
let pop_statement = [POP_CONTEXT_TAG, pub_key_as_bytes.as_slice()].concat();
Expand Down

0 comments on commit f9f6e4f

Please sign in to comment.