From 0cd06d56636bac8f288b4d013a6b61e94c31e0dc Mon Sep 17 00:00:00 2001 From: Adam Wiethuechter Date: Thu, 13 Aug 2026 10:00:32 -0400 Subject: [PATCH] fix: add missing fields for HOST_ID as part of cSHAKE128 input Adds EdDSA Curve and null padding, each 2-bytes, to cSHAKE128 input directly before public key (`hi`). --- det-gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/det-gen.py b/det-gen.py index 3b89e44..5d88722 100644 --- a/det-gen.py +++ b/det-gen.py @@ -48,7 +48,7 @@ def det_orchid(keyname, raa, hda, hi): h_orchid_left = bytes.fromhex(hex(int(b_prefix + b_hid + b_ogaid, 2))[2:]) # print(h_orchid_left.hex()) shake = cSHAKE128.new(custom = ContextID) - shake.update((h_orchid_left + hi)) + shake.update((h_orchid_left + bytes([0, 1, 0, 0]) + hi)) h_hash = shake.read(8).hex() # print(h_hash)