sign
suspend fun sign(message: ByteArray, user: User, pinProvider: PinProvider): MIRACLResult<SigningResult, SigningException>
Creates a cryptographic signature of the given document.
Return
A MIRACLResult representing the result of the signing operation:
If successful, returns a MIRACLSuccess with the SigningResult.
If an error occurs, returns a MIRACLError with a SigningException describing issues with the operation.
Parameters
message
The hash of the given document.
user
A user to sign with.
pin Provider
A callback called by the SDK when the PIN is requested.
fun sign(message: ByteArray, user: User, pinProvider: PinProvider, resultHandler: ResultHandler<SigningResult, SigningException>)
Creates a cryptographic signature of the given document.
Parameters
message
The hash of the given document.
user
A user to sign with.
pin Provider
A callback called by the SDK when the PIN is requested.
result Handler
A callback to handle the result of the signing.
If successful, the result is a MIRACLSuccess.
If an error occurs, the result is a MIRACLError with an exception describing issues with the operation.