Skip to content

Commit 79d0ada

Browse files
committed
Merge branch 'master' into philip-lightningdevkit#129-bolt4-packet-forwarding-tests
# Conflicts: # src/ln/channelmanager.rs
2 parents ac9f152 + dae97a4 commit 79d0ada

9 files changed

+1109
-442
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightning"
3-
version = "0.0.6"
3+
version = "0.0.7"
44
authors = ["Matt Corallo"]
55
license = "Apache-2.0"
66
repository = "https://github.com/rust-bitcoin/rust-lightning/"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Rust-Lightning, not Rusty's Lightning!
22

3-
Currently somewhere near 10% towards usable, published to see if there is any
3+
Currently somewhere near 15% towards usable, published to see if there is any
44
real interest from folks in using a lightning rust library.
55

66
The goal is to provide a full-featured but also incredibly flexible lightning

fuzz/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ cc = "1.0"
3131
[workspace]
3232
members = ["."]
3333

34+
[profile.release]
35+
lto = true
36+
codegen-units = 1
37+
3438
[[bin]]
3539
name = "peer_crypt_target"
3640
path = "fuzz_targets/peer_crypt_target.rs"

src/chain/keysinterface.rs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,34 @@ pub enum SpendableOutputDescriptor {
3737
/// The output which is referenced by the given outpoint
3838
output: TxOut,
3939
},
40-
/// Outpoint commits to a P2WSH, should be spend by the following witness :
40+
/// Outpoint commits to a P2WSH
41+
/// P2WSH should be spend by the following witness :
4142
/// <local_delayedsig> 0 <witnessScript>
4243
/// With input nSequence set to_self_delay.
43-
/// Outputs from a HTLC-Success/Timeout tx
44-
DynamicOutput {
44+
/// Outputs from a HTLC-Success/Timeout tx/commitment tx
45+
DynamicOutputP2WSH {
4546
/// Outpoint spendable by user wallet
4647
outpoint: OutPoint,
47-
/// local_delayedkey = delayed_payment_basepoint_secret + SHA256(per_commitment_point || delayed_payment_basepoint)
48-
local_delayedkey: SecretKey,
49-
/// witness redeemScript encumbering output
48+
/// local_delayedkey = delayed_payment_basepoint_secret + SHA256(per_commitment_point || delayed_payment_basepoint) OR
49+
key: SecretKey,
50+
/// witness redeemScript encumbering output.
5051
witness_script: Script,
5152
/// nSequence input must commit to self_delay to satisfy script's OP_CSV
5253
to_self_delay: u16,
54+
/// The output which is referenced by the given outpoint
55+
output: TxOut,
56+
},
57+
/// Outpoint commits to a P2WPKH
58+
/// P2WPKH should be spend by the following witness :
59+
/// <local_sig> <local_pubkey>
60+
/// Outputs to_remote from a commitment tx
61+
DynamicOutputP2WPKH {
62+
/// Outpoint spendable by user wallet
63+
outpoint: OutPoint,
64+
/// localkey = payment_basepoint_secret + SHA256(per_commitment_point || payment_basepoint
65+
key: SecretKey,
66+
/// The output which is reference by the given outpoint
67+
output: TxOut,
5368
}
5469
}
5570

src/ln/channel.rs

Lines changed: 120 additions & 89 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)