libslug 0.12.0

A Rust Library For Cryptography Intended For Slug20 That Supports X59 Certificate Format and Post-Quantum Cryptography
Documentation
//! # X59 Certificate
//! 
//! ## Outline
//! 
//! - [X] Basic Essentials
//!     - [X] Encryption
//!     - [X] Public Key, Private Key Pair
//!     - [X] Serialization to easy to read format (Base58 for public keys)
//! 
//! 
//! - [ ] Signatures
//!     - [ ] Signing the Public Key
//!     - [X] Signing the digest of the public key
//!     - [ ] Signing a request from a server or peer to peer application

use crate::slugcrypt::api::SlugDigest;

pub mod storage;

// TODO: Add implementation

pub struct X59CertLocalMetadata {
    pub local_id: String, // 6-bytes
    pub local_keypair_identity: String, // 8-bytes
    pub local_unique_name: String,
}

impl X59CertLocalMetadata {
    /*
    pub fn new<H: AsRef<str>, T: X59Certificate>(cert: X59Cert<T>, name: H) {
        cert.pkh
    }
    
    fn digest_of_public_key<T: X59Certificate>(cert: X59Cert<T>) {

        SlugDigest::blake2s(6, data)
    }
    */
}