You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
80
81
- Most feeds have exactly **1 element** in `dataPoints`. Only feeds prefixed with `__` can contain multiple data points.
81
82
82
83
**Recommended algorithm for safe consumption:**
83
84
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.
85
86
2. Check that the minimum signer count threshold is met.
86
87
3. Calculate the median across the verified packages.
0 commit comments