web/@linera/client/docs/interfaces/Signer.html
Interface for signing and key management compatible with Ethereum (EVM) addresses.
interface Signer {
containsKey(owner: string): Promise<boolean>;
sign(owner: string, value: Uint8Array): Promise<string>;
}
containsKey(owner: string): Promise<boolean>
Checks whether the instance holds a key whose associated address matches the given EVM address.
The EVM address to check for.
A promise that resolves to true if the key exists and matches the given address, otherwise false.
sign(owner: string, value: Uint8Array): Promise<string>
Signs a given value using the private key associated with the specified EVM address. The signing process must follow the EIP-191 standard.
The EVM address whose private key will be used to sign the value.
The data to be signed, as a Uint8Array.
A promise that resolves to the EIP-191-compatible signature in hexadecimal string format.
Member Visibility
ThemeOSLightDark
Methods containsKeysign