Crate pallet_mixer[][src]

Mixer Pallet

The Mixer pallet provides functionality for doing deposits and withdrawals from the mixer.

Overview

The Mixer pallet provides functions for:

  • Depositing some currency into the mixer.
  • Withdrawing the deposit from the mixer.
  • Stopping mixer operations.
  • Transfering the admin of the mixer.

Terminology

  • Mixer: Cryptocurrency tumbler or mixer is a service offered to mix potentially identifiable or ‘tainted’ cryptocurrency funds with others, so as to obscure the trail back to the fund’s source.

Interface

Dispatchable Functions

  • deposit - Deposit a fixed amount of cryptocurrency into the mixer.
  • withdraw - Provide a zero-knowladge proof of the deposit and withdraw from the mixer.
  • set_stopped - Stops the operation of all mixers.
  • transfer_admin - Transfers the admin role from sender to specified account.

Re-exports

pub use pallet::*;

Modules

pallet

Implementation of Mixer pallet

weights

Autogenerated weights for pallet_mixer

Structs

MixerInfo

Info about the mixer and it’s leaf data

WithdrawProof

Proof data for withdrawal

Type Definitions

BalanceOf

Type alias for the orml_traits::MultiCurrency::Balance type

CurrencyIdOf

Type alias for the orml_traits::MultiCurrency::CurrencyId type