lightningdevkit / ldk-sample

Sample node implementation using LDK
Apache License 2.0
166 stars 94 forks source link

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

Open Psycho-Pirate opened 1 year ago

Psycho-Pirate commented 1 year ago

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

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