noise seed

This commit is contained in:
Hardhat Chad
2025-06-13 10:48:09 -07:00
parent 496a6cc476
commit ab04720ca2
8 changed files with 10 additions and 28 deletions

View File

@@ -29,6 +29,7 @@ pub struct Commit {
pub amount: [u8; 8],
pub executor: [u8; 32],
pub fee: [u8; 8],
pub seed: [u8; 32],
}
#[repr(C)]

View File

@@ -16,11 +16,7 @@ pub struct Block {
/// The block number.
pub id: u64,
/// The minimum difficulty required for payout.
// pub min_difficulty: u64,
/// The reward rate per satisfying hash.
// pub reward_rate: u64,
/// The reward configuration.
pub reward: RewardConfig,
/// The hash of the starting slot.
@@ -34,9 +30,6 @@ pub struct Block {
/// The total amount of rewards paid out to miners.
pub total_rewards: u64,
/// The total number of hashes that resulted in a payout.
pub winning_hashes: u64,
}
/// Configuration specifying how rewards are paid out.

View File

@@ -21,9 +21,6 @@ pub struct Miner {
/// The amount of ORE this miner has mined.
pub total_rewards: u64,
/// The number of winning hashes this miner has submitted.
pub winning_hashes: u64,
}
impl Miner {

View File

@@ -21,6 +21,9 @@ pub struct Permit {
/// The fee paid to the executor.
pub fee: u64,
/// A user-supplied seed for random number generation.
pub seed: [u8; 32],
}
impl Permit {