pub struct Sm9SignMasterKey {
pub ks: U256,
pub ppubs: TwistPoint,
}Fields§
§ks: U256§ppubs: TwistPointImplementations§
Source§impl Sm9SignMasterKey
impl Sm9SignMasterKey
pub fn master_key_generate() -> Self
pub fn extract_key(&self, idb: &[u8]) -> Option<Sm9SignKey>
pub fn verify_sign( &self, id: &[u8], data: &[u8], h: &U256, s: &Point, ) -> Sm9Result<()>
Trait Implementations§
Source§impl Clone for Sm9SignMasterKey
impl Clone for Sm9SignMasterKey
Source§fn clone(&self) -> Sm9SignMasterKey
fn clone(&self) -> Sm9SignMasterKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Sm9SignMasterKey
impl Debug for Sm9SignMasterKey
impl Copy for Sm9SignMasterKey
Auto Trait Implementations§
impl Freeze for Sm9SignMasterKey
impl RefUnwindSafe for Sm9SignMasterKey
impl Send for Sm9SignMasterKey
impl Sync for Sm9SignMasterKey
impl Unpin for Sm9SignMasterKey
impl UnwindSafe for Sm9SignMasterKey
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