projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Steal rust-crypto's ChaCha20 implementation wholesale
[rust-lightning]
/
src
/
ln
/
msgs.rs
diff --git
a/src/ln/msgs.rs
b/src/ln/msgs.rs
index 354376649c7b69ed79304ff51e872fb6d68d88df..4cff6256f83f9176460d80f23044d93036114b7a 100644
(file)
--- a/
src/ln/msgs.rs
+++ b/
src/ln/msgs.rs
@@
-29,6
+29,8
@@
use std::result::Result;
use util::{byte_utils, events};
use util::ser::{Readable, Writeable, Writer};
use util::{byte_utils, events};
use util::ser::{Readable, Writeable, Writer};
+use ln::channelmanager::{PaymentPreimage, PaymentHash};
+
/// An error in decoding a message or struct.
#[derive(Debug)]
pub enum DecodeError {
/// An error in decoding a message or struct.
#[derive(Debug)]
pub enum DecodeError {
@@
-256,7
+258,7
@@
pub struct UpdateAddHTLC {
pub(crate) channel_id: [u8; 32],
pub(crate) htlc_id: u64,
pub(crate) amount_msat: u64,
pub(crate) channel_id: [u8; 32],
pub(crate) htlc_id: u64,
pub(crate) amount_msat: u64,
- pub(crate) payment_hash:
[u8; 32]
,
+ pub(crate) payment_hash:
PaymentHash
,
pub(crate) cltv_expiry: u32,
pub(crate) onion_routing_packet: OnionPacket,
}
pub(crate) cltv_expiry: u32,
pub(crate) onion_routing_packet: OnionPacket,
}
@@
-266,7
+268,7
@@
pub struct UpdateAddHTLC {
pub struct UpdateFulfillHTLC {
pub(crate) channel_id: [u8; 32],
pub(crate) htlc_id: u64,
pub struct UpdateFulfillHTLC {
pub(crate) channel_id: [u8; 32],
pub(crate) htlc_id: u64,
- pub(crate) payment_preimage:
[u8; 32]
,
+ pub(crate) payment_preimage:
PaymentPreimage
,
}
/// An update_fail_htlc message to be sent or received from a peer
}
/// An update_fail_htlc message to be sent or received from a peer