@fuel-ts/account v0.94.9 • Docs
new Signer(
privateKey
):Signer
Create a Signer instance from a given private key
• privateKey: BytesLike
The private key to use for signing
A new Signer instance
packages/account/src/signer/signer.ts:24
readonly
address:Address
packages/account/src/signer/signer.ts:10
readonly
compressedPublicKey:string
packages/account/src/signer/signer.ts:14
readonly
privateKey:string
packages/account/src/signer/signer.ts:16
readonly
publicKey:string
packages/account/src/signer/signer.ts:12
addPoint(
point
):string
Add point on the current elliptic curve
• point: BytesLike
Point to add on the curve
string
compressed point on the curve
packages/account/src/signer/signer.ts:72
static
extendPublicKey(publicKey
):string
Extended publicKey from a compact publicKey
• publicKey: BytesLike
Compact publicKey
string
extended publicKey
packages/account/src/signer/signer.ts:130
static
generatePrivateKey(entropy
?):string
|Uint8Array
Generate a random privateKey
• entropy?: BytesLike
Adds extra entropy to generate the privateKey
string
| Uint8Array
random 32-byte hashed
packages/account/src/signer/signer.ts:120
static
recoverAddress(data
,signature
):Address
Recover the address from a signature performed with sign
.
• data: BytesLike
Data
• signature: BytesLike
Signature
Address from signature
packages/account/src/signer/signer.ts:110
static
recoverPublicKey(data
,signature
):string
Recover the public key from a signature performed with sign
.
• data: BytesLike
Data
• signature: BytesLike
hashed signature
string
public key from signature from the