Alpha
Sign data using the secret key stored on Browser Wallet
It creates a popup window, presenting the human readable form of request
Throws an error if User rejected signature
async signTypedData<T>(from: string, request: TypedData<T>): Promise<unknown> {
return await browserWallet.request({
method: 'eth_signTypedData_v4',
params: [from, JSON.stringify(request)],
});
}
Interface to implement communication between this library, and a Browser Wallet. In order to request the signature from the User.