Skip to content

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

Initializer

init(backing:)

iOS 26.0+ macOS 26.0+ tvOS 26.0+ watchOS 26.0+
Creates an MLDSA.PrivateKey instance using the provided private key.
init(backing: some MLDSAPrivateKey)

Parameters

backing

The SwiftCrypto private key.

Discussion

This init constructs an MLDSA.PrivateKey based on the corresponding SwiftCrypto private key, such as MLDSA65.PrivateKey or MLDSA87.PrivateKey.