abstract
BaseEthereumWalletDefined in: packages/wallet-stamper/src/ethereum.ts:23
Abstract class representing a base Ethereum wallet. This class is used for stamping requests with an Ethereum wallet.
To use this class, extend it and implement the signMessage
method
to provide a custom signing function. The signMessage
method should
return a promise that resolves to a hexadecimal string representing
the signature of the provided message.
new BaseEthereumWallet():
BaseEthereumWallet
BaseEthereumWallet
type:
Ethereum
=WalletType.Ethereum
Defined in: packages/wallet-stamper/src/ethereum.ts:24
The type of the wallet.
getPublicKey():
Promise
<string
>
Defined in: packages/wallet-stamper/src/ethereum.ts:40
Returns the public key, which is the SECP256K1 hex encoded public key from your Ethereum wallet.
Promise
<string
>
A promise that resolves to a string representing the compressed public key.
EthereumWalletInterface
.getPublicKey
abstract
signMessage(message
):Promise
<`0x${string}`
>
Defined in: packages/wallet-stamper/src/ethereum.ts:33
Signs a message and returns the hex signature as a string.
string
The message to be signed, either as a string or a Hex.
Promise
<`0x${string}`
>
A promise that resolves to a Hex string representing the signature.
EthereumWalletInterface
.signMessage
abstract
BaseEthereumWalletDefined in: packages/wallet-stamper/src/ethereum.ts:23
Abstract class representing a base Ethereum wallet. This class is used for stamping requests with an Ethereum wallet.
To use this class, extend it and implement the signMessage
method
to provide a custom signing function. The signMessage
method should
return a promise that resolves to a hexadecimal string representing
the signature of the provided message.
new BaseEthereumWallet():
BaseEthereumWallet
BaseEthereumWallet
type:
Ethereum
=WalletType.Ethereum
Defined in: packages/wallet-stamper/src/ethereum.ts:24
The type of the wallet.
getPublicKey():
Promise
<string
>
Defined in: packages/wallet-stamper/src/ethereum.ts:40
Returns the public key, which is the SECP256K1 hex encoded public key from your Ethereum wallet.
Promise
<string
>
A promise that resolves to a string representing the compressed public key.
EthereumWalletInterface
.getPublicKey
abstract
signMessage(message
):Promise
<`0x${string}`
>
Defined in: packages/wallet-stamper/src/ethereum.ts:33
Signs a message and returns the hex signature as a string.
string
The message to be signed, either as a string or a Hex.
Promise
<`0x${string}`
>
A promise that resolves to a Hex string representing the signature.
EthereumWalletInterface
.signMessage