An EVM-compatible secp256k1 wallet.

Extends Wallet with an Ethereum-style address derived as the last 20 bytes of keccak256(publicKey[1:65]). The b256Address is the EVM address zero-padded to 32 bytes.

interface EvmWallet {
    b256Address: string;
    evmAddress: string;
    privateKey: Uint8Array;
    publicKey: Uint8Array;
}

Hierarchy (View Summary)

Properties

b256Address: string

The 0x-prefixed, 64-character hex Fuel address.

evmAddress: string

The 0x-prefixed, 40-character hex Ethereum address.

privateKey: Uint8Array

The 32-byte private key.

publicKey: Uint8Array

The 65-byte uncompressed public key (with 0x04 prefix).