tuweni / org.apache.tuweni.scuttlebutt / Identity / sign

sign

abstract fun sign(message: Bytes!): Bytes! (source)

Hashes data using the secret key of the identity.

Parameters

message - Bytes!: the message to sign

Exceptions

UnsupportedOperationException - if the identity doesn't contain a secret key

Return
Bytes!: the signature