Skip to content

Instance Method

isValidSignature(_:for:)

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.