@ethereumjs/common / CustomCommonOpts
Options to be used with the custom static constructor.
BaseOpts
↳ CustomCommonOpts
• Optional
baseChain: string
| number
| bigint
The name (mainnet
), id (1
), or Chain enum of
a standard chain used to base the custom chain params on.
• Optional
customCrypto: CustomCrypto
This option can be used to replace the most common crypto primitives (keccak256 hashing e.g.) within the EthereumJS ecosystem libraries with alternative implementations (e.g. more performant WASM libraries).
Note: please be aware that this is adding new dependencies for your system setup to be used for sensitive/core parts of the functionality and a choice on the libraries to add should be handled with care and be made with eventual security implications considered.
BaseOpts.customCrypto
• Optional
eips: number
[]
Selected EIPs which can be activated, please use an array for instantiation
(e.g. eips: [ 1559, 3860 ]
)
BaseOpts.eips
• Optional
hardfork: string
String identifier (‘byzantium’) for hardfork or Hardfork enum.
Default: Hardfork.London
BaseOpts.hardfork