pub struct SchnorrKeypair {
pub public: RistrettoPoint,
/* private fields */
}Fields§
§public: RistrettoPointImplementations§
Source§impl SchnorrKeypair
impl SchnorrKeypair
pub fn generate() -> Self
pub fn from_scalar_bytes(bytes: [u8; 32]) -> Option<Self>
pub fn public_bytes(&self) -> [u8; 32]
Sourcepub fn prove(&self, msg: &[u8]) -> SchnorrProof
pub fn prove(&self, msg: &[u8]) -> SchnorrProof
Create a proof of knowledge of the secret key, bound to msg.
Auto Trait Implementations§
impl Freeze for SchnorrKeypair
impl RefUnwindSafe for SchnorrKeypair
impl Send for SchnorrKeypair
impl Sync for SchnorrKeypair
impl Unpin for SchnorrKeypair
impl UnsafeUnpin for SchnorrKeypair
impl UnwindSafe for SchnorrKeypair
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