-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
492 additions
and
507 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 |
---|---|---|
@@ -1,51 +1,51 @@ | ||
// This file is @generated by prost-build. | ||
/// Represents a block header | ||
/// Represents a block header. | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct BlockHeader { | ||
/// Specifies the version of the protocol | ||
/// Specifies the version of the protocol. | ||
#[prost(uint32, tag = "1")] | ||
pub version: u32, | ||
/// The hash of the previous blocks header | ||
/// The hash of the previous blocks header. | ||
#[prost(message, optional, tag = "2")] | ||
pub prev_hash: ::core::option::Option<super::digest::Digest>, | ||
/// A unique sequential number of the current block | ||
/// A unique sequential number of the current block. | ||
#[prost(fixed32, tag = "3")] | ||
pub block_num: u32, | ||
/// A commitment to an MMR of the entire chain where each block is a leaf | ||
/// A commitment to an MMR of the entire chain where each block is a leaf. | ||
#[prost(message, optional, tag = "4")] | ||
pub chain_root: ::core::option::Option<super::digest::Digest>, | ||
/// A commitment to account database | ||
/// A commitment to account database. | ||
#[prost(message, optional, tag = "5")] | ||
pub account_root: ::core::option::Option<super::digest::Digest>, | ||
/// A commitment to the nullifier database | ||
/// A commitment to the nullifier database. | ||
#[prost(message, optional, tag = "6")] | ||
pub nullifier_root: ::core::option::Option<super::digest::Digest>, | ||
/// A commitment to all notes created in the current block | ||
/// A commitment to all notes created in the current block. | ||
#[prost(message, optional, tag = "7")] | ||
pub note_root: ::core::option::Option<super::digest::Digest>, | ||
/// A commitment to a set of IDs of transactions which affected accounts in this block | ||
/// A commitment to a set of IDs of transactions which affected accounts in this block. | ||
#[prost(message, optional, tag = "8")] | ||
pub tx_hash: ::core::option::Option<super::digest::Digest>, | ||
/// A hash of a STARK proof attesting to the correct state transition | ||
/// A hash of a STARK proof attesting to the correct state transition. | ||
#[prost(message, optional, tag = "9")] | ||
pub proof_hash: ::core::option::Option<super::digest::Digest>, | ||
/// A commitment to all transaction kernels supported by this block | ||
/// A commitment to all transaction kernels supported by this block. | ||
#[prost(message, optional, tag = "10")] | ||
pub kernel_root: ::core::option::Option<super::digest::Digest>, | ||
/// The time when the block was created | ||
/// The time when the block was created. | ||
#[prost(fixed32, tag = "11")] | ||
pub timestamp: u32, | ||
} | ||
/// Represents a block inclusion proof | ||
/// Represents a block inclusion proof. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct BlockInclusionProof { | ||
/// Block header associated with the inclusion proof | ||
/// Block header associated with the inclusion proof. | ||
#[prost(message, optional, tag = "1")] | ||
pub block_header: ::core::option::Option<BlockHeader>, | ||
/// Merkle path associated with the inclusion proof | ||
/// Merkle path associated with the inclusion proof. | ||
#[prost(message, optional, tag = "2")] | ||
pub mmr_path: ::core::option::Option<super::merkle::MerklePath>, | ||
/// The chain length associated with `mmr_path` | ||
/// The chain length associated with `mmr_path`. | ||
#[prost(fixed32, tag = "3")] | ||
pub chain_length: u32, | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// This file is @generated by prost-build. | ||
/// Represents a Merkle path | ||
/// Represents a Merkle path. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MerklePath { | ||
/// List of sibling node hashes, in order from the root to the leaf | ||
/// List of sibling node hashes, in order from the root to the leaf. | ||
#[prost(message, repeated, tag = "1")] | ||
pub siblings: ::prost::alloc::vec::Vec<super::digest::Digest>, | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// This file is @generated by prost-build. | ||
/// Represents an MMR delta | ||
/// Represents an MMR delta. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MmrDelta { | ||
/// The number of trees in the forest (latest block number + 1) | ||
/// The number of trees in the forest (latest block number + 1). | ||
#[prost(uint64, tag = "1")] | ||
pub forest: u64, | ||
/// New and changed MMR peaks | ||
/// New and changed MMR peaks. | ||
#[prost(message, repeated, tag = "2")] | ||
pub data: ::prost::alloc::vec::Vec<super::digest::Digest>, | ||
} |
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
Oops, something went wrong.