@fuel-ts/account .Signer
• new Signer(privateKey
): Signer
Create a Signer instance from a given private key
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
point | BytesLike | Point to add on the curve |
string
compressed point on the curve
packages/account/src/signer/signer.ts:72
▸ extendPublicKey(publicKey
): string
Extended publicKey from a compact publicKey
Name | Type | Description |
---|---|---|
publicKey | BytesLike | Compact publicKey |
string
extended publicKey
packages/account/src/signer/signer.ts:130
▸ generatePrivateKey(entropy?
): string
| Uint8Array
Generate a random privateKey
Name | Type | Description |
---|---|---|
entropy? | BytesLike | Adds extra entropy to generate the privateKey |
string
| Uint8Array
random 32-byte hashed
packages/account/src/signer/signer.ts:120
▸ recoverAddress(data
, signature
): Address
Recover the address from a signature performed with sign
.
Address from signature
packages/account/src/signer/signer.ts:110
▸ recoverPublicKey(data
, signature
): string
Recover the public key from a signature performed with sign
.
string
public key from signature from the