Why Nostr? What is Njump?
2023-03-08 19:56:31
in reply to

lucash.dev on Nostr: HMAC is a specific use case of hashing with a prefix — in that case for ...

HMAC is a specific use case of hashing with a prefix — in that case for authentication.

Using HMAC in taproot would just cause confusion as to what is being authenticated and why there’s no secret involved.

Calling it “tagged hash” and defining it in the specification eliminates any confusion.

The generic term for that use case is “domain separation”. There are other ways of doing it besides prefixing though, so just saying “domain separation” isn’t very helpful.

They also were extra cautious and used prefixes generated in an unusual way.

If the all of Bitcoin used domain separation that wouldn’t have been necessary.
Author Public Key
npub1sttsl959a2lvyufqrwkdrlqeg85ks65m72mgdsup5kmx9asqq2csaw67hq