pub struct ConvertParams<'a> {
pub account: &'a str,
pub issuance_id_hex: &'a str,
pub sequence: u32,
pub amount: u64,
pub issuer_pubkey: &'a Pubkey,
pub holder_privkey: &'a Privkey,
pub holder_pubkey: &'a Pubkey,
pub auditor_pubkey: Option<&'a Pubkey>,
pub register_key: bool,
}Expand description
Inputs for assemble_convert.
Fields§
§account: &'a strThe converting holder’s classic address.
issuance_id_hex: &'a str48-char hex MPTokenIssuanceID.
sequence: u32The account Sequence this transaction will be submitted with.
amount: u64Public amount to convert into confidential form.
issuer_pubkey: &'a PubkeyThe issuer’s ElGamal public key (for the issuer mirror ciphertext).
holder_privkey: &'a PrivkeyThe holder’s ElGamal keypair.
holder_pubkey: &'a Pubkey§auditor_pubkey: Option<&'a Pubkey>The optional auditor’s ElGamal public key. Required iff the issuance has
an AuditorEncryptionKey registered.
register_key: booltrue for the first convert (registers the holder key + Schnorr PoK);
false for subsequent converts (rippled returns tecDUPLICATE if the
key is re-registered).
Auto Trait Implementations§
impl<'a> Freeze for ConvertParams<'a>
impl<'a> RefUnwindSafe for ConvertParams<'a>
impl<'a> Send for ConvertParams<'a>
impl<'a> Sync for ConvertParams<'a>
impl<'a> Unpin for ConvertParams<'a>
impl<'a> UnsafeUnpin for ConvertParams<'a>
impl<'a> UnwindSafe for ConvertParams<'a>
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