Function hdk::ed25519::verify_signature
source · [−]pub fn verify_signature<K, S, D>(
key: K,
signature: S,
data: D
) -> ExternResult<bool> where
K: Into<AgentPubKey>,
S: Into<Signature>,
D: Serialize + Debug,
Expand description
Verify the passed signature and public key against the passed serializable input.
The data is not used literally, it is serialized.
This is important to use if you have data structures rather than bytes, as the serialization will
be passed through the canonical serialization process, guaranteeing consistent behaviour.
If you pass in a Vec