projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update BOLT4 onion test vectors
[rust-lightning]
/
lightning-invoice
/
src
/
ser.rs
diff --git
a/lightning-invoice/src/ser.rs
b/lightning-invoice/src/ser.rs
index f921a5b0f6959a832c0eea01c915635ba1820859..0bb1715e728c5ac53f50fb978f32e9105c5faa4d 100644
(file)
--- a/
lightning-invoice/src/ser.rs
+++ b/
lightning-invoice/src/ser.rs
@@
-469,7
+469,7
@@
mod test {
#[test]
fn test_currency_code() {
#[test]
fn test_currency_code() {
- use Currency;
+ use
crate::
Currency;
assert_eq!("bc", Currency::Bitcoin.to_string());
assert_eq!("tb", Currency::BitcoinTestnet.to_string());
assert_eq!("bc", Currency::Bitcoin.to_string());
assert_eq!("tb", Currency::BitcoinTestnet.to_string());
@@
-480,7
+480,7
@@
mod test {
#[test]
fn test_raw_hrp() {
#[test]
fn test_raw_hrp() {
- use ::{Currency, RawHrp, SiPrefix};
+ use
crate
::{Currency, RawHrp, SiPrefix};
let hrp = RawHrp {
currency: Currency::Bitcoin,
let hrp = RawHrp {
currency: Currency::Bitcoin,
@@
-493,7
+493,7
@@
mod test {
#[test]
fn test_encode_int_be_base32() {
#[test]
fn test_encode_int_be_base32() {
- use ser::encode_int_be_base32;
+ use
crate::
ser::encode_int_be_base32;
let input: u64 = 33764;
let expected_out = CheckBase32::check_base32(&[1, 0, 31, 4]).unwrap();
let input: u64 = 33764;
let expected_out = CheckBase32::check_base32(&[1, 0, 31, 4]).unwrap();
@@
-503,7
+503,7
@@
mod test {
#[test]
fn test_encode_int_be_base256() {
#[test]
fn test_encode_int_be_base256() {
- use ser::encode_int_be_base256;
+ use
crate::
ser::encode_int_be_base256;
let input: u64 = 16842530;
let expected_out = vec![1, 0, 255, 34];
let input: u64 = 16842530;
let expected_out = vec![1, 0, 255, 34];