discreetlogcontracts / dlcspecs

Specification for Discreet Log Contracts
Creative Commons Attribution 4.0 International
239 stars 36 forks source link

Oracle Announcement TLVs #105

Closed benthecarman closed 4 years ago

benthecarman commented 4 years ago

Initial proposal for oracle announcement TLVs.

The idea here is that the oracle signs a hash of an oracle_event TLV. After doing so, peers that already trust the oracle's key should be able to pass around oracle_announcement messages to learn of events.

I imagine the spec for if the oracle signs the sha256 vs tagged sha256 of the oracle_event TLV will go in the actual Oracle.md spec

LLFourn commented 4 years ago

Perhaps a way to reconcile my comments on encoding is to simply have a field encoding in the TLV which specifies the encoding of the announcement. Implementations can choose to support whichever encodings they want. I specifically want to be able to encode the announcement in JSON and just sign a JSON string for now.