TBD54566975 / did-dht

the did:dht method and server implementation
https://did-dht.com/
Apache License 2.0
27 stars 12 forks source link

Add a test suite #188

Open decentralgabe opened 5 months ago

decentralgabe commented 5 months ago

Provide a way for implementers to prove conformance for different feature sets

thehenrytsai commented 5 months ago

In terms of proving conformance/interoperability across different language implementations, today we have test vectors that allows us to go as far as validating each individual DNS record is in the correct format, but those checks does not guarantee the "bundle" (encodedDNS packet) that gets uploaded to the DHT is in the valid/expected format.

Provided the BEP44 message has deterministic signature AND different DNS packet encode libraries ALWAYS produces the same bytes given the same set of records even in DIFFERENT orders (these are big assumptions), it would be the most ideal for us to have test vector as close to the final output as possible: ie. either the BEP44 message itself, or the encoded DWN packet before the signature wrapping + test vector for BEP44 support.

decentralgabe commented 4 months ago

++ to supporting intermediary representations