Enum bc_components::SigningOptions
source · pub enum SigningOptions {
Schnorr {
tag: Vec<u8>,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)