---
title: "isValidSignature(_:for:context:)"
framework: cryptokit
role: symbol
role_heading: Instance Method
path: "cryptokit/mldsa65/publickey/isvalidsignature(_:for:context:)"
---

# isValidSignature(_:for:context:)

Verifies a MLDSA65 signature, in a specific context.

## Declaration

```swift
func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Bool where S : DataProtocol, D : DataProtocol, C : DataProtocol
```

## Parameters

- `signature`: The MLDSA65 signature to verify.
- `data`: The signed data.
- `context`: Context for the signature.

## Return Value

Return Value true if the signature is valid in the specified context, false otherwise.
