pub struct ReputationProof {
pub agent_id: String,
pub claimed_score: u32,
pub registry_root: String,
pub leaf: String,
pub merkle_path: Vec<String>,
pub leaf_index: u64,
}Expand description
A Merkle inclusion proof that a provider holds an ERC-8004 reputation leaf
at or above some score, without an RPC round-trip to read the registry
(lifecycle Stage 2 / P3). The poster recomputes the root from
leaf + merkle_path and compares it to the on-chain ReputationRegistry
root for registry_root.
Fields§
§agent_id: StringERC-8004 agent id (decimal string) the leaf belongs to.
claimed_score: u32Score claimed by this proof.
registry_root: StringExpected Merkle root (hex), matched against the registry’s published root.
leaf: StringHex-encoded leaf preimage hash for (agent_id, claimed_score).
merkle_path: Vec<String>Sibling hashes (hex) from leaf to root, in order.
leaf_index: u64Index of the leaf in the tree (determines left/right hashing order).
Trait Implementations§
Source§impl Clone for ReputationProof
impl Clone for ReputationProof
Source§fn clone(&self) -> ReputationProof
fn clone(&self) -> ReputationProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReputationProof
impl Debug for ReputationProof
Source§impl<'de> Deserialize<'de> for ReputationProof
impl<'de> Deserialize<'de> for ReputationProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReputationProof
Source§impl PartialEq for ReputationProof
impl PartialEq for ReputationProof
Source§fn eq(&self, other: &ReputationProof) -> bool
fn eq(&self, other: &ReputationProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReputationProof
impl Serialize for ReputationProof
impl StructuralPartialEq for ReputationProof
Auto Trait Implementations§
impl Freeze for ReputationProof
impl RefUnwindSafe for ReputationProof
impl Send for ReputationProof
impl Sync for ReputationProof
impl Unpin for ReputationProof
impl UnsafeUnpin for ReputationProof
impl UnwindSafe for ReputationProof
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