pub enum SigningOptions {
Schnorr {
rng: Rc<RefCell<dyn RandomNumberGenerator>>,
},
Ssh {
namespace: String,
hash_alg: HashAlg,
},
}Expand description
Options for signing a message.
- ECDSA signing requires no options.
- Schnorr signing may take
Nonefor options, or a tag and RNG. - SSH signing requires a namespace and hash algorithm.
Variants§
Trait Implementations§
Source§impl Clone for SigningOptions
impl Clone for SigningOptions
Source§fn clone(&self) -> SigningOptions
fn clone(&self) -> SigningOptions
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for SigningOptions
impl !RefUnwindSafe for SigningOptions
impl !Send for SigningOptions
impl !Sync for SigningOptions
impl Unpin for SigningOptions
impl !UnwindSafe for SigningOptions
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