@@ -1462,7 +1462,7 @@ mod tests {
1462
1462
let secp_ctx = Secp256k1 :: new ( ) ;
1463
1463
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
1464
1464
1465
- let blinded_path = BlindedMessagePath :: from_raw (
1465
+ let blinded_path = BlindedMessagePath :: from_blinded_path (
1466
1466
pubkey ( 40 ) ,
1467
1467
pubkey ( 41 ) ,
1468
1468
vec ! [
@@ -1643,15 +1643,15 @@ mod tests {
1643
1643
#[ test]
1644
1644
fn builds_offer_with_paths ( ) {
1645
1645
let paths = vec ! [
1646
- BlindedMessagePath :: from_raw (
1646
+ BlindedMessagePath :: from_blinded_path (
1647
1647
pubkey( 40 ) ,
1648
1648
pubkey( 41 ) ,
1649
1649
vec![
1650
1650
BlindedHop { blinded_node_id: pubkey( 43 ) , encrypted_payload: vec![ 0 ; 43 ] } ,
1651
1651
BlindedHop { blinded_node_id: pubkey( 44 ) , encrypted_payload: vec![ 0 ; 44 ] } ,
1652
1652
] ,
1653
1653
) ,
1654
- BlindedMessagePath :: from_raw (
1654
+ BlindedMessagePath :: from_blinded_path (
1655
1655
pubkey( 40 ) ,
1656
1656
pubkey( 41 ) ,
1657
1657
vec![
@@ -1856,15 +1856,15 @@ mod tests {
1856
1856
#[ test]
1857
1857
fn parses_offer_with_paths ( ) {
1858
1858
let offer = OfferBuilder :: new ( pubkey ( 42 ) )
1859
- . path ( BlindedMessagePath :: from_raw (
1859
+ . path ( BlindedMessagePath :: from_blinded_path (
1860
1860
pubkey ( 40 ) ,
1861
1861
pubkey ( 41 ) ,
1862
1862
vec ! [
1863
1863
BlindedHop { blinded_node_id: pubkey( 43 ) , encrypted_payload: vec![ 0 ; 43 ] } ,
1864
1864
BlindedHop { blinded_node_id: pubkey( 44 ) , encrypted_payload: vec![ 0 ; 44 ] } ,
1865
1865
] ,
1866
1866
) )
1867
- . path ( BlindedMessagePath :: from_raw (
1867
+ . path ( BlindedMessagePath :: from_blinded_path (
1868
1868
pubkey ( 40 ) ,
1869
1869
pubkey ( 41 ) ,
1870
1870
vec ! [
@@ -1879,7 +1879,7 @@ mod tests {
1879
1879
}
1880
1880
1881
1881
let offer = OfferBuilder :: new ( pubkey ( 42 ) )
1882
- . path ( BlindedMessagePath :: from_raw (
1882
+ . path ( BlindedMessagePath :: from_blinded_path (
1883
1883
pubkey ( 40 ) ,
1884
1884
pubkey ( 41 ) ,
1885
1885
vec ! [
0 commit comments