Struct holochain_zome_types::countersigning::CounterSigningSessionData [−][src]
pub struct CounterSigningSessionData { /* fields omitted */ }
Expand description
All the data required for a countersigning session.
Implementations
pub fn try_from_responses(
responses: Vec<PreflightResponse>
) -> Result<Self, CounterSigningError>
pub fn try_from_responses(
responses: Vec<PreflightResponse>
) -> Result<Self, CounterSigningError>
Attempt to build session data from a vector of responses.
pub fn agent_state_for_agent(
&self,
agent: &AgentPubKey
) -> Result<&CounterSigningAgentState, CounterSigningError>
pub fn agent_state_for_agent(
&self,
agent: &AgentPubKey
) -> Result<&CounterSigningAgentState, CounterSigningError>
Get the agent state for a specific agent.
pub fn build_header_set(
&self,
entry_hash: EntryHash
) -> Result<Vec<Header>, CounterSigningError>
pub fn build_header_set(
&self,
entry_hash: EntryHash
) -> Result<Vec<Header>, CounterSigningError>
Attempt to map countersigning session data to a set of headers. A given countersigning session always maps to the same ordered set of headers or an error. Note the headers are not signed as the intent is to build headers for other agents without their private keys.
pub fn try_new(
preflight_request: PreflightRequest,
responses: Vec<(CounterSigningAgentState, Signature)>
) -> Result<Self, CounterSigningError>
pub fn try_new(
preflight_request: PreflightRequest,
responses: Vec<(CounterSigningAgentState, Signature)>
) -> Result<Self, CounterSigningError>
Fallible constructor.
Combines all integrity checks.
Check that the countersigning session data responses all have the correct indexes.
Construct a Timestamp from countersigning session data. Ostensibly used for the Header because the session itself covers a time range.
Accessor to the preflight request.
Mutable preflight_request accessor for testing.
Get all the agents signing for this session.
Mutable responses accessor for testing.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CounterSigningSessionData
impl Send for CounterSigningSessionData
impl Sync for CounterSigningSessionData
impl Unpin for CounterSigningSessionData
impl UnwindSafe for CounterSigningSessionData
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more