pub struct SqliteDurableAnchorSigner { /* private fields */ }Expand description
SQLite signature journal binding each operation to one payload and one signature across process restarts.
Implementations§
Source§impl SqliteDurableAnchorSigner
impl SqliteDurableAnchorSigner
Sourcepub fn open(
path: impl AsRef<Path>,
identity: AnchorNodeIdentity,
sign: Arc<dyn Fn(&[u8]) -> Signature + Send + Sync>,
) -> Result<Self, SignOnceError>
pub fn open( path: impl AsRef<Path>, identity: AnchorNodeIdentity, sign: Arc<dyn Fn(&[u8]) -> Signature + Send + Sync>, ) -> Result<Self, SignOnceError>
Open or create a durable signature journal pinned to one node identity.
§Errors
Fails closed on inaccessible storage or identity-policy mismatch.
Trait Implementations§
Source§impl Debug for SqliteDurableAnchorSigner
impl Debug for SqliteDurableAnchorSigner
Source§impl DurableAnchorSigner for SqliteDurableAnchorSigner
impl DurableAnchorSigner for SqliteDurableAnchorSigner
fn identity(&self) -> AnchorNodeIdentity
fn reserved_recorded_at( &self, request_hash: Hash256, ) -> Result<Option<Timestamp>, SignOnceError>
fn reserve_recorded_at( &self, request_hash: Hash256, proposed: Timestamp, ) -> Result<Timestamp, SignOnceError>
fn sign_once( &self, operation_id: Hash256, payload: &[u8], ) -> Result<Signature, SignOnceError>
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteDurableAnchorSigner
impl !UnwindSafe for SqliteDurableAnchorSigner
impl Freeze for SqliteDurableAnchorSigner
impl Send for SqliteDurableAnchorSigner
impl Sync for SqliteDurableAnchorSigner
impl Unpin for SqliteDurableAnchorSigner
impl UnsafeUnpin for SqliteDurableAnchorSigner
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