Home

Awesome

Getting Started

Run npm run start

Build and Test

driver-did-ev accepts the following environment variables:

KeyDescriptionDefaultNotes
NODE_HOSTRPC node url(mandatory)
ADDRESS_IMAddress of the Identity Manager contract(mandatory)
HEADERSAdditional HTTP headers (in JSON format) for JSON-RPC calls to node, such as authenticationNo headers
FIND_EVENTSUse Ethereum events as a source for getting the authorized keys.true
KEYSUse an explicit list of keys as a source for getting the authorized keys. E.g.: ['0x2FD3a895C728652FFe586b0B9e07B47edfC6e3FD'][]
BASE_BLOCKSMinimum value for fromBlock.30000000Only used when findEvents is true.
LAST_BLOCKSLast blocks to be taken from toBlock.0Only used when findEvents is true.
BUFFER_SIZESize of the slices in the event searching. Use greater values to search more efficiently, use lower values to avoid possible timeout problems.100000Only used when findEvents is true.
START_BLOCK_MARGINWeb3JS or Besu seem to have a bug where filtering events sometimes ignores events emitted in the early blocks. This setting can be used to work around the issue by starting the filtering on an earlier block number.100000Only used when findEvents is true.