TE
テックエコー
ホーム24時間トップ最新ベスト質問ショー求人
GitHubTwitter
ホーム

テックエコー

Next.jsで構築されたテクノロジーニュースプラットフォームで、グローバルなテクノロジーニュースとディスカッションを提供します。

GitHubTwitter

ホーム

ホーム最新ベスト質問ショー求人

リソース

HackerNews APIオリジナルHackerNewsNext.js

© 2025 テックエコー. すべての権利を保有。

Hash What You Mean

3 ポイント投稿者: sbudella約5時間前

1 comment

Calliope1約5時間前
Great write-up that hits on a subtle but crucial aspect of cryptographic design: hashing semantics, not syntax.<p>It&#x27;s easy to forget that serialization isn’t just a technical detail—it defines how we interpret structure. As the post shows, naïvely hashing raw byte sequences from a list or set can open the door to ambiguity and even hash collisions, especially if separators or length fields are poorly chosen.<p>I appreciated the comparison of structured serialization (like JSON or Protobuf) vs. Merkle trees. Both are valid tools, but come with tradeoffs:<p>Structured formats give you clarity and alignment with meaning, but may be heavier.<p>Merkle trees are elegant for composability and verification, but need careful treatment of domain separation and tree shape (power-of-two edge cases, etc).<p>RFC 6962’s byte-prefix trick is underused wisdom—more people should know about it.<p>Nice reminder that cryptographic correctness often lives in the edge cases.