Struct ex3_payload_decoder::PayloadDecoder
source · pub struct PayloadDecoder;Implementations§
source§impl PayloadDecoder
impl PayloadDecoder
sourcepub fn decode_to_wallet_identifier(
payload: &ByteBuf
) -> Result<WalletIdentifier>
pub fn decode_to_wallet_identifier( payload: &ByteBuf ) -> Result<WalletIdentifier>
Decode the payload to a wallet identifier
The payload should be in the following format:
{chain}|{network}|{pub_key}
where chain, network and pub_key are hex encoded
Used for the following transactions:
- [TransactionType::WalletRegistration]
sourcepub fn decode_to_deposit(payload: &ByteBuf) -> Result<Deposit>
pub fn decode_to_deposit(payload: &ByteBuf) -> Result<Deposit>
Decode the payload to a deposit
sourcepub fn decode_to_wallet_register_request(
payload: &ByteBuf
) -> Result<WalletRegisterRequest>
pub fn decode_to_wallet_register_request( payload: &ByteBuf ) -> Result<WalletRegisterRequest>
Decode the payload to wallet register request
The payload should be in the following format:
{chain}|{network}|{pub_key}
sourcepub fn decode_to_reset_main_secret_request(
payload: &ByteBuf
) -> Result<ResetMainSecretRequest>
pub fn decode_to_reset_main_secret_request( payload: &ByteBuf ) -> Result<ResetMainSecretRequest>
Decode the payload to reset main secret request
The payload should be in the following format:
{data.encrypted_pri_key}|{data.l2_pub_key}
Auto Trait Implementations§
impl RefUnwindSafe for PayloadDecoder
impl Send for PayloadDecoder
impl Sync for PayloadDecoder
impl Unpin for PayloadDecoder
impl UnwindSafe for PayloadDecoder
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