Skip to content

Commit

Permalink
fixup! fixup! docs: document Ethereum definition binary format
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Mar 16, 2023
1 parent fc359c5 commit d73247c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/common/ethereum-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To look up a token definition for a given chain ID and token address, use the fo

`https://data.trezor.io/firmware/eth-definitions/chain-id/<CHAIN_ID>/token-<TOKEN_ADDRESS>.dat`

`<CHAIN_ID>` is again a decimal number.
`<CHAIN_ID>` is again a decimal number.<br>
`<TOKEN_ADDRESS>` is all lowercase token address hex without the `0x` prefix.

E.g., this is the URL for Görli TST token:
Expand Down Expand Up @@ -116,7 +116,7 @@ The input for this algorithm is the sparse zip archive.
1. Load a 65-byte signature from the file `signature.dat`.
2. Load a 32-byte root hash from the file `root.dat`.
3. Recursively extract all `*.dat` files from the `chain-id` directory and its
subdirectories.
subdirectories.<br>
Files in the `slip44` directory are all duplicates of certain files from `chain-id`.
4. Construct a Merkle tree by the previous algorithm. The inputs are contents of all the
`*.dat` files.
Expand Down

0 comments on commit d73247c

Please sign in to comment.