Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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

signature

The signature to verify.

data

The data the signature is expected to sign.

Return Value

Whether the signature is valid.