Add DNS oracle protocol
Summary
- add DNS-over-HTTPS oracle protocol and config wiring
- document dns:// usage and add tests for certificate parsing
Testing
- not run (not requested)
I think that it's better to define the dns server, and make a dns query, instead of http query
We need DNS over HTTPS.
I think that it's better to define the dns server, and make a dns query, instead of http query
We need DNS over HTTPS.
Then it's DoH no Dns, we should rename the oracle protocol
I think that it's better to define the dns server, and make a dns query, instead of http query
DoH is very commom see https://www.rfc-editor.org/rfc/rfc8484.html
Can we follow rfc8484?
- ✅ application/dns-json → application/dns-message (RFC 8484)
- ✅ HTTP GET → HTTP POST
- ✅ JSON parsing → DNS wire format (RFC 1035)
- ✅ Support user-specified authority (dns://resolver/domain)
- ✅ Fix CryptographicException handling in BuildPublicKey
- ✅ Move Accept header to constructor
- ✅ Integration tests covering Cloudflare, Google, Quad9
@Jim8y, I found some issues during the way when trying to test it. But, as I could see, it is at least running with success and understanding the basic conditions for the Oracle Service.
But I needed to fix some parsing errors due to docker versions on my tools. The compiler had stop working.
Meanwhile, can you provide here examples of what to expect from the oracle calls in this PR, @Jim8y ?
I see that we could now do posting, is that correct? So, let's create an example of a smart contract for that that parses an object to it. I will do this during this week. If you already can provide it I will save some time.
UT Failed.