Skip to content

Initializer

init(rawRepresentation:)

Creates a public key from its raw byte representation.
init(rawRepresentation: some DataProtocol) throws

Parameters

rawRepresentation

The raw bytes of the public key.

Discussion

Throws

If the provided bytes aren’t a valid public key for the key’s parameter set.