Skip to main content
StoreAck
coven_
protocol
1.0.0-rc.1
Store
Ack
Aliased Type
Methods
ack_hash
parse_at
semantic_hash_from_bytes
signed
In coven_
protocol::
store_
commit
coven_protocol
::
store_commit
Type Alias
Store
Ack
Copy item path
Source
pub type StoreAck =
Signed
<
StoreAckBody
>;
Aliased Type
§
pub struct StoreAck {
/* private fields */
}
Implementations
§
Source
§
impl
StoreAck
Source
pub fn
signed
( store_root_hash:
ObjectHash
, sequence:
u64
, assertion:
StoreAckAssertion
, last_sync:
String
, successor:
SuccessorLink
, device_signer: &
UserKeypair
, ) ->
Result
<Self,
StoreProtocolError
>
Source
pub fn
ack_hash
(&self) ->
ObjectHash
Source
pub fn
semantic_hash_from_bytes
( bytes: &[
u8
], ) ->
Result
<
ObjectHash
,
StoreProtocolError
>
Source
pub fn
parse_at
( bytes: &[
u8
], expected_store_root: &
StoreRootRef
, expected: &
StoreAckRef
, author: &
StoreDeviceRegistration
, ) ->
Result
<Self,
StoreProtocolError
>