Expand description
A set of helper functions for dealing with share- and percentage-fee-based recipients, as described in Podcasting 2.0 spec.
Check out docs.rs for the available functions.
Modules§
- Alby-specific types and functions.
- Podcasting-related helpers.
Enums§
- Represents a share- or percentage-based recipient.
- Represents an error when converting a list of share- or percentage-based recipients into a list of share-like splits.
Traits§
- Trait for types that have a split.
Functions§
- Distributes satoshis (sats) to a list of recipients based on their splits.
- Similar to compute_sat_recipients but allows to use it with any type that uses splits.
- Converts a list of generic recipients into a list of share-like splits.
- Similar to fee_recipients_to_splits but allows to use it with any type that uses splits and implements
Into<crate::GenericRecipient>. - Scales the splits such that
remote_splitswould constituteremote_percentageof the total, andlocal_splitswould constitute the rest. - Similar to use_remote_splits but allows to use it with any type that uses splits.