mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-06 23:33:10 +00:00
add commitment
This commit is contained in:
parent
9a59eab30d
commit
ec9973517e
8
storage/src/commitment.rs
Normal file
8
storage/src/commitment.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::merkle_tree_public::CommitmentHashType;
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq, Eq)]
|
||||
pub struct Commitment {
|
||||
pub commitment_hash: CommitmentHashType,
|
||||
}
|
||||
@ -12,6 +12,7 @@ pub mod block;
|
||||
pub mod error;
|
||||
pub mod merkle_tree_public;
|
||||
pub mod nullifier;
|
||||
pub mod commitment;
|
||||
pub mod nullifier_sparse_merkle_tree;
|
||||
pub mod transaction;
|
||||
pub mod utxo_commitment;
|
||||
|
||||
@ -3,3 +3,4 @@ pub mod merkle_tree;
|
||||
pub mod tree_leav_item;
|
||||
|
||||
pub type TreeHashType = [u8; 32];
|
||||
pub type CommitmentHashType = Vec<u8>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user