diff --git a/web/cashtab/src/hooks/useWallet.js b/web/cashtab/src/hooks/useWallet.js --- a/web/cashtab/src/hooks/useWallet.js +++ b/web/cashtab/src/hooks/useWallet.js @@ -107,6 +107,14 @@ const hash160 = BCH.Address.toHash160(cashAddress); const slpAddress = BCH.SLP.Address.toSLPAddress(cashAddress); + // temporary comparison between BCH-JS' toPublicKey output to the local impl + const localPublicKey = node.getPublicKeyBuffer().toString('hex'); + if (publicKey === localPublicKey) { + console.log( + path + ': BCH-JS publicKey output matches localPublicKey', + ); + } + return { publicKey, hash160,