Skip to content

Commit 25e504b

Browse files
committed
enr.md: add note about padding in v4 ID scheme
1 parent 7c8946a commit 25e504b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

enr.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ cryptosystem used by Node Discovery v4.
6666
the EVM) to `content`, then create a signature of the hash. The resulting 64-byte
6767
signature is encoded as the concatenation of the `r` and `s` signature values (the
6868
recovery ID `v` is omitted).
69+
6970
- To verify a record, check that the signature was made by the public key in the
7071
"secp256k1" key/value pair of the record.
71-
- To derive a node address, take the keccak256 hash of the uncompressed public key.
72+
73+
- To derive a node address, take the keccak256 hash of the uncompressed public key, i.e.
74+
`keccak256(x || y)`. Note that `x` and `y` must be zero-padded to up length 32.
7275

7376
## Rationale
7477

0 commit comments

Comments
 (0)