Module bee_message::output [−][src]
Expand description
A module that provides types and syntactic validations of outputs.
Structs
The identifier of an Output
.
A SignatureLockedDustAllowanceOutput
functions like a SignatureLockedSingleOutput
but as a special property it
is used to increase the allowance/amount of dust outputs on a given address.
An output type which can be unlocked via a signature. It deposits onto one single address.
TreasuryOutput
is an output which holds the treasury of a network.
Enums
A generic output that can represent different types defining the deposit of funds.
Constants
Divisor used to compute the allowed dust outputs on an address.
Maximum number of dust outputs for an address.
Amount of tokens below which an output is considered a dust output.
The length of an OutputId
.
Valid amounts for a signature locked dust allowance output.
Valid amounts for a signature locked single output.
The allowed range of the amount of a TreasuryOutput
.
Functions
The maximum number of allowed dust outputs on an address is dust_allowance_sum
divided by DUST_ALLOWANCE_DIVISOR
and rounded down, i.e. 10 outputs for each 1 Mi deposited. dust_allowance_sum
is the sum of all the amounts of all
unspent SigLockedDustAllowanceOutputs
on this address. Regardless of dust_allowance_sum
, the number of dust
outputs must never exceed DUST_OUTPUTS_MAX
per address.