Skip to content

Commit 7970479

Browse files
committed
Oracle infomation
1 parent 926547b commit 7970479

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/concepts/programs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ Programs can include a configuration which allows users to modify the `evaluatio
3737

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

40+
### Oracle Data
41+
42+
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.
43+
44+
Current headings
45+
46+
block_number_entropy -> Stores the current block number of entropy
47+
4048
### Custom Hashing
4149

4250
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.

0 commit comments

Comments
 (0)