pub struct ScalarSigningKey { /* private fields */ }Expand description
An owned scalar-native signing key. Its public point is derived directly from the scalar; seed hashing, pruning, and clamping are never invoked.
Implementations§
Source§impl ScalarSigningKey
impl ScalarSigningKey
pub fn from_secret(secret: BabyJubSecretScalar) -> Self
pub fn from_decimal(value: &str) -> Result<Self, ScalarSignatureError>
pub fn from_le_bytes(bytes: [u8; 32]) -> Result<Self, ScalarSignatureError>
pub fn verifying_key(&self) -> &BabyJubPoint
pub fn sign_curvy_v1( &self, message: Bn254Fr, ) -> Result<ScalarSignature, ScalarSignatureError>
Trait Implementations§
Source§impl NoteSigner for ScalarSigningKey
impl NoteSigner for ScalarSigningKey
Auto Trait Implementations§
impl Freeze for ScalarSigningKey
impl RefUnwindSafe for ScalarSigningKey
impl Send for ScalarSigningKey
impl Sync for ScalarSigningKey
impl Unpin for ScalarSigningKey
impl UnsafeUnpin for ScalarSigningKey
impl UnwindSafe for ScalarSigningKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more