pub struct EntryBuilder { /* private fields */ }Expand description
Create and sign new Entry instances.
Implementations§
Source§impl EntryBuilder
impl EntryBuilder
Sourcepub fn sign(
&self,
encoded_operation: &EncodedOperation,
key_pair: &KeyPair,
) -> Result<Entry, EntryBuilderError>
pub fn sign( &self, encoded_operation: &EncodedOperation, key_pair: &KeyPair, ) -> Result<Entry, EntryBuilderError>
Signs entry and secures payload with the author’s key pair, returns a new Entry instance.
An EncodedOperation is required here for the entry payload. The entry is “pointing” at
the payload to secure and authenticate it. Later on, the payload can theoretically be
deleted when it is not needed anymore.
Using this method we can assume that the entry will be correctly signed. This applies only basic checks if the backlink and skiplink is correctly set for the given sequence number (#E3). Please note though that this method can not check for correct log integrity!
Trait Implementations§
Source§impl Clone for EntryBuilder
impl Clone for EntryBuilder
Source§fn clone(&self) -> EntryBuilder
fn clone(&self) -> EntryBuilder
Returns a duplicate 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 EntryBuilder
impl Debug for EntryBuilder
Source§impl Default for EntryBuilder
impl Default for EntryBuilder
Source§fn default() -> EntryBuilder
fn default() -> EntryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EntryBuilder
impl RefUnwindSafe for EntryBuilder
impl Send for EntryBuilder
impl Sync for EntryBuilder
impl Unpin for EntryBuilder
impl UnwindSafe for EntryBuilder
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more