View Source Ethers.Signer.Local (Ethers v0.4.5)

Local signer works with a private key.

IMPORTANT: Please note that using this signer is discouraged in production environment since handling private keys in those environment can be challenging if you don't know what you are doing.

Signer Options

  • :private_key: The private key to use for signing and calculating account address. Private key can either be in binary format (32 bytes) or it's hex encoded format with or without 0x prefix.