P256K P256K P256K.Recovery P256K.Recovery.PrivateKey Structure P256K.Recovery.PrivateKey secp256k1 ECDSA private key for producing recoverable signatures via secp256k1_ecdsa_sign_recoverable with RFC 6979 deterministic nonce generation. iOS 13.0+ macCatalyst 13.0+ macOS 10.15+ tvOS 13.0+ visionOS 1.0+ watchOS 6.0+ struct PrivateKey Topics Operators static func == (P256K.Recovery.PrivateKey, P256K.Recovery.PrivateKey) -> BoolReturns true if both keys have identical 32-byte secret scalars. Initializers init<D>(dataRepresentation: D, format: P256K.Format) throwsCreates a secp256k1 recoverable-signing private key from a 32-byte raw scalar. init(format: P256K.Format) throwsCreates a random secp256k1 recoverable-signing private key by generating 32 cryptographically secure random bytes validated with secp256k1_ec_seckey_verify. Instance Properties var dataRepresentation: DataThe raw 32-byte private key as Data. Keep this value confidential; disclosure allows anyone to sign on your behalf. var publicKey: P256K.Recovery.PublicKeyThe secp256k1 public key derived from this private key. Instance Methods func signature<D>(for: D) -> P256K.Recovery.PrivateKey.SignatureGenerates a recoverable ECDSA signature by SHA-256 hashing data then calling secp256k1_ecdsa_sign_recoverable. func signature<D>(for: D) -> P256K.Recovery.PrivateKey.SignatureGenerates a recoverable ECDSA signature from a pre-computed digest via secp256k1_ecdsa_sign_recoverable with RFC 6979 deterministic nonce generation. Type Aliases typealias Signature