The way the privateKey is loaded has been updated. The new implementation:
Still supports specifying the privateKey on the config file. This is for backwards compatibility and for ease of development. A warning to the console is printed if this method is used.
If no privateKey configuration is specified, the privateKey is loaded from the environment variable RELAYER_PRIVATE_KEY using the envprivateKeyloader. (The variable name is customizable for advanced users.)
Custom privateKeyloaders may be implemented (configured via global.privateKey.loader). This boils down to implementing a class with an async function that returns a privateKey as a hex string. The returned privateKey format is validated to avoid hard to debug implementation errors.
The way the
privateKey
is loaded has been updated. The new implementation:privateKey
on the config file. This is for backwards compatibility and for ease of development. A warning to the console is printed if this method is used.privateKey
configuration is specified, theprivateKey
is loaded from the environment variableRELAYER_PRIVATE_KEY
using theenv
privateKey
loader. (The variable name is customizable for advanced users.)privateKey
loaders may be implemented (configured viaglobal.privateKey.loader
). This boils down to implementing a class with an async function that returns aprivateKey
as a hex string. The returnedprivateKey
format is validated to avoid hard to debug implementation errors.