Sign arbitrary data for teal program
Sign an arbitrary piece of data which can be verified by a smart contract through the ed25519verify opcode.
See also: algosdk tealSign
Preconditions
- The user has already shared the account to sign the data with.
Interactive Example
Invalid Address
In order to run this example, you need to execute connect() method.
import MyAlgoConnect from '@randlabs/myalgo-connect';
const myAlgoConnect = new MyAlgoConnect();
const data = new Uint8Array([...]);
const contractAddress = '46Q...';
const signer = 'MKJ...';
const signature = await myAlgoConnect.tealSign(data, contractAddress, signer);