Files
zeekay 366c1d87a4 feat(rns): canonical DID computation + cross-language KAT fixture
Adds the minimum-viable PQ-RNS conformance test:

- did.go: ComputeDID(kemPubKey, sigPubKey) — base32 lowercase no-padding
  of SHA3-256(kemPubKey || sigPubKey), prefixed "did⚡"
- did_test.go: Go test that reads testdata/pqrns_kat.json and verifies
  the implementation reproduces the canonical DID
- testdata/pqrns_kat.json: language-neutral fixture — fixed input keys
  (1216 bytes of 0x01 for KEM, 1984 bytes of 0x02 for sig) → fixed
  SHA3-256 (72bea585...) and DID (did:zap:ok7klbkh...)

Every language SDK that implements PQ-RNS MUST reproduce the same DID
for the same inputs. The KAT catches any divergence on the hash, byte
order, base32 alphabet, or casing.

go test ./... passes locally.
2026-05-27 04:47:35 -07:00
..