PaymentPrivacy class
How a payment hides which of its outputs is the payer's change and
which coins funded it (bead libspiffy-o7a4). Off unless a caller asks:
PayInvoiceCommand(privacy: null) builds the payment as before.
Every random choice it makes (the order coins are tried in, how many change parts, their amounts) is drawn from a generator seeded with the invoice id, so paying the same invoice again over the same coins signs the same transaction (bead libspiffy-4r0).
Constructors
- PaymentPrivacy({int maxChangeParts = 1, bool randomChangeParts = false, int minChangePartSats = 1000, bool spreadInputs = false, int maxInputs = 6})
-
const
-
PaymentPrivacy.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxChangeParts → int
-
Change is paid as up to this many outputs, each to its own fresh change
address, with Benford-distributed amounts. 1 pays one change output.
final
- maxInputs → int
-
The most inputs a spread selection takes. Coins spent together show
they have one owner, so this bounds how many it links.
final
- minChangePartSats → int
-
No change part is smaller than this; less change makes fewer parts.
final
- randomChangeParts → bool
-
Draw the number of change parts from 2 to maxChangeParts for each
payment, rather than always maxChangeParts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadInputs → bool
-
Fund the payment from coins smaller than it, coins of one parent
transaction together (already linked to each other on chain), rather
than from the largest coins. When they cannot pay within maxInputs,
the largest of the smaller coins are tried within it, then the smallest
single coin that pays, so its change is as small as it can be; only
then the largest coins (bead libspiffy-5hnt).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited