func isValidSignature<S, D>(_ signature: S, for data: D) -> Bool where S : DataProtocol, D : DataProtocol
Verifies an EdDSA signature over Curve25519.
- Parameters:
- signature: The signature to check against the given data.
- data: The data covered by the signature.
- Returns: A Boolean value that’s `true` when the signature is valid for
the given data.
init<D>(rawRepresentation: D) throws where D : ContiguousBytes
Creates a Curve25519 public key from a data representation.
- Parameters:
- rawRepresentation: A representation of the key as contiguous
bytes from which to create the key.