sign
fun sign(message: ByteArray, user: User, pinProvider: PinProvider, resultHandler: ResultHandler<SigningResult, SigningException>)
Create a cryptographic signature of the given document.
Parameters
message
the hash of the given document.
user
an user with already registered signing identity.
pin Provider
a callback called from the SDK, when the signing identity PIN is required.
result Handler
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.