File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ export * as testutil from './testutil';
44export * from './dustThreshold' ;
55export * from './Output' ;
66export * from './xOnlyPubkey' ;
7- export * from './ExtractAddressPayGoAttestation' ;
7+ export * from './paygo/ ExtractAddressPayGoAttestation' ;
Original file line number Diff line number Diff line change 11import assert from 'assert' ;
22
3- import { varuint } from 'bitcoinjs -lib/src/bufferutils ' ;
3+ import * as utxolib from '@bitgo/utxo -lib' ;
44
55// The signed address will always have the following structure:
66// 0x18Bitcoin Signed Message:\n<varint_length><ENTROPY><ADDRESS><UUID>
@@ -32,7 +32,7 @@ export function extractAddressBufferFromPayGoAttestationProof(message: Buffer):
3232
3333 // we decode the varint of the message which is uint32
3434 // https://en.bitcoin.it/wiki/Protocol_documentation
35- const varInt = varuint . decode ( message , offset ) ;
35+ const varInt = utxolib . varuint . varuint . decode ( message , offset ) ;
3636 assert ( varInt ) ;
3737 offset += 1 ;
3838
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as assert from 'assert';
22
33import * as utxolib from '@bitgo/utxo-lib' ;
44
5- import { extractAddressBufferFromPayGoAttestationProof } from '../src/ExtractAddressPayGoAttestation' ;
5+ import { extractAddressBufferFromPayGoAttestationProof } from '../../ src/paygo /ExtractAddressPayGoAttestation' ;
66
77const addressFromPubKeyBase58 = 'bitgoAddressToExtract' ;
88const bufferAddressPubKeyB58 = Buffer . from ( addressFromPubKeyBase58 ) ;
You can’t perform that action at this time.
0 commit comments