Signers¶
A Signer manages a private/public key pair which is used to cryptographically sign transactions and prove ownership on the Ethereum network.
Private Key Signer¶
const PrivateKeySigner = require('@browseth/signer-private-key')
or
import PrivateKeySigner from '@browseth/signer-private-key'
Creating Instances¶
- new PrivateKeySigner ( privateKey )
- Creates a private key signer object from privateKey
Prototype¶
- prototype . address ( )
- Returns the address of the signer generated from the privateKey
- prototype . signMessage ( message )
- Returns a signed message
- prototype . signTransaction ( [params] )
Returns a signed transaction
Parameters may include:
- to
- gasPrice
- gasLimit
- nonce
- data
- value
- chainId