-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(thegraph): add proof-of-indexing to the types module (#58)
Co-authored-by: Theo Butler <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! A Proof of Indexing (POI) a cryptographic proof submitted by indexers to demonstrate that they | ||
//! have accurately indexed a subgraph. | ||
//! | ||
//! The POI is essentially a signature over a message digest that is generated during the indexing | ||
//! of a subgraph from genesis. Each time a subgraph’s state is updated, so does the message digest. | ||
use super::primitives::B256; | ||
|
||
/// A Proof of Indexing (POI) a cryptographic proof submitted by indexers to demonstrate that they | ||
/// have accurately indexed a subgraph. | ||
pub type ProofOfIndexing = B256; |