pub struct ProofKey { /* private fields */ }Expand description
ProofKey model
Implementations§
Source§impl ProofKey
impl ProofKey
Sourcepub fn new(key: &SecretKey) -> Self
pub fn new(key: &SecretKey) -> Self
Create new instance of proof key
§Examples
use xal::ProofKey;
use p256::SecretKey;
let secret_key = SecretKey::random(&mut rand::thread_rng());
let proof_key = ProofKey::new(&secret_key);
let serialized = serde_json::to_string(&proof_key).unwrap();
println!("{serialized}");Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProofKey
impl<'de> Deserialize<'de> for ProofKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ProofKey
Auto Trait Implementations§
impl Freeze for ProofKey
impl RefUnwindSafe for ProofKey
impl Send for ProofKey
impl Sync for ProofKey
impl Unpin for ProofKey
impl UnwindSafe for ProofKey
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