A Fuel-native secp256k1 wallet.

The address is derived as SHA-256(publicKey[1:65]), skipping the 0x04 uncompressed prefix byte.

interface Wallet {
    b256Address: string;
    privateKey: Uint8Array;
    publicKey: Uint8Array;
}

Hierarchy (View Summary)

Properties

b256Address: string

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

privateKey: Uint8Array

The 32-byte private key.

publicKey: Uint8Array

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