PublicKey

public struct PublicKey

Undocumented

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public var rawRepresentation: Data { get }
  • Verifies an EdDSA signature over Curve25519.

    Declaration

    Swift

    public func isValidSignature<S, D>(_ signature: S, for data: D) -> Bool where S : DataProtocol, D : DataProtocol

    Parameters

    signature

    The 64-bytes signature to verify.

    data

    The digest that was signed.

    Return Value

    True if the signature is valid. False otherwise.