]> Untitled Git - bitcoindevkit.org/commitdiff
fixed BDK rec desc to use index 0
authorVishal Menon <tech@stackmate.in>
Tue, 20 Apr 2021 05:24:07 +0000 (10:54 +0530)
committerVishal Menon <tech@stackmate.in>
Tue, 20 Apr 2021 05:24:07 +0000 (10:54 +0530)
content/blog/2020/descriptors_in_the_wild.md

index 2161e68b74a1571f13c7c135dee5208560e657c1..fb66311d8f4c7cf16831d83738f8dc00f3781097 100644 (file)
@@ -138,7 +138,7 @@ export BDK_xprv=$(echo $BDK_key | jq -r '.xprv')
 
 # Now I build the derived xpubs to be communicated (to Alice).
 
-export BDK_xpub_84_for_rec_desc=$(bdk-cli key derive --path m/84h/0h/0h/1 --xprv $BDK_xprv | jq -r '.xpub')
+export BDK_xpub_84_for_rec_desc=$(bdk-cli key derive --path m/84h/0h/0h/0 --xprv $BDK_xprv | jq -r '.xpub')
 export BDK_xpub_84_for_chg_desc=$(bdk-cli key derive --path m/84h/0h/0h/1 --xprv $BDK_xprv | jq -r '.xpub')
 ```