Skip to content

Commit

Permalink
Rename oracle_keys to oracle_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Jun 14, 2022
1 parent bbe3f6b commit cba6535
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ All data fields are unsigned big-endian unless otherwise specified.
- [Range `oracle_event_timestamp`](#range-oracle_event_timestamp)
- [The `oracle_event` Type](#the-oracle_event-type)
- [`oracle_event`](#oracle_event)
- [The `oracle_keys` Type](#the-oracle_keys-type)
- [`oracle_keys`](#oracle_keys)
- [The `oracle_metadata` Type](#the-oracle_metadata-type)
- [`oracle_metadata`](#oracle_metadata)
- [Rationale](#rationale)
- [Requirements](#requirements)
- [The `oracle_announcement` Type](#the-oracle_announcement-type)
Expand Down Expand Up @@ -437,12 +437,12 @@ See [the Oracle specifications](./Oracle.md#oracle-event) for more details.
* [`event_descriptor`:`event_descriptor`]
* [`string`:`event_id`]

### The `oracle_keys` Type
### The `oracle_metadata` Type

This type contains static oracle information and can be used to import trusted oracles into wallets.
This information should be saved by DLC nodes.

#### `oracle_keys`
#### `oracle_metadata`

1. data:
* [`x_point`:`announcement_public_key`]
Expand All @@ -452,7 +452,7 @@ This information should be saved by DLC nodes.
* [`oracle_schemes`:`oracle_schemes`]
* [`signature`:`oracle_metadata_signature`]

where the `oracle_metadata_signature` is a Schnorr signature by the `announcement_public_key` using the tag `oraclekeys/v0` of the sha256 hash of the serialized `oracle_keys` message omitting the `announcement_public_key` and of course the the `oracle_metadata_signature`.
where the `oracle_metadata_signature` is a Schnorr signature by the `announcement_public_key` using the tag `oraclemetadata/v0` of the sha256 hash of the serialized `oracle_metadata` message omitting the `announcement_public_key` and of course the the `oracle_metadata_signature`.

#### Rationale

Expand Down Expand Up @@ -500,14 +500,14 @@ See [the Oracle specifications](./Oracle.md#oracle-announcements) for more detai
1. type: 55354 (`oracle_announcement`)
2. data:
* [`signature`:`announcement_signature`]
* [`oracle_keys`:`oracle_keys`]
* [`oracle_metadata`:`oracle_metadata`]
* [`oracle_event`:`oracle_event`]

where both the `announcement_signature` is a Schnorr signature over a sha256 hash of the serialized `oracle_event`, using the tag `announcement/v1`.

#### Requirements

Clients SHOULD check the `oracle_attestation_public_key` has been signed by the `oracle_announcement_public_key` in a known `oracle_keys` message and SHOULD abort if the attestation key is not recognized.
Clients SHOULD check the `oracle_attestation_public_key` has been signed by the `oracle_announcement_public_key` in a known `oracle_metadata` message and SHOULD abort if the attestation key is not recognized.

### The `oracle_attestations` Type

Expand Down

0 comments on commit cba6535

Please sign in to comment.