forked from joemphilips/DotNetLightning
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add and switch to new types for revocation #6
Open
canndrew
wants to merge
4
commits into
nblockchain:master
Choose a base branch
from
canndrew:nblockchain-master-with-revocation-changes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add and switch to new types for revocation #6
canndrew
wants to merge
4
commits into
nblockchain:master
from
canndrew:nblockchain-master-with-revocation-changes
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canndrew
force-pushed
the
nblockchain-master-with-revocation-changes
branch
from
June 29, 2020 12:31
21d7dca
to
c15a629
Compare
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 joemphilips#3 which allows earlier keys to be derived from later keys.
canndrew
force-pushed
the
nblockchain-master-with-revocation-changes
branch
from
June 29, 2020 12:37
c15a629
to
67aeb07
Compare
Allows converting a RevocationSet to/from a list of keys. This allows serializing/deserializing the set.
makeChannelReestablish was using hard-coded commitment numbers and keys rather than the info in the Commitments object that it gets passed. This fix makes it use the values in the Commitments object instead.
canndrew
force-pushed
the
nblockchain-master-with-revocation-changes
branch
from
July 3, 2020 03:59
67aeb07
to
df51210
Compare
knocte
force-pushed
the
master
branch
6 times, most recently
from
October 21, 2020 17:03
135c9bb
to
02564ea
Compare
knocte
force-pushed
the
master
branch
3 times, most recently
from
November 6, 2020 05:16
dd99cda
to
08262fb
Compare
knocte
force-pushed
the
master
branch
10 times, most recently
from
November 13, 2020 06:30
5025ca9
to
ef4cc4f
Compare
knocte
force-pushed
the
master
branch
3 times, most recently
from
April 2, 2021 09:52
f9839d5
to
6281acc
Compare
knocte
force-pushed
the
master
branch
3 times, most recently
from
June 17, 2021 09:03
9f9f73e
to
2883c78
Compare
canndrew
force-pushed
the
master
branch
4 times, most recently
from
June 18, 2021 07:38
f817da9
to
0340b0b
Compare
knocte
force-pushed
the
master
branch
3 times, most recently
from
June 22, 2021 13:06
0389f6a
to
60d2401
Compare
knocte
force-pushed
the
master
branch
4 times, most recently
from
November 17, 2021 06:50
419cd8d
to
f0461b4
Compare
knocte
force-pushed
the
master
branch
4 times, most recently
from
December 2, 2021 21:08
37fe5af
to
1f418fe
Compare
knocte
force-pushed
the
master
branch
5 times, most recently
from
August 23, 2022 04:36
bd34034
to
b67e13f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.