Instance Propertyswift-crypto 3.12.2Crypto
publicKey
The corresponding public key.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
var publicKey: PublicKey { get }
The corresponding public key.
var publicKey: PublicKey { get }
s6Crypto10Curve25519O7SigningO10PrivateKeyV06publicE0AE06PublicE0Vvp
What are these?4EL86
import Crypto
A cryptography library for Swift.
struct PrivateKey
A Curve25519 private key used to create cryptographic signatures.
enum Curve25519
An elliptic curve that enables X25519 key agreement and Ed25519 signatures.
enum Signing
A mechanism used to create or verify a cryptographic signature using Ed25519.
struct PublicKey
A Curve25519 public key used to verify cryptographic signatures.
init()
Creates a random Curve25519 private key for signing.
init<D>(rawRepresentation data: D) throws where D : ContiguousBytes
Creates a Curve25519 private key for signing from a data representation.
var rawRepresentation: Data { get }
The raw representation of the key as a collection of contiguous bytes.
func signature<D>(for data: D) throws -> Data where D : DataProtocol
Generates an EdDSA signature over Curve25519.