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

keys manager implementation for using custom channel secrets and private key #122

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Psycho-Pirate
Copy link

@Psycho-Pirate Psycho-Pirate commented Oct 3, 2023

This pull request contains the implementation I made for my summer of bitcoin project "Integrating LDK with Lnprototest".
This includes:

  • keysmanager implementation for using custom private key and channel secrets which can be passed as command line arguments.
  • Various implementations of private methods and structs required for implementing keysmanager
  • openchannel_without_peer_addr for opening a channel with a peer whose already connected(required for lnprototest integration)

Example usage:
cargo run polaruser:polarpass@127.0.0.1:18443 ./ 8889 regtest 0000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000000000000000000000000000000000000010/0000000000000000000000000000000000000000000000000000000000000011/0000000000000000000000000000000000000000000000000000000000000012/0000000000000000000000000000000000000000000000000000000000000013/0000000000000000000000000000000000000000000000000000000000000014/FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Here:
private key = 0000000000000000000000000000000000000000000000000000000000000001
funding_key = 0000000000000000000000000000000000000000000000000000000000000010
revocation_base_key = 0000000000000000000000000000000000000000000000000000000000000011
payment_key = 0000000000000000000000000000000000000000000000000000000000000012
delayed_payment_base_key = 0000000000000000000000000000000000000000000000000000000000000013
htlc_base_key = 0000000000000000000000000000000000000000000000000000000000000014
commitment_seed = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant