Skip to content

Commit 67b035c

Browse files
committed
fix
1 parent 194b295 commit 67b035c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/dapps/redstone-live-feeds.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ Delivers the raw signed oracle packages from quorum of signers.
7777

7878
- Payloads in a single batch are guaranteed to contain packages from **3 unique Redstone nodes** with the same timestamp.
7979
- Whitelisted signer addresses: [initial-state.json](https://github.com/redstone-finance/redstone-oracles-monorepo/blob/fcc49e9e7f3e5ef2fc0aa0c4b647e42e4f7e90f0/packages/sdk/src/registry/initial-state.json#L1)
80+
- You can use this function [SignedDataPackage.fromObj()](https://github.com/redstone-finance/redstone-oracles-monorepo/blob/fcc49e9e7f3e5ef2fc0aa0c4b647e42e4f7e90f0/packages/protocol/src/data-package/DataPackage.ts#L203C17-L203C24) from [package](https://www.npmjs.com/package/@redstone-finance/protocol) to recover signer address.
8081
- Most feeds have exactly **1 element** in `dataPoints`. Only feeds prefixed with `__` can contain multiple data points.
8182

8283
**Recommended algorithm for safe consumption:**
8384

84-
1. Filter out packages with non-whitelisted signers or invalid signatures. You can use this function [SignedDataPackage.fromObj()](https://github.com/redstone-finance/redstone-oracles-monorepo/blob/fcc49e9e7f3e5ef2fc0aa0c4b647e42e4f7e90f0/packages/protocol/src/data-package/DataPackage.ts#L203C17-L203C24) from [package](https://www.npmjs.com/package/@redstone-finance/protocol) to recover signer address.
85+
1. Filter out packages with non-whitelisted signers or invalid signatures.
8586
2. Check that the minimum signer count threshold is met.
8687
3. Calculate the median across the verified packages.
8788

0 commit comments

Comments
 (0)