Struct holochain_zome_types::countersigning::PreflightResponse [−][src]
pub struct PreflightResponse { /* fields omitted */ }
Expand description
Every agent must send back a preflight response. All the preflight response data is signed by each agent and included in the session data.
Implementations
pub fn try_new(
request: PreflightRequest,
agent_state: CounterSigningAgentState,
signature: Signature
) -> Result<Self, CounterSigningError>
pub fn try_new(
request: PreflightRequest,
agent_state: CounterSigningAgentState,
signature: Signature
) -> Result<Self, CounterSigningError>
Fallible constructor.
Combined preflight response validation call.
pub fn encode_fields_for_signature(
request: &PreflightRequest,
agent_state: &CounterSigningAgentState
) -> Result<Vec<u8>, SerializedBytesError>
pub fn encode_fields_for_signature(
request: &PreflightRequest,
agent_state: &CounterSigningAgentState
) -> Result<Vec<u8>, SerializedBytesError>
Serialization for signing of the signable field data only.
Consistent serialization for the preflight response so it can be signed and the signatures verified.
Request accessor.
Mutable request accessor for testing.
Agent state accessor.
Mutable agent state accessor for testing.
Mutable signature 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
Auto Trait Implementations
impl RefUnwindSafe for PreflightResponse
impl Send for PreflightResponse
impl Sync for PreflightResponse
impl Unpin for PreflightResponse
impl UnwindSafe for PreflightResponse
Blanket Implementations
Mutably borrows from an owned value. 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