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
seedRepresentationThe 32-byte seed the private key is derived from.
publicKeyAn 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.