@@ -75,7 +75,6 @@ function App() {
75
75
if ( sessionId ) {
76
76
const signingParams : any = await sessionManager ! . authorizeSession ( ) ;
77
77
uiConsole ( "signingParams" , signingParams ) ;
78
- // signingParams["ecPublicKey"] = Buffer.from(signingParams.ecPublicKey.padStart(64, "0"), "hex");
79
78
80
79
const factorKeyMetadata = await tKey . storageLayer . getMetadata < {
81
80
message : string ;
@@ -239,13 +238,13 @@ function App() {
239
238
const { tssShare : tssShare2 , tssIndex : tssShare2Index } = await tKey . getTSSShare ( factorKey ) ;
240
239
241
240
// 4. derive tss pub key, tss pubkey is implicitly formed using the dkgPubKey and the userShare (as well as userTSSIndex)
242
- let tssPubKey = tKey . getTSSPub ( )
241
+ let tssPubKeyPoint = tKey . getTSSPub ( )
243
242
// const tssPubKey = getTSSPubKey(tssShare1PubKey, tssShare2PubKey, tssShare2Index);
244
243
// console.log("tssPub", tssPubKey);
245
244
246
- const TSSPubKey = Buffer . from ( `${ tssPubKey . x . toString ( 16 , 64 ) } ${ tssPubKey . y . toString ( 16 , 64 ) } ` , "hex" ) ;
245
+ const tssPubKey = Buffer . from ( `${ tssPubKeyPoint . x . toString ( 16 , 64 ) } ${ tssPubKeyPoint . y . toString ( 16 , 64 ) } ` , "hex" ) ;
247
246
248
- const prefixedTSSPubKey = Buffer . from ( `04${ TSSPubKey . toString ( "hex" ) } ` , "hex" ) ;
247
+ const prefixedTSSPubKey = Buffer . from ( `04${ tssPubKey . toString ( "hex" ) } ` , "hex" ) ;
249
248
const ECPubKey = ECPair . fromPublicKey ( prefixedTSSPubKey , { network : testnet , compressed : true } ) ;
250
249
const { address : btcAddress } = p2pkh ( { pubkey : ECPubKey . publicKey , network : testnet } ) ;
251
250
@@ -264,7 +263,6 @@ function App() {
264
263
265
264
const nodeDetails = await tKey . serviceProvider . getTSSNodeDetails ( )
266
265
267
- const tsspubhex = Buffer . from ( TSSPubKey ) . toString ( "hex" ) ;
268
266
const signingParams : SigningParams = {
269
267
oAuthShare : OAuthShare . toString ( "hex" ) ,
270
268
factorKey : factorKey . toString ( "hex" ) ,
@@ -273,7 +271,7 @@ function App() {
273
271
tssNonce,
274
272
tssShare2 : tssShare2 . toString ( "hex" ) ,
275
273
tssShare2Index,
276
- compressedTSSPubKey : tsspubhex ,
274
+ tssPubKey : tssPubKey . toString ( "hex" ) ,
277
275
signatures,
278
276
userInfo : loginResponse ! . userInfo ,
279
277
nodeDetails,
0 commit comments