pub struct MintKeySet {
pub id: Id,
pub unit: CurrencyUnit,
pub keys: MintKeys,
pub final_expiry: Option<u64>,
}
Expand description
MintKeyset
Fields§
§id: Id
Keyset Id
unit: CurrencyUnit
Keyset CurrencyUnit
keys: MintKeys
Keyset MintKeys
final_expiry: Option<u64>
Expiry Option<u64>
Implementations§
Source§impl MintKeySet
impl MintKeySet
Sourcepub fn generate<C>(
secp: &Secp256k1<C>,
xpriv: Xpriv,
unit: CurrencyUnit,
max_order: u8,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
pub fn generate<C>(
secp: &Secp256k1<C>,
xpriv: Xpriv,
unit: CurrencyUnit,
max_order: u8,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
Generate new MintKeySet
Sourcepub fn generate_from_seed<C>(
secp: &Secp256k1<C>,
seed: &[u8],
max_order: u8,
currency_unit: CurrencyUnit,
derivation_path: DerivationPath,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
pub fn generate_from_seed<C>(
secp: &Secp256k1<C>,
seed: &[u8],
max_order: u8,
currency_unit: CurrencyUnit,
derivation_path: DerivationPath,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
Generate new MintKeySet
from seed
Sourcepub fn generate_from_xpriv<C>(
secp: &Secp256k1<C>,
xpriv: Xpriv,
max_order: u8,
currency_unit: CurrencyUnit,
derivation_path: DerivationPath,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
pub fn generate_from_xpriv<C>(
secp: &Secp256k1<C>,
xpriv: Xpriv,
max_order: u8,
currency_unit: CurrencyUnit,
derivation_path: DerivationPath,
final_expiry: Option<u64>,
version: KeySetVersion,
) -> MintKeySetwhere
C: Signing,
Generate new MintKeySet
from xpriv
Trait Implementations§
Source§impl Clone for MintKeySet
impl Clone for MintKeySet
Source§fn clone(&self) -> MintKeySet
fn clone(&self) -> MintKeySet
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MintKeySet
impl Debug for MintKeySet
Source§impl<'de> Deserialize<'de> for MintKeySet
impl<'de> Deserialize<'de> for MintKeySet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintKeySet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintKeySet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MintKeySet> for Id
impl From<MintKeySet> for Id
Source§fn from(keyset: MintKeySet) -> Id
fn from(keyset: MintKeySet) -> Id
Converts to this type from the input type.
Source§impl From<MintKeySet> for KeySet
impl From<MintKeySet> for KeySet
Source§fn from(keyset: MintKeySet) -> KeySet
fn from(keyset: MintKeySet) -> KeySet
Converts to this type from the input type.
Source§impl PartialEq for MintKeySet
impl PartialEq for MintKeySet
Source§impl Serialize for MintKeySet
impl Serialize for MintKeySet
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MintKeySet
impl StructuralPartialEq for MintKeySet
Auto Trait Implementations§
impl Freeze for MintKeySet
impl RefUnwindSafe for MintKeySet
impl Send for MintKeySet
impl Sync for MintKeySet
impl Unpin for MintKeySet
impl UnwindSafe for MintKeySet
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