Oddbean new post about | logout
 I’ve been stuck on implementing NIP-44 for over a day, and stuck on getting the hmac_aad function to work. I’m using the pseudocode from the NIP-44 repo and the Kotlin code as a working base implementation to replicate it for Swift. Inputs are identical but outputs are different. I don’t get it. Cryptography is not my strong suit.

https://i.nostr.build/WGGze.png

https://i.nostr.build/POOYr.png