[−][src]Trait mundane::public::PublicKey
The public component of a public/private key pair.
Associated Types
type Private: PrivateKey<Public = Self>
The type of the private component.
Provided methods
#[must_use]
fn is_valid<S: Signature<PrivateKey = Self::Private>>(
&self,
message: &[u8],
signature: &S
) -> bool
&self,
message: &[u8],
signature: &S
) -> bool
Verifies a message with this public key.
is_valid
verifies that a message was signed by the private key
corresponding to this public key. It is equivalent to
signature.is_valid(self, message)
.