Verifying signatures and cosigners
Providing multi-signature verification support for dApps
Signing
const account = new Account(provider, address, pk);
const typedData: TypedData = {
// your typed data
}
const sig = await account.signMessage(typedData);// declare hook
const { signTypedDataAsync } = useSignTypedData({
// your typedData
})
// use hook
const doSomething = async () => {
// rest of the code
const signature = await signTypedDataAsync({
// your typedData
})
// do something with sig
}Verifying signatures
On-chain verification method 1 - Calling the contract
On-chain verification method 2 - with Typed data
Guardians and co-signers
Verifying multi-signatures

Last updated
Was this helpful?