@celo/wallet-local › "local-signer" › LocalSigner
Class: LocalSigner
Signs the EVM transaction using the provided private key
Hierarchy
- LocalSigner
Implements
- Signer
Index
Constructors
Methods
Constructors
constructor
+ new LocalSigner(privateKey
: string): LocalSigner
Defined in wallet-local/src/local-signer.ts:15
Parameters:
Name | Type |
---|---|
privateKey |
string |
Returns: LocalSigner
Methods
computeSharedSecret
▸ computeSharedSecret(publicKey
: string): Promise‹Buffer›
Defined in wallet-local/src/local-signer.ts:71
Parameters:
Name | Type |
---|---|
publicKey |
string |
Returns: Promise‹Buffer›
decrypt
▸ decrypt(ciphertext
: Buffer): Promise‹Buffer‹››
Defined in wallet-local/src/local-signer.ts:63
Parameters:
Name | Type |
---|---|
ciphertext |
Buffer |
Returns: Promise‹Buffer‹››
getNativeKey
▸ getNativeKey(): string
Defined in wallet-local/src/local-signer.ts:21
Returns: string
signPersonalMessage
▸ signPersonalMessage(data
: string): Promise‹object›
Defined in wallet-local/src/local-signer.ts:34
Parameters:
Name | Type |
---|---|
data |
string |
Returns: Promise‹object›
signTransaction
▸ signTransaction(addToV
: number, encodedTx
: RLPEncodedTx): Promise‹object›
Defined in wallet-local/src/local-signer.ts:25
Parameters:
Name | Type |
---|---|
addToV |
number |
encodedTx |
RLPEncodedTx |
Returns: Promise‹object›
signTypedData
▸ signTypedData(typedData
: EIP712TypedData): Promise‹object›
Defined in wallet-local/src/local-signer.ts:50
Parameters:
Name | Type |
---|---|
typedData |
EIP712TypedData |
Returns: Promise‹object›