Remote Signer
A user can be passed in instead of a suri. This function must be able to sign and return a signature. This is especially useful when building Dapps that require the user to sign actions on the Dapp or validate themselves.
Example
async function signData(encodedDataToSign, signerAccount) {
// Example:
// Make an http call to a KMS to sign encodedData using signerAccount
// and return the signature
}
// This can be the address or public key.
const signerAccount = "5Gc8Po...baUBde";
const remoteSignerOptions = {
sign: data => signData(data, signerAccount),
address: signerAccount
}