sign

# sign

Brief description

Create a cryptographic signature of the given document.

# Parameters

Name Summary
message

the hash of the given document.

pinProvider

a callback called from the SDK, when the signing identity PIN is required.

resultHandler



a callback to handle the result of the signing.

  • If successful, the result is MiraclSuccess.
  • If an error occurs, the result is MiraclError with a message. On exception, the exception object is also passed.


signingUser

an already registered signing identity.

timestamp

when the document is signed.

Content
fun sign(message: ByteArray, timestamp: Date, signingUser: SigningUser, pinProvider: PinProvider, resultHandler: ResultHandler<Signature, Error>)