Instance Method
isValidSignature(_:for:)
iOS 26.0+
macOS 26.0+
tvOS 26.0+
watchOS 26.0+
Verifies that the given signature is valid for the given data.
func isValidSignature<S, D>(_ signature: S, for data: D) -> Bool where S : DataProtocol, D : DataProtocol
Parameters
signatureThe signature to verify.
dataThe data the signature is expected to sign.
Return Value
Whether the signature is valid.