package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev

# Functions

DeriveChild computes the child preimage and child hash for a given (root, share, index) tuple.
NewSeedSharer generates a new SeedSharer instance with a seed drawn at random.
NewShardTracker creates a new shard tracker to use for AMP payments.
ReconstructChildren derives the set of children hashes and preimages from the provided descriptors.
SeedSharerFromRoot instantiates a SeedSharer with an externally provided seed.

# Structs

Child is a payment hash and preimage pair derived from the root seed.
ChildDesc contains the information necessary to derive a child hash/preimage pair that is attached to a particular HTLC.
SeedSharer orchestrates the sharing of the root AMP seed along multiple paths.
Shard is an implementation of the shards.PaymentShards interface specific to AMP payments.
ShardTracker is an implementation of the shards.ShardTracker interface that is able to generate payment shards according to the AMP splitting algorithm.

# Interfaces

Sharer facilitates dynamic splitting of a root share value and derivation of child preimage and hashes for individual HTLCs in an AMP payment.

# Type aliases

Share represents an n-of-n sharing of a secret 32-byte value.