pub struct Attestation {
pub request_cid: B256,
pub response_cid: B256,
pub deployment: B256,
pub r: B256,
pub s: B256,
pub v: u8,
}
Expand description
An attestation of a request-response pair.
An attestation is an EIP-712 signature over a request, request_cid
, and response,
response_cid
, keccak-256 hash, and the subgraph deployment ID, deployment
, being queried.
The attestation is signed by the indexer that processed the request. The indexer signs the allocation by signing the EIP-712 hash with the private key of the allocation associated with the deployment being queried.
Fields§
§request_cid: B256
The keccak-256 hash of the request being attested.
response_cid: B256
The keccak-256 hash of the response being attested.
deployment: B256
The subgraph deployment ID being queried.
r: B256
The r
component of the attestation signature.
s: B256
The s
component of the attestation signature.
v: u8
The parity indicator of the attestation signature.
Trait Implementations§
source§impl Clone for Attestation
impl Clone for Attestation
source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
Returns a copy 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 Debug for Attestation
impl Debug for Attestation
source§impl<'de> Deserialize<'de> for Attestation
impl<'de> Deserialize<'de> for Attestation
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
Auto Trait Implementations§
impl Freeze for Attestation
impl RefUnwindSafe for Attestation
impl Send for Attestation
impl Sync for Attestation
impl Unpin for Attestation
impl UnwindSafe for Attestation
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)