Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Commitments.SpendableBalance HTLC-aware #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

canndrew
Copy link
Member

This builds off of #2.

Make Commitments.SpendableBalance consider HTLC fees when calculating the maximum payment size.

With this commit the BouncyCastle build is uploaded as
DotNetLightning.Kiss and the native build is not uploaded.
Commitments.SpendableBalance now takes into account HTLC fees when
calculating the maximum payment size.
knocte pushed a commit that referenced this pull request Jun 14, 2020
Add the UInt48, RevocationKey, CommitmentPubKey, CommitmentSeed and
RevocationSet types.

A RevocationKey is a secret key that can be used to revoke a
transaction. It's shared in the revoke_and_ack message and stored in the
user's wallet in a RevocationSet. A CommitmentPubKey is the public key
of a RevocationKey, also known as a "per commitment point". A
CommitmentSeed is the master revocation key for a side of a channel and
can be used to derive all the revocation keys for that side of that
channel.

A RevocationSet stores a set of revocation keys in a compact form
specified in BOLT #3 which allows earlier keys to be derived from later
keys.
@knocte knocte force-pushed the master branch 2 times, most recently from 6a284cb to 407936a Compare June 14, 2020 10:52
@knocte knocte force-pushed the master branch 2 times, most recently from a1e8ff2 to 205ccbc Compare June 25, 2020 08:14
@knocte knocte force-pushed the master branch 6 times, most recently from 135c9bb to 02564ea Compare October 21, 2020 17:03
knocte pushed a commit that referenced this pull request Nov 6, 2020
Rather than using a PubKey to represent a per-commitment-point, use the
type that's specifically for this.
@knocte knocte force-pushed the master branch 5 times, most recently from 1aaef3e to 4d462bd Compare November 13, 2020 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant