Skip to content

Commit 7c8946a

Browse files
discv5: specify endianness of XOR distance (#195)
1 parent 8809d39 commit 7c8946a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discv5/discv5-theory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Node Discovery Protocol, and nodes using different schemes can communicate.
1616

1717
The identity scheme of a node record defines how a 32-byte 'node ID' is derived from the
1818
information contained in the record. The 'distance' between two node IDs is the bitwise
19-
XOR of the IDs, taken as the number.
19+
XOR of the IDs, taken as the big-endian number.
2020

2121
distance(n₁, n₂) = n₁ XOR n₂
2222

0 commit comments

Comments
 (0)