Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link

Icon LinkClass: Signer

Icon LinkConstructors

Icon Linkconstructor

new Signer(privateKey): Signer
Create a Signer instance from a given private key

Icon LinkParameters

NameTypeDescription
privateKeyBytesLike The private key to use for signing

Icon LinkReturns

A new Signer instance

Icon LinkDefined in

Icon LinkProperties

Icon Linkaddress

Readonly address: Address

Icon LinkDefined in


Icon LinkcompressedPublicKey

Readonly compressedPublicKey: string

Icon LinkDefined in


Icon LinkprivateKey

Readonly privateKey: string

Icon LinkDefined in


Icon LinkpublicKey

Readonly publicKey: string

Icon LinkDefined in

Icon LinkMethods

Icon LinkaddPoint

addPoint(point): string
Add point on the current elliptic curve

Icon LinkParameters

NameTypeDescription
pointBytesLike Point to add on the curve

Icon LinkReturns

string
compressed point on the curve

Icon LinkDefined in


Icon LinkextendPublicKey

extendPublicKey(publicKey): string
Extended publicKey from a compact publicKey

Icon LinkParameters

NameTypeDescription
publicKeyBytesLike Compact publicKey

Icon LinkReturns

string
extended publicKey

Icon LinkDefined in


Icon LinkgeneratePrivateKey

generatePrivateKey(entropy?): string | Uint8Array
Generate a random privateKey

Icon LinkParameters

NameTypeDescription
entropy?BytesLike Adds extra entropy to generate the privateKey

Icon LinkReturns

string | Uint8Array
random 32-byte hashed

Icon LinkDefined in


Icon LinkrecoverAddress

recoverAddress(data, signature): Address
Recover the address from a signature performed with sign .

Icon LinkParameters

NameTypeDescription
dataBytesLike Data
signatureBytesLike Signature

Icon LinkReturns

Address from signature

Icon LinkDefined in


Icon LinkrecoverPublicKey

recoverPublicKey(data, signature): string
Recover the public key from a signature performed with sign .

Icon LinkParameters

NameTypeDescription
dataBytesLike Data
signatureBytesLike hashed signature

Icon LinkReturns

string
public key from signature from the

Icon LinkDefined in