Structure
P256K.KeyAgreement.PrivateKey
secp256k1 ECDH private key for deriving a SharedSecret with a peer’s P256K.KeyAgreement.PublicKey via secp256k1_ecdh.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
struct PrivateKey
Mentioned In
Overview
The underlying 32-byte scalar is identical to an ECDSA or Schnorr private key on the same curve; the Swift type is distinct only to route calls to the Diffie-Hellman method surface instead of a signing API. Secret bytes are held in SecureBytes-style zeroizing storage via the backing PrivateKeyImplementation.
Topics
Construction
Inspection
Key Agreement
Type Aliases