Skip to main content

CertificateAuthority

Trait CertificateAuthority 

Source
pub trait CertificateAuthority {
    // Required methods
    fn fabric_id(&self) -> u64;
    fn root_cert(&self) -> &[u8] ⓘ;
    fn intermediate_cert(&self) -> Option<&[u8]>;
    fn allocate_node_id(&self) -> impl Future<Output = Result<u64, Error>>;
    fn issue_noc<C: Crypto>(
        &self,
        crypto: C,
        csr: &[u8],
        node_id: u64,
        cats: &[u32],
    ) -> impl Future<Output = Result<Vec<u8>, Error>>;
    fn signing_key(&self) -> Option<&[u8; 32]>;
    fn ipk(&self) -> &[u8; 16];

    // Provided method
    fn admin_cat(&self) -> Option<u32> { ... }
}
Expand description

Issues the fabric’s operational certificates.

Required Methods§

Source

fn fabric_id(&self) -> u64

The fabric id.

Source

fn root_cert(&self) -> &[u8] ⓘ

The root certificate (RCAC), Matter TLV encoding.

Source

fn intermediate_cert(&self) -> Option<&[u8]>

The intermediate certificate (ICAC) NOCs are signed with, Matter TLV encoding, or None when the root signs them directly.

Source

fn allocate_node_id(&self) -> impl Future<Output = Result<u64, Error>>

Allocate a node id that no other node of the fabric has.

Source

fn issue_noc<C: Crypto>( &self, crypto: C, csr: &[u8], node_id: u64, cats: &[u32], ) -> impl Future<Output = Result<Vec<u8>, Error>>

Issue a NOC for the public key in csr (DER PKCS#10) and node_id, with up to three CASE Authenticated Tags.

Source

fn signing_key(&self) -> Option<&[u8; 32]>

The key NOCs are signed with, if this process holds it.

Source

fn ipk(&self) -> &[u8; 16]

The fabric’s identity protection key (IPK) epoch key. Every controller and node of the fabric has the same one; CASE needs it.

Provided Methods§

Source

fn admin_cat(&self) -> Option<u32>

A CASE Authenticated Tag every controller of the fabric carries in its certificate, if the fabric uses one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§