cry 0.1.5

Advance cryptography based on ECC and permutation cryptography.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::Keypair;
use crate::primitive::point::{DisLogPoint, Point};
use crate::primitive::scalar::ScalarNumber;

pub struct BarePublicKey<P: DisLogPoint> {
    pub public: Point<P>,
}

impl<P: DisLogPoint> BarePublicKey<P> {
    pub fn from_keypair<S: ScalarNumber>(keypair: &Keypair<P, S>) -> Self {
        BarePublicKey {
            public: keypair.public.clone(),
        }
    }
}