Skip to content

Commit 393b589

Browse files
chore: determined msg to sign and verify
Issue: BTC-2047 TICKET: BTC-2047
1 parent 7af39f1 commit 393b589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/utxo-lib/src/bitgo/psbt/paygoAddressProof.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function verifyPaygoAddressProof(psbt: UtxoPsbt, outputIndex: number, pub
5757
const messageToVerify = toBase58Check(crypto.hash160(pub), networks.bitcoin.pubKeyHash, networks.bitcoin);
5858

5959
// TODO: need to figure out what the message is in this context
60-
// Are we verifying the address of the PayGo? we can call getAddressFromScript given output index.
60+
// Answer: message is our <varint_length><Entropy><Address><UUID>
6161
if (!bitcoinMessage.verify(message, messageToVerify, signature)) {
6262
throw new Error('Cannot verify the paygo address signature with the provided pubkey.');
6363
}

0 commit comments

Comments
 (0)