PublicKey

public struct PublicKey : ECPublicKey

Undocumented

  • Initializes a Curve25519 Key for Key Agreement.

    Throws

    Throws if the data is not a valid key.

    Declaration

    Swift

    public init<D>(rawRepresentation: D) throws where D : ContiguousBytes

    Parameters

    rawRepresentation

    The data representation of the key

    Return Value

    An initialized key if the data is valid.

  • A data representation of the public key

    Declaration

    Swift

    public var rawRepresentation: Data { get }