File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/express/src/lightning Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ export async function handleInitLightningWallet(req: express.Request): Promise<u
9191 const macaroonRootKey = getMacaroonRootKey ( passphrase , nodeAuthKey . encryptedPrv , bitgo . decrypt ) ;
9292
9393 const { admin_macaroon : adminMacaroon } = await lndSignerClient . initWallet ( {
94- wallet_password : passphrase ,
94+ // The passphrase at LND can only accommodate a base64 character set
95+ // For more information, see BTC-1851
96+ wallet_password : Buffer . from ( passphrase ) . toString ( 'base64' ) ,
9597 extended_master_key : signerRootKey ,
9698 macaroon_root_key : macaroonRootKey ,
9799 } ) ;
@@ -220,5 +222,9 @@ export async function handleUnlockLightningWallet(req: express.Request): Promise
220222 ) ;
221223
222224 const lndSignerClient = await LndSignerClient . create ( walletId , req . config ) ;
223- return await lndSignerClient . unlockWallet ( { wallet_password : passphrase } ) ;
225+ // The passphrase at LND can only accommodate a base64 character set
226+ // For more information, see BTC-1851
227+ return await lndSignerClient . unlockWallet ( {
228+ wallet_password : Buffer . from ( passphrase ) . toString ( 'base64' ) ,
229+ } ) ;
224230}
You can’t perform that action at this time.
0 commit comments