File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ package protocol
2020// This ensures, for example, the hash of a transaction will never collide with the hash of a vote
2121type HashID string
2222
23- // Hash IDs for specific object types, in lexicographic order to avoid dups.
23+ // Hash IDs for specific object types, in lexicographic order.
24+ // Hash IDs must be PREFIX-FREE (no hash ID is a prefix of another).
2425const (
2526 AuctionBid HashID = "aB"
2627 AuctionDeposit HashID = "aD"
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ type Tag string
2323// Tags, in lexicographic sort order of tag values to avoid duplicates.
2424// These tags must not contain a comma character because lists of tags
2525// are encoded using a comma separator (see network/msgOfInterest.go).
26+ // The tags must be 2 bytes long.
2627const (
2728 UnknownMsgTag Tag = "??"
2829 AgreementVoteTag Tag = "AV"
You can’t perform that action at this time.
0 commit comments