publicKey
TypeScriptget publicKey(): Curve25519_Signing_PublicKeySwift declarationvar publicKey: Curve25519.Signing.PublicKey { get }The corresponding public key.
struct · iOS 13.0+ · SDK 27.1
struct PrivateKeyA Curve25519 private key used to create cryptographic signatures.
get publicKey(): Curve25519_Signing_PublicKeySwift declarationvar publicKey: Curve25519.Signing.PublicKey { get }The corresponding public key.
get rawRepresentation(): ArrayBufferSwift declarationvar rawRepresentation: Data { get }The raw representation of the key as a collection of contiguous bytes.
static initRawRepresentation(data: ArrayBuffer): Curve25519_Signing_PrivateKeySwift declarationinit<D>(rawRepresentation data: D) throws where D : ContiguousBytesCreates a Curve25519 private key for signing from a data representation. - Parameters: - data: A representation of the key as contiguous bytes from which to create the key.
signature(data: ArrayBuffer): ArrayBufferSwift declarationfunc signature<D>(for data: D) throws -> Data where D : DataProtocolGenerates an EdDSA signature over Curve25519. - Parameters: - data: The data to sign. - Returns: The signature for the data. Although not required by [RFC 8032](https://tools.ietf.org/html/rfc8032), which describes the Edwards-Curve Digital Signature Algorithm (EdDSA), the CryptoKit implementation of the algorithm employs randomization to generate a different signature on every call, even for the same data and key, to guard against side-channel attacks.
static init(): Curve25519_Signing_PrivateKeySwift declarationinit()Creates a random Curve25519 private key for signing.
No declarations were skipped in this snapshot.