tuweni / org.apache.tuweni.crypto.sodium / Signature / sign

sign

static fun sign(message: Bytes!, secretKey: SecretKey!): Bytes! (source)

Signs a message for a given key.

Parameters

message - Bytes!: The message to sign.

secretKey - SecretKey!: The secret key to sign the message with.

Return
Bytes!: The signature prepended to the message

static fun sign(message: ByteArray!, secretKey: SecretKey!): ByteArray! (source)

Signs a message for a given key.

Parameters

message - ByteArray!: The message to sign.

secretKey - SecretKey!: The secret key to sign the message with.

Return
ByteArray!: The signature prepended to the message