mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
17 lines
379 B
Rust
17 lines
379 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::transaction::Transaction;
|
|
|
|
pub type BlockHash = [u8; 32];
|
|
pub type Data = Vec<u8>;
|
|
pub type BlockId = u64;
|
|
|
|
//ToDo: Add fields to block when model is clear
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct Block {
|
|
pub block_id: BlockId,
|
|
pub hash: BlockHash,
|
|
pub transactions: Vec<Transaction>,
|
|
pub data: Data,
|
|
}
|