pub struct ProofRecord {
pub miner: Pubkey,
pub challenge_id: [u8; 32],
pub mml_score: u64,
pub path_signature: [u8; 32],
pub slot: u64,
pub timestamp: i64,
pub reward_distributed: u64,
pub bump: u8,
pub entropy_score: u64,
pub is_tensor_aware: u8,
pub path_distance: u32,
pub device_type: u8,
}Expand description
Proof record account storing details of a submitted mining proof. Created each time a miner submits a valid proof.
Fields§
§miner: PubkeyMiner who submitted this proof
challenge_id: [u8; 32]Unique challenge ID for this proof
mml_score: u64Merkle Merkle Linkage score for this proof
path_signature: [u8; 32]Cryptographic signature proving path through neural network
slot: u64Solana slot when the proof was submitted
timestamp: i64Timestamp when the proof was submitted
reward_distributed: u64Reward amount that was distributed for this proof
bump: u8PDA bump seed for this account
entropy_score: u64Entropy score calculated from this proof (1e6 scale)
is_tensor_aware: u8Whether this proof was validated using tensor-aware logic
path_distance: u32Distance traveled in the neural path
device_type: u8Type of device that submitted this proof
Trait Implementations§
Source§impl AccountDeserialize for ProofRecord
impl AccountDeserialize for ProofRecord
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl AccountSerialize for ProofRecord
impl AccountSerialize for ProofRecord
Source§impl BorshDeserialize for ProofRecordwhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u8: BorshDeserialize,
u32: BorshDeserialize,
impl BorshDeserialize for ProofRecordwhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u8: BorshDeserialize,
u32: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ProofRecordwhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u8: BorshSerialize,
u32: BorshSerialize,
impl BorshSerialize for ProofRecordwhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u8: BorshSerialize,
u32: BorshSerialize,
Source§impl Clone for ProofRecord
impl Clone for ProofRecord
Source§fn clone(&self) -> ProofRecord
fn clone(&self) -> ProofRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Discriminator for ProofRecord
impl Discriminator for ProofRecord
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for ProofRecord
impl RefUnwindSafe for ProofRecord
impl Send for ProofRecord
impl Sync for ProofRecord
impl Unpin for ProofRecord
impl UnsafeUnpin for ProofRecord
impl UnwindSafe for ProofRecord
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> 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