Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle information #262

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

JesseAbram marked this conversation as resolved.
Show resolved Hide resolved
### 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