static fun sign(keyPair: KeyPair, message: ByteArray, domain: Int): SignatureAndPublicKey
(source)static fun sign(keyPair: KeyPair, message: Bytes, domain: Int): SignatureAndPublicKey
(source)
Generates a SignatureAndPublicKey.
keyPair
- The public and private key pair, not null
message
- The message to sign, not null
domain
- The domain value added to the message
Return
The SignatureAndPublicKey, not null