pub struct ChainKeyBatchHeaderV1 {Show 13 fields
pub schema_version: u16,
pub root_canister_id: Principal,
pub batch_id: [u8; 32],
pub proof_epoch: u64,
pub registry_epoch: u64,
pub registry_hash: [u8; 32],
pub tree_root: [u8; 32],
pub not_before_ns: u64,
pub expires_at_ns: u64,
pub algorithm: ChainKeyAlgorithm,
pub key_id: ChainKeyKeyId,
pub derivation_path_hash: [u8; 32],
pub key_version: u64,
}Expand description
ChainKeyBatchHeaderV1
Claimed signed batch-header fields, preserving their existing order.
Fields§
§schema_version: u16Claimed header schema, not validated by transport.
root_canister_id: PrincipalClaimed root canister.
batch_id: [u8; 32]Batch identity.
proof_epoch: u64Claimed proof epoch.
registry_epoch: u64Claimed registry epoch.
registry_hash: [u8; 32]Registry commitment.
tree_root: [u8; 32]Merkle tree root.
not_before_ns: u64Inclusive validity start, in nanoseconds.
expires_at_ns: u64Exclusive expiry, in nanoseconds.
algorithm: ChainKeyAlgorithmClaimed root-signature algorithm.
key_id: ChainKeyKeyIdClaimed key name.
derivation_path_hash: [u8; 32]Derivation-path commitment.
key_version: u64Claimed key version.
Trait Implementations§
Source§impl Clone for ChainKeyBatchHeaderV1
impl Clone for ChainKeyBatchHeaderV1
Source§impl Debug for ChainKeyBatchHeaderV1
impl Debug for ChainKeyBatchHeaderV1
Source§impl<'de> Deserialize<'de> for ChainKeyBatchHeaderV1
impl<'de> Deserialize<'de> for ChainKeyBatchHeaderV1
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
impl Eq for ChainKeyBatchHeaderV1
Source§impl<'__wire_read> Evolving<'__wire_read> for ChainKeyBatchHeaderV1where
u16: Inline<'__wire_read>,
Principal: Inline<'__wire_read>,
[u8; 32]: Inline<'__wire_read>,
u64: Inline<'__wire_read>,
ChainKeyAlgorithm: Inline<'__wire_read>,
ChainKeyKeyId: Inline<'__wire_read>,
impl<'__wire_read> Evolving<'__wire_read> for ChainKeyBatchHeaderV1where
u16: Inline<'__wire_read>,
Principal: Inline<'__wire_read>,
[u8; 32]: Inline<'__wire_read>,
u64: Inline<'__wire_read>,
ChainKeyAlgorithm: Inline<'__wire_read>,
ChainKeyKeyId: Inline<'__wire_read>,
Source§impl EvolvingSchema for ChainKeyBatchHeaderV1
impl EvolvingSchema for ChainKeyBatchHeaderV1
fn describe( __wire_context: &mut SchemaContext, ) -> Result<Value, GenerationError>
Source§impl<'__wire_read> Inline<'__wire_read> for ChainKeyBatchHeaderV1where
u16: Inline<'__wire_read>,
Principal: Inline<'__wire_read>,
[u8; 32]: Inline<'__wire_read>,
u64: Inline<'__wire_read>,
ChainKeyAlgorithm: Inline<'__wire_read>,
ChainKeyKeyId: Inline<'__wire_read>,
impl<'__wire_read> Inline<'__wire_read> for ChainKeyBatchHeaderV1where
u16: Inline<'__wire_read>,
Principal: Inline<'__wire_read>,
[u8; 32]: Inline<'__wire_read>,
u64: Inline<'__wire_read>,
ChainKeyAlgorithm: Inline<'__wire_read>,
ChainKeyKeyId: Inline<'__wire_read>,
Source§type Encoded<'__wire_stage> = __WireEncodedView<'__wire_stage, '__wire_read>where
Self: '__wire_stage,
type Encoded<'__wire_stage> = __WireEncodedView<'__wire_stage, '__wire_read>where
Self: '__wire_stage,
The staged Serde value and its borrowed application data or scratch.
Source§type Decoded = __WireDecodedView<'__wire_read>
type Decoded = __WireDecodedView<'__wire_read>
The raw Serde value to project with the enclosing read context.
impl<'__wire_read> InlineMessage<'__wire_read> for ChainKeyBatchHeaderV1where
u16: Inline<'__wire_read>,
Principal: Inline<'__wire_read>,
[u8; 32]: Inline<'__wire_read>,
u64: Inline<'__wire_read>,
ChainKeyAlgorithm: Inline<'__wire_read>,
ChainKeyKeyId: Inline<'__wire_read>,
Source§impl PartialEq for ChainKeyBatchHeaderV1
impl PartialEq for ChainKeyBatchHeaderV1
Source§impl Serialize for ChainKeyBatchHeaderV1
impl Serialize for ChainKeyBatchHeaderV1
impl StructuralPartialEq for ChainKeyBatchHeaderV1
Source§impl Wire for ChainKeyBatchHeaderV1
impl Wire for ChainKeyBatchHeaderV1
Source§fn schema(__wire_context: &mut SchemaContext) -> Result<Value, GenerationError>
fn schema(__wire_context: &mut SchemaContext) -> Result<Value, GenerationError>
Produce metadata using
context.describe for every nested Rust type. Read moreAuto Trait Implementations§
impl Forget for ChainKeyBatchHeaderV1
impl Freeze for ChainKeyBatchHeaderV1
impl Move for ChainKeyBatchHeaderV1
impl RefUnwindSafe for ChainKeyBatchHeaderV1
impl Send for ChainKeyBatchHeaderV1where
RawVecInner: Send,
impl Sync for ChainKeyBatchHeaderV1where
RawVecInner: Sync,
impl Unpin for ChainKeyBatchHeaderV1
impl UnsafeUnpin for ChainKeyBatchHeaderV1
impl UnwindSafe for ChainKeyBatchHeaderV1where
RawVecInner: UnwindSafe,
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