tuweni / org.apache.tuweni.crypto.sodium / Box / KeyPair / forSignatureKeyPair

forSignatureKeyPair

static fun forSignatureKeyPair(keyPair: KeyPair!): KeyPair! (source)

Converts signature key pair (Ed25519) to a box key pair (Curve25519) so that the same key pair can be used both for authenticated encryption and for signatures. See https://libsodium.gitbook.io/doc/advanced/ed25519-curve25519

Parameters

keyPair - KeyPair!: A Signature.KeyPair.

Return
KeyPair!: A KeyPair.