<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/MLDSA65/PublicKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit",
      "CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit7MLDSA65O9PublicKeyV"
  },
  "title" : "MLDSA65.PublicKey"
}
-->

# MLDSA65.PublicKey

The public key for MLDSA65.

```
struct PublicKey
```

## Topics

### Creating a public key

[`init<D>(rawRepresentation: D) throws`](/documentation/CryptoKit/MLDSA65/PublicKey/init(rawRepresentation:))

Parses a public key from a serialized representation.

### Getting the raw representation

[`var rawRepresentation: Data`](/documentation/CryptoKit/MLDSA65/PublicKey/rawRepresentation)

A serialized representation of the public key.

### Validating a signature

### Instance Methods

[`func isValidSignature<S, D>(S, for: D) -> Bool`](/documentation/CryptoKit/MLDSA65/PublicKey/isValidSignature(_:for:))

Verifies a MLDSA65 signature.

[`func isValidSignature<S, D, C>(S, for: D, context: C) -> Bool`](/documentation/CryptoKit/MLDSA65/PublicKey/isValidSignature(_:for:context:))

Verifies a MLDSA65 signature, in a specific context.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)