Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link

@fuel-ts/account v0.95.0 Docs


Icon LinkClass: Signer

Icon LinkConstructors

Icon Linknew Signer()

Icon InfoCircle

new Signer(privateKey): Signer

Create a Signer instance from a given private key

Icon LinkParameters

privateKey: BytesLike

The private key to use for signing

Icon LinkReturns

Signer

A new Signer instance

Icon LinkDefined in

packages/account/src/signer/signer.ts:24 Icon Link

Icon LinkProperties

Icon Linkaddress

Icon InfoCircle

readonly address: Address

Icon LinkDefined in

packages/account/src/signer/signer.ts:10 Icon Link


Icon LinkcompressedPublicKey

Icon InfoCircle

readonly compressedPublicKey: string

Icon LinkDefined in

packages/account/src/signer/signer.ts:14 Icon Link


Icon LinkprivateKey

Icon InfoCircle

readonly privateKey: string

Icon LinkDefined in

packages/account/src/signer/signer.ts:16 Icon Link


Icon LinkpublicKey

Icon InfoCircle

readonly publicKey: string

Icon LinkDefined in

packages/account/src/signer/signer.ts:12 Icon Link

Icon LinkMethods

Icon LinkaddPoint()

Icon InfoCircle

addPoint(point): string

Add point on the current elliptic curve

Icon LinkParameters

point: BytesLike

Point to add on the curve

Icon LinkReturns

string

compressed point on the curve

Icon LinkDefined in

packages/account/src/signer/signer.ts:72 Icon Link


Icon LinkextendPublicKey()

Icon InfoCircle

static extendPublicKey(publicKey): string

Extended publicKey from a compact publicKey

Icon LinkParameters

publicKey: BytesLike

Compact publicKey

Icon LinkReturns

string

extended publicKey

Icon LinkDefined in

packages/account/src/signer/signer.ts:130 Icon Link


Icon LinkgeneratePrivateKey()

Icon InfoCircle

static generatePrivateKey(entropy?): string | Uint8Array

Generate a random privateKey

Icon LinkParameters

entropy?: BytesLike

Adds extra entropy to generate the privateKey

Icon LinkReturns

string | Uint8Array

random 32-byte hashed

Icon LinkDefined in

packages/account/src/signer/signer.ts:120 Icon Link


Icon LinkrecoverAddress()

Icon InfoCircle

static recoverAddress(data, signature): Address

Recover the address from a signature performed with sign .

Icon LinkParameters

data: BytesLike

Data

signature: BytesLike

Signature

Icon LinkReturns

Address

Address from signature

Icon LinkDefined in

packages/account/src/signer/signer.ts:110 Icon Link


Icon LinkrecoverPublicKey()

Icon InfoCircle

static recoverPublicKey(data, signature): string

Recover the public key from a signature performed with sign .

Icon LinkParameters

data: BytesLike

Data

signature: BytesLike

hashed signature

Icon LinkReturns

string

public key from signature from the

Icon LinkDefined in

packages/account/src/signer/signer.ts:86 Icon Link