stacks-network / sbtc-bridge-api

GNU Affero General Public License v3.0
6 stars 4 forks source link

Feat/84 bug sbtc public key not passed back from api #86

Closed radicleart closed 12 months ago

radicleart commented 12 months ago

Description

Public key passed from Romeo needs to be turned into an address. the bridge was doing this by

    //const addr = btc.Address(net).encode({type: 'tr', pubkey: xOnlyKey})

but needs to align with rust;

    const trObj = btc.p2tr(xOnlyKey, undefined, net);
    return trObj.address;