pub enum AddCheckpointOutcome {
Cosigned(Vec<u8>),
UnknownOrigin,
NotSigned,
BadOldSize,
Conflict {
newest_size: u64,
},
ProofRejected,
}Expand description
What a witness said, classified from the status code exactly as
c2sp.org/tlog-witness defines it, so a caller never has to guess from a
status alone which of the four refusals it received.
Variants§
Cosigned(Vec<u8>)
200: the body is the cosignature line the witness returned.
UnknownOrigin
404: the witness does not serve this origin.
NotSigned
403: no signature from a trusted key, or the checkpoint is malformed.
BadOldSize
400: the old size is above the checkpoint size.
Conflict
409: the old size is not what this witness last cosigned. The body
carries the size it did cosign, which is what the caller must retry from.
ProofRejected
422: the proof does not verify, or a size-zero checkpoint has a root
that is not the empty tree.
Trait Implementations§
Source§impl Clone for AddCheckpointOutcome
impl Clone for AddCheckpointOutcome
Source§impl Debug for AddCheckpointOutcome
impl Debug for AddCheckpointOutcome
impl Eq for AddCheckpointOutcome
Source§impl PartialEq for AddCheckpointOutcome
impl PartialEq for AddCheckpointOutcome
impl StructuralPartialEq for AddCheckpointOutcome
Auto Trait Implementations§
impl Forget for AddCheckpointOutcome
impl Freeze for AddCheckpointOutcome
impl Move for AddCheckpointOutcome
impl RefUnwindSafe for AddCheckpointOutcome
impl Send for AddCheckpointOutcome
impl Sync for AddCheckpointOutcome
impl Unpin for AddCheckpointOutcome
impl UnsafeUnpin for AddCheckpointOutcome
impl UnwindSafe for AddCheckpointOutcome
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