pub struct SignedCheckpoint {
pub checkpoint: Checkpoint,
pub log_signature: Ed25519Signature,
pub log_public_key: Ed25519PublicKey,
pub witnesses: Vec<WitnessCosignature>,
pub ecdsa_checkpoint_signature: Option<EcdsaP256Signature>,
pub ecdsa_checkpoint_key: Option<EcdsaP256PublicKey>,
}Expand description
A checkpoint signed by the log operator (and optionally witnesses).
Args:
checkpoint— The unsigned checkpoint data.log_signature— Ed25519 signature from the log’s signing key.log_public_key— The log operator’s public key.witnesses— Optional witness cosignatures.
Usage:
ⓘ
let signed = SignedCheckpoint {
checkpoint,
log_signature: sig,
log_public_key: log_pk,
witnesses: vec![],
};Fields§
§checkpoint: Checkpoint§log_signature: Ed25519Signature§log_public_key: Ed25519PublicKey§witnesses: Vec<WitnessCosignature>§ecdsa_checkpoint_signature: Option<EcdsaP256Signature>ECDSA P-256 checkpoint signature (DER-encoded). Present when the log uses ECDSA instead of Ed25519 (e.g., Rekor production shard).
ecdsa_checkpoint_key: Option<EcdsaP256PublicKey>ECDSA P-256 public key for checkpoint verification (PKIX DER).
Trait Implementations§
Source§impl Clone for SignedCheckpoint
impl Clone for SignedCheckpoint
Source§fn clone(&self) -> SignedCheckpoint
fn clone(&self) -> SignedCheckpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignedCheckpoint
impl Debug for SignedCheckpoint
Source§impl<'de> Deserialize<'de> for SignedCheckpoint
impl<'de> Deserialize<'de> for SignedCheckpoint
Source§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
Source§impl PartialEq for SignedCheckpoint
impl PartialEq for SignedCheckpoint
Source§fn eq(&self, other: &SignedCheckpoint) -> bool
fn eq(&self, other: &SignedCheckpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignedCheckpoint
impl Serialize for SignedCheckpoint
impl StructuralPartialEq for SignedCheckpoint
Auto Trait Implementations§
impl Freeze for SignedCheckpoint
impl RefUnwindSafe for SignedCheckpoint
impl Send for SignedCheckpoint
impl Sync for SignedCheckpoint
impl Unpin for SignedCheckpoint
impl UnsafeUnpin for SignedCheckpoint
impl UnwindSafe for SignedCheckpoint
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