Skip to content

Initializer

init(seedRepresentation:publicKey:)

Creates a private key from the seed it is derived from.
init<D>(seedRepresentation: D, publicKey: Self.PublicKey?) throws where D : DataProtocol

Parameters

seedRepresentation

The 32-byte seed the private key is derived from.

publicKey

An optional public key to check the derived key against.

Discussion

Throws

If the seed isn’t valid, or if the provided public key doesn’t match the derived one.