Skip to content

KeyProtocol

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

KeyProtocol

public protocol KeyProtocol: EncodingProtocol 

Inheritance

EncodingProtocol

Requirements

serialize(_:​)

Serializes an output instance using the given Serializer.

func serialize(_ serializer: Serializer) throws

Parameters

  • serializer: The Serializer instance used to serialize the data.

Throws

An error if the serialization fails.

deserialize(from:​)

Deserializes an output instance from a Deserializer.

static func deserialize(from deserializer: Deserializer) throws -> Self

Parameters

  • deserializer: The Deserializer instance used to deserialize the data.

Throws

An error if the deserialization fails.

Returns

A new PrivateKey instance with the deserialized key data.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally