Enum ledger_mob_core::engine::Event
source · pub enum Event {
Show 23 variants
None,
GetWalletKeys {
account_index: u32,
},
GetSubaddressKeys {
account_index: u32,
subaddress_index: u64,
},
GetKeyImage {
account_index: u32,
subaddress_index: u64,
txout_public_key: TxOutPublic,
},
GetRandom,
IdentSign {
ident_index: u32,
ident_uri: String<32>,
challenge: Vec<u8, 64>,
},
IdentGet,
TxInit {
account_index: u32,
num_rings: u8,
},
TxSignMemo {
subaddress_index: u64,
tx_public_key: TxOutPublic,
receiver_view_public: SubaddressViewPublic,
kind: [u8; 2],
payload: [u8; 48],
},
TxSetMessage(Vec<u8, 64>),
TxSummaryInit {
message: [u8; 32],
block_version: u32,
num_outputs: u32,
num_inputs: u32,
},
TxSummaryAddOutput {
masked_amount: Option<MaskedAmount>,
target_key: CompressedRistrettoPublic,
public_key: CompressedRistrettoPublic,
associated_to_input_rules: bool,
},
TxSummaryAddOutputUnblinding {
unmasked_amount: UnmaskedAmount,
address: Option<PublicSubaddress>,
fog_info: Option<(FogId, [u8; 64])>,
tx_private_key: Option<TxPrivateKey>,
},
TxSummaryAddInput {
pseudo_output_commitment: CompressedCommitment,
input_rules_digest: Option<[u8; 32]>,
unmasked_amount: UnmaskedAmount,
},
TxSummaryBuild {
fee: Amount,
tombstone_block: u64,
},
TxRingInit {
ring_size: u8,
real_index: u8,
subaddress_index: u64,
value: u64,
token_id: u64,
onetime_private_key: Option<TxOnetimeKey>,
},
TxSetBlinding {
blinding: Scalar,
output_blinding: Scalar,
},
TxAddTxout(u8, ReducedTxOut),
TxSign,
TxGetKeyImage,
TxGetResponse {
index: u8,
},
TxComplete,
TxGetInfo,
}
Variants§
None
GetWalletKeys
Fetch wallet keys
GetSubaddressKeys
Fetch subaddress keys
GetKeyImage
Fetch key image
GetRandom
Fetch random value via RNG
IdentSign
Request BIP-0017 derived ed25519 identity
IdentGet
Fetch signed identity
TxInit
Initialise transaction
TxSignMemo
Sign transaction memos
TxSetMessage(Vec<u8, 64>)
Set transaction message
TxSummaryInit
Set transaction summary (replaces TxSetMessage where streaming verification is supported)
TxSummaryAddOutput
Add output to TxSummary
TxSummaryAddOutputUnblinding
Add output unblinding to TxSummary
TxSummaryAddInput
Add input to TxSummary
TxSummaryBuild
Build complete TxSummary
TxRingInit
Fields
§
onetime_private_key: Option<TxOnetimeKey>
Initialise ring signing
TxSetBlinding
TxAddTxout(u8, ReducedTxOut)
Add TxOut to ring
TxSign
Sign ring
TxGetKeyImage
Fetch key image
TxGetResponse
Fetch responses
TxComplete
Complete transaction
TxGetInfo
Fetch TX info / state
Implementations§
Trait Implementations§
source§impl From<IdentGetReq> for Event
impl From<IdentGetReq> for Event
source§fn from(_i: IdentGetReq) -> Self
fn from(_i: IdentGetReq) -> Self
Converts to this type from the input type.
source§impl<'a> From<IdentSignReq<'a>> for Event
impl<'a> From<IdentSignReq<'a>> for Event
source§fn from(i: IdentSignReq<'a>) -> Self
fn from(i: IdentSignReq<'a>) -> Self
Converts to this type from the input type.
source§impl From<KeyImageReq> for Event
impl From<KeyImageReq> for Event
source§fn from(a: KeyImageReq) -> Self
fn from(a: KeyImageReq) -> Self
Converts to this type from the input type.
source§impl From<SubaddressKeyReq> for Event
impl From<SubaddressKeyReq> for Event
source§fn from(a: SubaddressKeyReq) -> Self
fn from(a: SubaddressKeyReq) -> Self
Converts to this type from the input type.
source§impl From<TxAddTxOut> for Event
impl From<TxAddTxOut> for Event
source§fn from(a: TxAddTxOut) -> Self
fn from(a: TxAddTxOut) -> Self
Converts to this type from the input type.
source§impl From<TxComplete> for Event
impl From<TxComplete> for Event
source§fn from(_: TxComplete) -> Self
fn from(_: TxComplete) -> Self
Converts to this type from the input type.
source§impl From<TxGetKeyImage> for Event
impl From<TxGetKeyImage> for Event
source§fn from(_: TxGetKeyImage) -> Self
fn from(_: TxGetKeyImage) -> Self
Converts to this type from the input type.
source§impl From<TxGetResponse> for Event
impl From<TxGetResponse> for Event
source§fn from(a: TxGetResponse) -> Self
fn from(a: TxGetResponse) -> Self
Converts to this type from the input type.
source§impl From<TxMemoSign> for Event
impl From<TxMemoSign> for Event
source§fn from(a: TxMemoSign) -> Self
fn from(a: TxMemoSign) -> Self
Converts to this type from the input type.
source§impl From<TxRingInit> for Event
impl From<TxRingInit> for Event
source§fn from(a: TxRingInit) -> Self
fn from(a: TxRingInit) -> Self
Converts to this type from the input type.
source§impl From<TxRingSign> for Event
impl From<TxRingSign> for Event
source§fn from(_: TxRingSign) -> Self
fn from(_: TxRingSign) -> Self
Converts to this type from the input type.
source§impl From<TxSetBlinding> for Event
impl From<TxSetBlinding> for Event
source§fn from(a: TxSetBlinding) -> Self
fn from(a: TxSetBlinding) -> Self
Converts to this type from the input type.
source§impl<'a> From<TxSetMessage<'a>> for Event
impl<'a> From<TxSetMessage<'a>> for Event
source§fn from(a: TxSetMessage<'a>) -> Self
fn from(a: TxSetMessage<'a>) -> Self
Converts to this type from the input type.
source§impl From<TxSummaryAddTxIn> for Event
impl From<TxSummaryAddTxIn> for Event
source§fn from(a: TxSummaryAddTxIn) -> Self
fn from(a: TxSummaryAddTxIn) -> Self
Converts to this type from the input type.
source§impl From<TxSummaryAddTxOut> for Event
impl From<TxSummaryAddTxOut> for Event
source§fn from(a: TxSummaryAddTxOut) -> Self
fn from(a: TxSummaryAddTxOut) -> Self
Converts to this type from the input type.
source§impl From<TxSummaryAddTxOutUnblinding> for Event
impl From<TxSummaryAddTxOutUnblinding> for Event
source§fn from(a: TxSummaryAddTxOutUnblinding) -> Self
fn from(a: TxSummaryAddTxOutUnblinding) -> Self
Converts to this type from the input type.
source§impl From<TxSummaryBuild> for Event
impl From<TxSummaryBuild> for Event
source§fn from(a: TxSummaryBuild) -> Self
fn from(a: TxSummaryBuild) -> Self
Converts to this type from the input type.
source§impl From<TxSummaryInit> for Event
impl From<TxSummaryInit> for Event
source§fn from(a: TxSummaryInit) -> Self
fn from(a: TxSummaryInit) -> Self
Converts to this type from the input type.
source§impl From<WalletKeyReq> for Event
impl From<WalletKeyReq> for Event
source§fn from(a: WalletKeyReq) -> Self
fn from(a: WalletKeyReq) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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