#[repr(C)]pub struct ProofV2 {
pub resource: Pubkey,
pub authority: Pubkey,
pub balance: u64,
pub challenge: [u8; 32],
pub last_hash: [u8; 32],
pub last_hash_at: i64,
pub last_stake_at: i64,
pub miner: Pubkey,
pub total_hashes: u64,
pub total_rewards: u64,
pub equipped_tool: Pubkey,
}Fields§
§resource: PubkeyThe resource mint this proof is for.
The signer authorized to use this proof.
balance: u64The quantity of tokens this miner has staked or earned.
challenge: [u8; 32]The current mining challenge.
last_hash: [u8; 32]The last hash the miner provided.
last_hash_at: i64The last time this account provided a hash.
last_stake_at: i64The last time stake was deposited into this account.
miner: PubkeyThe keypair which has permission to submit hashes for mining.
total_hashes: u64The total lifetime hashes provided by this miner.
total_rewards: u64The total lifetime rewards distributed to this miner.
equipped_tool: PubkeyThe tool equipped by the miner.
Implementations§
Trait Implementations§
Source§impl AccountDeserialize for ProofV2
impl AccountDeserialize for ProofV2
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>
Source§impl Discriminator for ProofV2
impl Discriminator for ProofV2
fn discriminator() -> u8
impl Copy for ProofV2
impl Pod for ProofV2
impl StructuralPartialEq for ProofV2
Auto Trait Implementations§
impl Freeze for ProofV2
impl RefUnwindSafe for ProofV2
impl Send for ProofV2
impl Sync for ProofV2
impl Unpin for ProofV2
impl UnwindSafe for ProofV2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more