[][src]Type Definition yogcrypt::sm2::PubKey

type PubKey = Point;

A public key is a point on the elliptic curve group.

Usage

    extern crate yogcrypt;
    use yogcrypt::sm2::*;

    let x = Coordinate::from_u64([0x7b706375_42fb998e, 0x00f78ba4_e992817f, 0x6fcbd376_2040ded0, 0xa06c2b7e_e7b810bd]);
    let y = Coordinate::from_u64([0xd8cb4986_918e9375, 0x3055dfcc_d2870256, 0x973ccca3_1d33bd55, 0xf6fed50c_fd14ede7]);
    let pk = PubKey::new(x,y);