Skip to content

Commit

Permalink
Oracle infomation
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Nov 15, 2024
1 parent 926547b commit 7970479
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/concepts/programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ Programs can include a configuration which allows users to modify the `evaluatio

Programs can require users to include auxiliary data, separate from the message, in their signature request.

### Oracle Data

Oracle data in this regard is information that can be grabbed by the chain and passed through to the program. This information comes from the pallet ```Oracle``` and storage slot ```OracleData```. ```OracleData``` takes in a key which can denoate any oracle data you want. Oracle data needs to come from the chain first as all programs need to be deterministic.

Current headings

block_number_entropy -> Stores the current block number of entropy

### Custom Hashing

As ECDSA schemes sign 256-bit numbers, programs can include a `custom_hash` function so users can utilize less common hashing functions. In its simplest form, the function converts a signature request (which also contains the message) into a 256-bit number.
Expand Down

0 comments on commit 7970479

Please sign in to comment.