From 86ac5534e4661158dcc327ea61cd0379240a97dd Mon Sep 17 00:00:00 2001 From: DenisIvanov26 Date: Thu, 4 Apr 2024 15:47:17 -0500 Subject: [PATCH] musig signing for utxos --- .../providers/abstract-signer.d.ts.map | 4 + lib.commonjs/providers/abstract-signer.js | 26 +++++- lib.commonjs/providers/abstract-signer.js.map | 4 + lib.commonjs/transaction/transaction.d.ts.map | 4 + lib.commonjs/transaction/transaction.js | 16 ++++ lib.commonjs/transaction/transaction.js.map | 4 + lib.commonjs/wallet/base-wallet.d.ts.map | 2 +- lib.commonjs/wallet/base-wallet.js | 17 ---- lib.commonjs/wallet/base-wallet.js.map | 4 + lib.commonjs/wallet/utxohdwallet.d.ts | 1 + lib.commonjs/wallet/utxohdwallet.d.ts.map | 2 +- lib.commonjs/wallet/utxohdwallet.js | 49 +++++++++-- lib.commonjs/wallet/utxohdwallet.js.map | 2 +- lib.commonjs/wallet/wallet.d.ts.map | 4 + lib.commonjs/wallet/wallet.js | 1 - lib.commonjs/wallet/wallet.js.map | 4 + lib.esm/providers/abstract-signer.d.ts.map | 4 + lib.esm/providers/abstract-signer.js | 3 +- lib.esm/providers/abstract-signer.js.map | 4 + lib.esm/transaction/transaction.d.ts.map | 4 + lib.esm/transaction/transaction.js | 12 ++- lib.esm/transaction/transaction.js.map | 4 + lib.esm/wallet/base-wallet.d.ts.map | 2 +- lib.esm/wallet/base-wallet.js | 17 ---- lib.esm/wallet/base-wallet.js.map | 4 + lib.esm/wallet/utxohdwallet.d.ts | 1 + lib.esm/wallet/utxohdwallet.d.ts.map | 2 +- lib.esm/wallet/utxohdwallet.js | 51 +++++++++-- lib.esm/wallet/utxohdwallet.js.map | 2 +- lib.esm/wallet/wallet.d.ts.map | 4 + lib.esm/wallet/wallet.js | 1 - lib.esm/wallet/wallet.js.map | 4 + src.ts/providers/abstract-signer.ts | 6 +- src.ts/transaction/transaction.ts | 75 +++++++--------- src.ts/wallet/base-wallet.ts | 21 ----- src.ts/wallet/utxohdwallet.ts | 85 ++++++++++++++++--- src.ts/wallet/wallet.ts | 1 - 37 files changed, 314 insertions(+), 137 deletions(-) diff --git a/lib.commonjs/providers/abstract-signer.d.ts.map b/lib.commonjs/providers/abstract-signer.d.ts.map index b4c63d43..59c1369a 100644 --- a/lib.commonjs/providers/abstract-signer.d.ts.map +++ b/lib.commonjs/providers/abstract-signer.d.ts.map @@ -1 +1,5 @@ +<<<<<<< HEAD {"version":3,"file":"abstract-signer.d.ts","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAC,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AAQhE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EACR,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAC9D,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA+B1C;;;;;GAKG;AACH,8BAAsB,cAAc,CAAC,CAAC,SAAS,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAE,YAAW,MAAM;IAC/F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAG,CAAC,CAAC;IAEtB;;OAEG;gBACS,QAAQ,CAAC,EAAE,CAAC;IAIxB;;OAEG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAGtC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,gBAAgB,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9D;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAE7C,QA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AAC,MAAM,CAAC;IAIxD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1D,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1I"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/providers/abstract-signer.js b/lib.commonjs/providers/abstract-signer.js index d6187eca..3241f7a7 100644 --- a/lib.commonjs/providers/abstract-signer.js +++ b/lib.commonjs/providers/abstract-signer.js @@ -116,6 +116,19 @@ class AbstractSigner { // the end for better batching return await (0, index_js_3.resolveProperties)(pop); } +<<<<<<< HEAD +======= + async populateUTXOTransaction(tx) { + const pop = { + inputsUTXO: tx.inputs, + outputsUTXO: tx.outputs, + type: 2, + }; + //@TOOD: Don't await all over the place; save them up for + // the end for better batching + return await (0, index_js_3.resolveProperties)(pop); + } +>>>>>>> 756167a0 (musig signing for utxos) async estimateGas(tx) { return checkProvider(this, "estimateGas").estimateGas(await this.populateCall(tx)); } @@ -127,12 +140,23 @@ class AbstractSigner { return await provider.resolveName(name); } async sendTransaction(tx) { - console.log('sendTransaction', tx); const provider = checkProvider(this, "sendTransaction"); +<<<<<<< HEAD const shard = await this.shardFromAddress(tx.from); const pop = await this.populateTransaction(tx); console.log("populated tx", pop); // delete pop.from; +======= + let sender = await this.getAddress(); + let pop; + if ((0, index_js_3.isUTXOAddress)(sender)) { + pop = await this.populateUTXOTransaction(tx); + } + else { + pop = await this.populateTransaction(tx); + } + delete pop.from; +>>>>>>> 756167a0 (musig signing for utxos) const txObj = index_js_2.Transaction.from(pop); const signedTx = await this.signTransaction(txObj); console.log("signedTX: ", JSON.stringify(txObj)); diff --git a/lib.commonjs/providers/abstract-signer.js.map b/lib.commonjs/providers/abstract-signer.js.map index b8048274..6bad7136 100644 --- a/lib.commonjs/providers/abstract-signer.js.map +++ b/lib.commonjs/providers/abstract-signer.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,kDAAgE;AAChE,sDAAsD;AACtD,gDAG2B;AAC3B,+CAA4C;AAS5C,gDAA8C;AAE9C,SAAS,aAAa,CAAC,MAAsB,EAAE,SAAiB;IAC5D,IAAI,MAAM,CAAC,QAAQ,EAAE;QAAE,OAAO,MAAM,CAAC,QAAQ,CAAC;KAAE;IAChD,IAAA,iBAAM,EAAC,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,MAAsB,EAAE,EAAsB;IAClE,IAAI,GAAG,GAAQ,IAAA,yBAAW,EAAC,EAAE,CAAC,CAAC;IAE/B,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,EAAE;QAAE,GAAG,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;KAAE;IAEhE,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,EAAE;QAClB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACtB,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,IAAA,yBAAc,EAAC,IAAI,EAAE,MAAM,CAAC;SAC/B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,OAAO,EAAE,IAAI,CAAE,EAAE,EAAE;YAC1B,IAAA,yBAAc,EAAC,OAAO,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EACvD,2BAA2B,EAAE,SAAS,EAAE,I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;IAE5D,OAAO,CAAC,QAAyB;QAC7B,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,iBAAiB,CAAC,MAAc,EAAE,SAAiB;QAC/C,IAAA,iBAAM,EAAC,KAAK,EAAE,0BAA2B,MAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA4B;QAC1C,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAC1D,CAAC;CACJ;AApCD,gCAoCC"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/transaction/transaction.d.ts.map b/lib.commonjs/transaction/transaction.d.ts.map index 53e0ff8c..8b81608a 100644 --- a/lib.commonjs/transaction/transaction.d.ts.map +++ b/lib.commonjs/transaction/transaction.d.ts.map @@ -1 +1,5 @@ +<<<<<<< HEAD {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAStE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAq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C,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IAK1G;;;;;OAKG;IACH,IAAI,UAAU,IAAI,MAAM,CAIvB;IAED;;;;;OAKG;IACH,IAAI,kBAAkB,IAAI,MAAM,CAE/B;IAED;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,UAAU,IAAI,KAAK,CAAC,MAAM,CAAC;IA6B3B;;OAEG;IACH,KAAK,IAAI,WAAW;IAIpB;;OAEG;IACH,MAAM,IAAI,GAAG;IAkCb;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW;CAiClE"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/transaction/transaction.js b/lib.commonjs/transaction/transaction.js index 7827b44f..2aa5c777 100644 --- a/lib.commonjs/transaction/transaction.js +++ b/lib.commonjs/transaction/transaction.js @@ -401,6 +401,16 @@ class Transaction { } return v.toString(); }; +<<<<<<< HEAD +======= + // Adjusted function to specifically handle the conversion of 'denomination' fields in array items + const processArrayWithBigInt = (arr) => { + return arr.map(item => ({ + address: item.address, + denomination: s(item.denomination) // Convert 'denomination' to string + })); + }; +>>>>>>> 756167a0 (musig signing for utxos) return { type: this.type, to: this.to, @@ -422,7 +432,13 @@ class Transaction { * Transaction-like object. */ static from(tx) { +<<<<<<< HEAD // if (tx == null) { return new Transaction(); } +======= + if (tx == null) { + return new Transaction(); + } +>>>>>>> 756167a0 (musig signing for utxos) if (typeof (tx) === "string") { const payload = (0, index_js_3.getBytes)(tx); return Transaction.from(_parse(payload)); diff --git a/lib.commonjs/transaction/transaction.js.map b/lib.commonjs/transaction/transaction.js.map index 5229148d..ecfdc270 100644 --- a/lib.commonjs/transaction/transaction.js.map +++ b/lib.commonjs/transaction/transaction.js.map @@ -1 +1,5 @@ +<<<<<<< HEAD {"version":3,"file":"transaction.js","sourceRoot":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AAI,EAAE,CAAC,WAAW,IAAI,IAAI,EAAE;YAAE,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;SAAE;QAGpE,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAA,yBAAc,EAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,yCAAyC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACvF,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;SACzB;QAED,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAA,yBAAc,EAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,yCAAyC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACvF,IAAA,yBAAc,EAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;SAC1G;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAtYD,kCAsYC"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/wallet/base-wallet.d.ts.map b/lib.commonjs/wallet/base-wallet.d.ts.map index 6e1fc966..3feb7dbe 100644 --- a/lib.commonjs/wallet/base-wallet.d.ts.map +++ b/lib.commonjs/wallet/base-wallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"base-wallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC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AQ1C;;;;;;OAMG;gBACS,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAa9D;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,CAA0B;IAG/C;;OAEG;IACH,IAAI,UAAU,IAAI,UAAU,CAA6B;IAEzD;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,CAAuC;IAEzD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU;IAIxC,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAI,OAAO,CAAC,MAAM,CAAC;IAwBzD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAMhE;;OAEG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM;IAI/C,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAsB1I"} \ No newline at end of file diff --git a/lib.commonjs/wallet/base-wallet.js b/lib.commonjs/wallet/base-wallet.js index 2bb1c869..7485e598 100644 --- a/lib.commonjs/wallet/base-wallet.js +++ b/lib.commonjs/wallet/base-wallet.js @@ -6,10 +6,6 @@ const index_js_2 = require("../hash/index.js"); const index_js_3 = require("../providers/index.js"); const index_js_4 = require("../transaction/index.js"); const index_js_5 = require("../utils/index.js"); -// import { MuSigFactory } from "@brandonblack/musig" -// import { nobleCrypto } from "./musig-crypto.js"; -// import { UTXOTransaction } from "../transaction/utxo.js"; -// import { schnorr } from "@noble/curves/secp256k1"; /** * The **BaseWallet** is a stream-lined implementation of a * [[Signer]] that operates with a private key. @@ -59,7 +55,6 @@ class BaseWallet extends index_js_3.AbstractSigner { return new BaseWallet(this.#signingKey, provider); } async signTransaction(tx) { - console.log("signTransaction"); // Replace any Addressable or ENS name with an address const { to, from } = await (0, index_js_5.resolveProperties)({ to: (tx.to ? (0, index_js_1.resolveAddress)(tx.to, this.provider) : undefined), @@ -84,18 +79,6 @@ class BaseWallet extends index_js_3.AbstractSigner { btx.signature = this.signingKey.sign(btx.unsignedHash); return btx.serialized; } - // async signUTXOTransaction(tx: UTXOTransaction, pk: Uint8Array): Promise { - // const factory = MuSigFactory(nobleCrypto); - // //const transactionHash = tx.serialize() - // // Check if there is only one private key - // if (pk.length === 1) { - // // Single key scenario: Perform a simple Schnorr signature - // const publicKey = factory.getXOnlyPubkey(pk[0]); - // const signature = schnorr.sign(transactionHash, BigInt(pk[0]), publicKey); - // // Attach the signature to the transaction - // transaction.signature = signature; - // } - // } async signMessage(message) { return this.signMessageSync(message); } diff --git a/lib.commonjs/wallet/base-wallet.js.map b/lib.commonjs/wallet/base-wallet.js.map index ff7755cd..7dcb2f02 100644 --- a/lib.commonjs/wallet/base-wallet.js.map +++ b/lib.commonjs/wallet/base-wallet.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"base-wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":";;;AAAA,kDAAiE;AACjE,+CAAiE;AACjE,oDAAuD;AACvD,sDAAsE;AACtE,gDAE2B;AAO3B,qDAAqD;AACrD,mDAAmD;AACnD,4DAA4D;AAC5D,qDAAqD;AAErD;;;;;;;;;;GAUG;AACH,MAAa,UAAW,SAAQ,yBAAc;IAC1C;;OAEG;IACM,QAAQ,CAAU;IAElB,WAAW,CAAa;IAEjC;;;;;;OAMG;IACH,YAAY,UAAsB,EAAE,QAA0B;QAC1D,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEhB,IAAA,yBAAc,EAAC,UAAU,IAAI,OAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,UAAU,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IAAI,IAAI,EAAE,uBAAuB,EAAE,mBAAmB,EAAE;gBAClE,KAAK,EAAE,IAAI;aACd,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,2BAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IAC5G,CAAC;CACJ;AA7GD,gCA6GC"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/wallet/utxohdwallet.d.ts b/lib.commonjs/wallet/utxohdwallet.d.ts index 727a7277..957f9e53 100644 --- a/lib.commonjs/wallet/utxohdwallet.d.ts +++ b/lib.commonjs/wallet/utxohdwallet.d.ts @@ -52,6 +52,7 @@ export declare class UTXOHDWallet extends BaseWallet { readonly depth: number; coinType?: number; get utxoAddresses(): UTXOAddress[]; + set utxoAddresses(addresses: UTXOAddress[]); /** * Gets the current publicKey */ diff --git a/lib.commonjs/wallet/utxohdwallet.d.ts.map b/lib.commonjs/wallet/utxohdwallet.d.ts.map index 5be71db7..1e8c19d8 100644 --- a/lib.commonjs/wallet/utxohdwallet.d.ts.map +++ b/lib.commonjs/wallet/utxohdwallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utxohdwallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/utxohdwallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAa,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAA4M,MAAM,aAAa,CAAC;AACnS,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,UAAU,WAAW;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,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ACH,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAOzC;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY;IA6BpC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAW;IAkClD;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY;IA4BnD,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;CAsDjE"} \ No newline at end of file diff --git a/lib.commonjs/wallet/utxohdwallet.js b/lib.commonjs/wallet/utxohdwallet.js index 4f532ba1..8026cabc 100644 --- a/lib.commonjs/wallet/utxohdwallet.js +++ b/lib.commonjs/wallet/utxohdwallet.js @@ -7,6 +7,10 @@ const quais_js_1 = require("../quais.js"); const mnemonic_js_1 = require("./mnemonic.js"); const utils_js_1 = require("./utils.js"); const base_wallet_js_1 = require("./base-wallet.js"); +const musig_1 = require("@brandonblack/musig"); +const musig_crypto_js_1 = require("./musig-crypto.js"); +const secp256k1_1 = require("@noble/curves/secp256k1"); +const sha3_1 = require("@noble/hashes/sha3"); const MasterSecret = new Uint8Array([66, 105, 116, 99, 111, 105, 110, 32, 115, 101, 101, 100]); const _guard = {}; class UTXOHDWallet extends base_wallet_js_1.BaseWallet { @@ -65,6 +69,9 @@ class UTXOHDWallet extends base_wallet_js_1.BaseWallet { get utxoAddresses() { return this.#utxoAddresses; } + set utxoAddresses(addresses) { + this.#utxoAddresses = addresses; + } /** * Gets the current publicKey */ @@ -171,7 +178,6 @@ class UTXOHDWallet extends base_wallet_js_1.BaseWallet { return new UTXOHDWallet(_guard, ki, newFingerprint, (0, quais_js_1.hexlify)(IR), path, index, newDepth, this.mnemonic, this.provider); } async generateUTXOs(zone, gap = 20) { - console.log("GENERATING UTXOS"); zone = zone.toLowerCase(); // Check if zone is valid const shard = constants_1.ShardData.find(shard => shard.name.toLowerCase() === zone || shard.nickname.toLowerCase() === zone || shard.byte.toLowerCase() === zone); @@ -193,14 +199,13 @@ class UTXOHDWallet extends base_wallet_js_1.BaseWallet { //check available utxos through node //if ( have utxos) currentUtxoAddresses.push({ pubKey, privKey }); - console.log(wallet.path); // empty = 0 //else empty++; //increment addrIndex in bip44 accIndex++; } - console.log('UTXO addr:', currentUtxoAddresses); + this.utxoAddresses = currentUtxoAddresses; } /** * Derives address by incrementing address_index according to BIP44 @@ -230,8 +235,42 @@ class UTXOHDWallet extends base_wallet_js_1.BaseWallet { return newWallet; } async signTransaction(tx) { - console.log('herwhhhzafhdhdzhfgxzdhgvajhsvs', tx.type); - return 'hey'; + const txobj = quais_js_1.Transaction.from(tx); + if (!txobj.inputsUTXO || !txobj.outputsUTXO) + throw new Error('Invalid UTXO transaction, missing inputs or outputs'); + const hash = (0, sha3_1.keccak_256)(txobj.unsignedSerialized); + const musig = (0, musig_1.MuSigFactory)(musig_crypto_js_1.nobleCrypto); + if (txobj.inputsUTXO.length == 1) { + const pubKey = txobj.inputsUTXO[0].address; + const privKey = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === pubKey)?.privKey; + if (!privKey) + throw new Error(`Missing private key for ${pubKey}`); + const signature = secp256k1_1.schnorr.sign(hash, BigInt(privKey)); + return (0, quais_js_1.hexlify)(signature); + } + else { + const privKeys = txobj.inputsUTXO.map(input => { + const utxoAddrObj = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === input.address); + return utxoAddrObj ? utxoAddrObj.privKey : null; + }).filter(privKey => privKey !== null); + const pubKeys = privKeys.map(privKey => musig_crypto_js_1.nobleCrypto.getPublicKey((0, quais_js_1.getBytes)(privKey), true)).filter(pubKey => pubKey !== null); + //const aggPublicKey = musig.getPlainPubkey(musig.keyAgg(pubKeys)); + const nonces = pubKeys.map(pk => musig.nonceGen({ publicKey: (0, quais_js_1.getBytes)(pk) })); + const aggNonce = musig.nonceAgg(nonces); + const signingSession = musig.startSigningSession(aggNonce, hash, pubKeys); + //Each signer creates a partial signature + const partialSignatures = privKeys.map((sk, index) => musig.partialSign({ + secretKey: (0, quais_js_1.getBytes)(sk || ''), + publicNonce: nonces[index], + sessionKey: signingSession, + verify: true + })); + // Aggregate the partial signatures into a final aggregated signature + const finalSignature = musig.signAgg(partialSignatures, signingSession); + // //Verify signature using schnorr + // const isValid = schnorr.verify(finalSignature, hash, aggPublicKey); + return (0, quais_js_1.hexlify)(finalSignature); + } } } exports.UTXOHDWallet = UTXOHDWallet; diff --git a/lib.commonjs/wallet/utxohdwallet.js.map b/lib.commonjs/wallet/utxohdwallet.js.map index 2e1c49cb..07cd19d0 100644 --- a/lib.commonjs/wallet/utxohdwallet.js.map +++ b/lib.commonjs/wallet/utxohdwallet.js.map @@ -1 +1 @@ -{"version":3,"file":"utxohdwallet.js","sourceRoot":"","sources":["../../src.ts/wallet/utxohdwallet.ts"],"names":[],"mappings":";;;AACA,4CAA4C;AAC5C,iDAAgD;AAChD,0CAAmS;AACnS,+CAAyC;AACzC,yCAA4D;AAC5D,qDAA8C;AAO9C,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAE,CAAC,CAAC;AACjG,MAAM,MAAM,GAAG,EAAG,CAAC;AAEnB,MAAa,YAAa,SAAQ,2BAAU;IACvC;;MAEE;IACO,UAAU,CAAU;IAE7B;;;;;;OAMG;IACM,WAAW,CAAU;IAE9B;;OAEG;IACM,kBAAkB,CAAU;IAErC;;;;;OAKG;IACM,QAAQ,CAAmB;IAEpC;;;OAGG;IACM,SAAS,CAAU;IAE5B;;;;;;OAMG;IACM,IAAI,CAAiB;IAE9B;;;OAGG;IACM,KAAK,CAAU;IAExB;;;OAGG;IACM,KAAK,CAAU;IAExB,QAAQ,CAAU;IAElB;;;OAGG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O,CAAC,CAAC;gBACvH,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;SACf,QAAS,SAAS,GAAG,CAAC,EAAE;QAEzB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;QACtD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAjQD,oCAiQC"} \ No newline at end of file +{"version":3,"file":"utxohdwallet.js","sourceRoot":"","sources":["../../src.ts/wallet/utxohdwallet.ts"],"names":[],"mappings":";;;AACA,4CAA4C;AAC5C,iDAAgD;AAChD,0CAAiU;AACjU,+CAAyC;AACzC,yCAA4D;AAC5D,qDAA8C;AAC9C,+CAAkD;AAClD,uDAAgD;AAChD,uDAAkD;AAClD,6CAAgD;AAOhD,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAE,CAAC,CAAC;AACjG,MAAM,MAAM,GAAG,EAAG,CAAC;AAEnB,MAAa,YAAa,SAAQ,2BAAU;IACvC;;MAEE;IACO,UAAU,CAAU;IAE7B;;;;;;OAMG;IACM,WAAW,CAAU;IAE9B;;OAEG;IACM,kBAAkB,CAAU;IAErC;;;;;OAKG;IACM,QAAQ,CAAmB;IAEpC;;;OAGG;IACM,SAAS,CAAU;IAE5B;;;;;;OAMG;IACM,IAAI,CAAiB;IAE9B;;;OAGG;IACM,KAAK,CAAU;IAExB;;;OAGG;IACM,KAAK,CAAU;IAExB,QAAQ,CAAU;IAElB;;;OAGG;IACJ,cAAc,GAAkB,EAAE,CAAC;IAEnC,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,IA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AAI,GAAG,QAAQ,GAAG,MAAM;IAI1C;;;;;;OAMG;IACG,OAAO,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAKlG;;;;;;;;;OASG;IACH,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM;IAyBlD;;;;;;OAMG;WACU,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,GAAG,MAAM,CAAC;IAexI;;;;;;OAMG;IACH,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM;IAahG;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,YAAY;IAM3E;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,YAAY;CAqBzH"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.commonjs/wallet/wallet.js b/lib.commonjs/wallet/wallet.js index 92ab3ebc..e15cf504 100644 --- a/lib.commonjs/wallet/wallet.js +++ b/lib.commonjs/wallet/wallet.js @@ -163,7 +163,6 @@ class Wallet extends base_wallet_js_1.BaseWallet { } return wallet; case 969: - console.log('utxo wallet'); wallet = utxohdwallet_js_1.UTXOHDWallet.fromPhrase(phrase, path, undefined, wordlist); if (provider) { return wallet.connect(provider); diff --git a/lib.commonjs/wallet/wallet.js.map b/lib.commonjs/wallet/wallet.js.map index 3d9e692c..1203276d 100644 --- a/lib.commonjs/wallet/wallet.js.map +++ b/lib.commonjs/wallet/wallet.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/wallet.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAChD,gDAAmD;AAEnD,qDAA8C;AAC9C,+CAA6C;AAC7C,2DAA6E;AAC7E,yDAI4B;AAC5B,+CAAyC;AASzC,SAAS,KAAK,CAAC,QAAgB;IAC3B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC;AAED;;;;;;;;;GASG;AACH,MAAa,MAAO,SAAQ,2BAAU;IAElC;;;OAGG;IACH,YAAY,GAAwB,EAAE,QAA0B;QAC5D,IAAI,OAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;YACnD,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;SACpB;QAED,IAAI,UAAU,GAAG,CAAC,OAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,qBAAU,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,GAAG,CAAC;QACvE,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,CAAC,QAAyB;QAC7B,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,UAAW,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,CAAC,QAA6B,EAAE,gBAAmC;QAC5E,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,UA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AAC,CAAC;QAEvC,IAAI,MAAM,CAAC;QACX,QAAQ,QAAQ,EAAE;YACd,KAAK,GAAG;gBACJ,MAAM,GAAG,0BAAY,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;gBACpE,IAAI,QAAQ,EAAE;oBAAE,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAAE;gBAClD,OAAO,MAAM,CAAC;YAClB,KAAK,GAAG;gBACJ,MAAM,GAAG,8BAAY,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;gBACpE,IAAI,QAAQ,EAAE;oBAAE,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAAE;gBAClD,OAAO,MAAM,CAAC;YAClB;gBACI,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,2BAA2B,CAAC,CAAC;SACpF;IACL,CAAC;CACJ;AAhJD,wBAgJC"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.esm/providers/abstract-signer.d.ts.map b/lib.esm/providers/abstract-signer.d.ts.map index 63b6b851..35f1a3ac 100644 --- a/lib.esm/providers/abstract-signer.d.ts.map +++ b/lib.esm/providers/abstract-signer.d.ts.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"abstract-signer.d.ts","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAC,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AAQhE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EACR,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAC9D,MAAM,eAAe,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AO,CAAC,MAAM,CAAC;IACnE,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAC7I;AAED;;;;;;;GAOG;AACH,qBAAa,UAAW,SAAQ,cAAc;;IAC1C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;IAE1B;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAKjD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU;IAQxC,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1D,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1I"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.esm/providers/abstract-signer.js b/lib.esm/providers/abstract-signer.js index a82fde3f..65852df7 100644 --- a/lib.esm/providers/abstract-signer.js +++ b/lib.esm/providers/abstract-signer.js @@ -138,6 +138,7 @@ export class AbstractSigner { const pop = { inputsUTXO: tx.inputs, outputsUTXO: tx.outputs, + type: 2, }; //@TOOD: Don't await all over the place; save them up for // the end for better batching @@ -155,7 +156,6 @@ export class AbstractSigner { return await provider.resolveName(name); } async sendTransaction(tx) { - console.log('sendTransaction', tx); const provider = checkProvider(this, "sendTransaction"); <<<<<<< HEAD const shard = await this.shardFromAddress(tx.from); @@ -175,7 +175,6 @@ export class AbstractSigner { else { pop = await this.populateTransaction(tx); } - console.log("populated tx", pop); delete pop.from; const txObj = Transaction.from(pop); const signedTx = await this.signTransaction(txObj); diff --git a/lib.esm/providers/abstract-signer.js.map b/lib.esm/providers/abstract-signer.js.map index 54e8e22a..ee8af2a6 100644 --- a/lib.esm/providers/abstract-signer.js.map +++ b/lib.esm/providers/abstract-signer.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAc,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,EAC9C,MAAM,EAAE,cAAc,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAS5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,SAAS,aAAa,CAAC,MAAsB,EAAE,SAAiB;IAC5D,IAAI,MAAM,CAAC,QAAQ,EAAE;QAAE,OAAO,MAAM,CAAC,QAAQ,CAAC;KAAE;IAChD,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,MAAsB,EAAE,EAAsB;IAClE,IAAI,GAAG,GAAQ,WAAW,CAAC,EAAE,CAAC,CAAC;IAE/B,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,EAAE;QAAE,GAAG,CAAC,EAAE,GAAG,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;K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AQ,CAAC,CAAC;QAC7D,OAAO,MAAM,CAAA;IACjB,CAAC;CAKJ;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC1C;;OAEG;IACM,OAAO,CAAU;IAE1B;;;OAGG;IACH,YAAY,OAAe,EAAE,QAA0B;QACnD,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,gBAAgB,CAAa,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,UAAU,KAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5D,OAAO,CAAC,QAAyB;QAC7B,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,iBAAiB,CAAC,MAAc,EAAE,SAAiB;QAC/C,MAAM,CAAC,KAAK,EAAE,0BAA2B,MAAO,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA4B;QAC1C,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAC1D,CAAC;CACJ"} >>>>>>> ee35178e (utxohdwallet) +======= +{"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB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(musig signing for utxos) diff --git a/lib.esm/transaction/transaction.d.ts.map b/lib.esm/transaction/transaction.d.ts.map index 874a6d0b..998aa04b 100644 --- a/lib.esm/transaction/transaction.d.ts.map +++ b/lib.esm/transaction/transaction.d.ts.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAStE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE7E,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IACR;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE/B;;OAEG;IACH,oBAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE3C;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAEnC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE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,WAAW,IAAI,IAAI,GAAG,qBAAqB,EAAE,CAA8B;IAC/E,IAAI,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,qBAAqB,EAAE,EAAgC;IAGrF;;OAEG;;IAmBH;;OAEG;IACH,IAAI,IAAI,IAAI,IAAI,GAAG,MAAM,CAIxB;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,EAE5B;IAGD;;;;;OAKG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,IAAI,GAAG,MAAM,CAGxB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,IAAI,GAAG,MAAM,CAGjC;IAED;;;;;OAKG;IACH,QAAQ,IAAI,IAAI,IAAI,CAAC,WAAW,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IAK1G;;;;;OAKG;IACH,IAAI,UAAU,IAAI,MAAM,CAIvB;IAED;;;;;OAKG;IACH,IAAI,kBAAkB,IAAI,MAAM,CAE/B;IAED;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,UAAU,IAAI,KAAK,CAAC,MAAM,CAAC;IA6B3B;;OAEG;IACH,KAAK,IAAI,WAAW;IAIpB;;OAEG;IACP,MAAM,IAAI,GAAG;IA2CT;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW;CAkClE"} >>>>>>> ee35178e (utxohdwallet) +======= +{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAStE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,m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GG;IACH,UAAU,IAAI,KAAK,CAAC,MAAM,CAAC;IA6B3B;;OAEG;IACH,KAAK,IAAI,WAAW;IAIpB;;OAEG;IACH,MAAM,IAAI,GAAG;IAkCb;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW;CAiClE"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.esm/transaction/transaction.js b/lib.esm/transaction/transaction.js index 40075fb8..6b7b4ced 100644 --- a/lib.esm/transaction/transaction.js +++ b/lib.esm/transaction/transaction.js @@ -431,6 +431,7 @@ export class Transaction { } return v.toString(); }; +<<<<<<< HEAD <<<<<<< HEAD return { type: this.type, @@ -451,8 +452,14 @@ export class Transaction { return obj; }; // Process arrays of objects for inputsUTXO and outputsUTXO +======= + // Adjusted function to specifically handle the conversion of 'denomination' fields in array items +>>>>>>> 756167a0 (musig signing for utxos) const processArrayWithBigInt = (arr) => { - return arr.map(item => handleObjectWithBigInt(item)); + return arr.map(item => ({ + address: item.address, + denomination: s(item.denomination) // Convert 'denomination' to string + })); }; return { type: this.type, @@ -487,8 +494,11 @@ export class Transaction { if (tx == null) { return new Transaction(); } +<<<<<<< HEAD console.log("TX: ", tx); >>>>>>> ee35178e (utxohdwallet) +======= +>>>>>>> 756167a0 (musig signing for utxos) if (typeof (tx) === "string") { const payload = getBytes(tx); return Transaction.from(_parse(payload)); diff --git a/lib.esm/transaction/transaction.js.map b/lib.esm/transaction/transaction.js.map index 4fc5be23..47ebae2d 100644 --- a/lib.esm/transaction/transaction.js.map +++ b/lib.esm/transaction/transaction.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,SAAS,EAA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) diff --git a/lib.esm/wallet/base-wallet.d.ts.map b/lib.esm/wallet/base-wallet.d.ts.map index 6e1fc966..3feb7dbe 100644 --- a/lib.esm/wallet/base-wallet.d.ts.map +++ b/lib.esm/wallet/base-wallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"base-wallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQ1E;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,SAAQ,cAAc;;IAQ1C;;;;;;OAMG;gBACS,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAa9D;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,CAA0B;IAG/C;;OAEG;IACH,IAAI,UAAU,IAAI,UAAU,CAA6B;IAEzD;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,CAAuC;IAEzD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU;IAIxC,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAI,OAAO,CAAC,MAAM,CAAC;IAwCzD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAMhE;;OAEG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM;IAI/C,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAA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G,OAAO,CAAC,MAAM,CAAC;CAsB1I"} \ No newline at end of file diff --git a/lib.esm/wallet/base-wallet.js b/lib.esm/wallet/base-wallet.js index 140144a1..bcf91e5b 100644 --- a/lib.esm/wallet/base-wallet.js +++ b/lib.esm/wallet/base-wallet.js @@ -3,10 +3,6 @@ import { hashMessage, TypedDataEncoder } from "../hash/index.js"; import { AbstractSigner } from "../providers/index.js"; import { computeAddress, Transaction } from "../transaction/index.js"; import { resolveProperties, assert, assertArgument } from "../utils/index.js"; -// import { MuSigFactory } from "@brandonblack/musig" -// import { nobleCrypto } from "./musig-crypto.js"; -// import { UTXOTransaction } from "../transaction/utxo.js"; -// import { schnorr } from "@noble/curves/secp256k1"; /** * The **BaseWallet** is a stream-lined implementation of a * [[Signer]] that operates with a private key. @@ -56,7 +52,6 @@ export class BaseWallet extends AbstractSigner { return new BaseWallet(this.#signingKey, provider); } async signTransaction(tx) { - console.log("signTransaction"); // Replace any Addressable or ENS name with an address const { to, from } = await resolveProperties({ to: (tx.to ? resolveAddress(tx.to, this.provider) : undefined), @@ -81,18 +76,6 @@ export class BaseWallet extends AbstractSigner { btx.signature = this.signingKey.sign(btx.unsignedHash); return btx.serialized; } - // async signUTXOTransaction(tx: UTXOTransaction, pk: Uint8Array): Promise { - // const factory = MuSigFactory(nobleCrypto); - // //const transactionHash = tx.serialize() - // // Check if there is only one private key - // if (pk.length === 1) { - // // Single key scenario: Perform a simple Schnorr signature - // const publicKey = factory.getXOnlyPubkey(pk[0]); - // const signature = schnorr.sign(transactionHash, BigInt(pk[0]), publicKey); - // // Attach the signature to the transaction - // transaction.signature = signature; - // } - // } async signMessage(message) { return this.signMessageSync(message); } diff --git a/lib.esm/wallet/base-wallet.js.map b/lib.esm/wallet/base-wallet.js.map index b2b34dc6..54ea7761 100644 --- a/lib.esm/wallet/base-wallet.js.map +++ b/lib.esm/wallet/base-wallet.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"base-wallet.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,CAAC,CAAC,CAAC,UAAU,CAAC;IAC5G,CAAC;CACJ"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/lib.esm/wallet/utxohdwallet.d.ts b/lib.esm/wallet/utxohdwallet.d.ts index 727a7277..957f9e53 100644 --- a/lib.esm/wallet/utxohdwallet.d.ts +++ b/lib.esm/wallet/utxohdwallet.d.ts @@ -52,6 +52,7 @@ export declare class UTXOHDWallet extends BaseWallet { readonly depth: number; coinType?: number; get utxoAddresses(): UTXOAddress[]; + set utxoAddresses(addresses: UTXOAddress[]); /** * Gets the current publicKey */ diff --git a/lib.esm/wallet/utxohdwallet.d.ts.map b/lib.esm/wallet/utxohdwallet.d.ts.map index 5be71db7..1e8c19d8 100644 --- a/lib.esm/wallet/utxohdwallet.d.ts.map +++ b/lib.esm/wallet/utxohdwallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utxohdwallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/utxohdwallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAa,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAA4M,MAAM,aAAa,CAAC;AACnS,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,UAAU,WAAW;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAKD,qBAAa,YAAa,SAAQ,UAAU;;IAMvC;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,kBAAkB,EAAG,MAAM,CAAC;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAG,IAAI,GAAG,QAAQ,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IA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EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;CAsDjE"} \ No newline at end of file diff --git a/lib.esm/wallet/utxohdwallet.js b/lib.esm/wallet/utxohdwallet.js index 6cf866ce..79f4063c 100644 --- a/lib.esm/wallet/utxohdwallet.js +++ b/lib.esm/wallet/utxohdwallet.js @@ -1,9 +1,13 @@ import { N, ShardData } from '../constants'; import { SigningKey } from "../crypto/index.js"; -import { assertArgument, assertPrivate, computeHmac, dataSlice, defineProperties, getBytes, getNumber, getShardForAddress, hexlify, isBytesLike, isUTXOAddress, randomBytes, ripemd160, sha256, toBeHex, toBigInt } from '../quais.js'; +import { Transaction, assertArgument, assertPrivate, computeHmac, dataSlice, defineProperties, getBytes, getNumber, getShardForAddress, hexlify, isBytesLike, isUTXOAddress, randomBytes, ripemd160, sha256, toBeHex, toBigInt } from '../quais.js'; import { Mnemonic } from './mnemonic.js'; import { HardenedBit, derivePath, ser_I } from './utils.js'; import { BaseWallet } from "./base-wallet.js"; +import { MuSigFactory } from "@brandonblack/musig"; +import { nobleCrypto } from "./musig-crypto.js"; +import { schnorr } from "@noble/curves/secp256k1"; +import { keccak_256 } from "@noble/hashes/sha3"; const MasterSecret = new Uint8Array([66, 105, 116, 99, 111, 105, 110, 32, 115, 101, 101, 100]); const _guard = {}; export class UTXOHDWallet extends BaseWallet { @@ -62,6 +66,9 @@ export class UTXOHDWallet extends BaseWallet { get utxoAddresses() { return this.#utxoAddresses; } + set utxoAddresses(addresses) { + this.#utxoAddresses = addresses; + } /** * Gets the current publicKey */ @@ -168,7 +175,6 @@ export class UTXOHDWallet extends BaseWallet { return new UTXOHDWallet(_guard, ki, newFingerprint, hexlify(IR), path, index, newDepth, this.mnemonic, this.provider); } async generateUTXOs(zone, gap = 20) { - console.log("GENERATING UTXOS"); zone = zone.toLowerCase(); // Check if zone is valid const shard = ShardData.find(shard => shard.name.toLowerCase() === zone || shard.nickname.toLowerCase() === zone || shard.byte.toLowerCase() === zone); @@ -190,14 +196,13 @@ export class UTXOHDWallet extends BaseWallet { //check available utxos through node //if ( have utxos) currentUtxoAddresses.push({ pubKey, privKey }); - console.log(wallet.path); // empty = 0 //else empty++; //increment addrIndex in bip44 accIndex++; } - console.log('UTXO addr:', currentUtxoAddresses); + this.utxoAddresses = currentUtxoAddresses; } /** * Derives address by incrementing address_index according to BIP44 @@ -227,8 +232,42 @@ export class UTXOHDWallet extends BaseWallet { return newWallet; } async signTransaction(tx) { - console.log('herwhhhzafhdhdzhfgxzdhgvajhsvs', tx.type); - return 'hey'; + const txobj = Transaction.from(tx); + if (!txobj.inputsUTXO || !txobj.outputsUTXO) + throw new Error('Invalid UTXO transaction, missing inputs or outputs'); + const hash = keccak_256(txobj.unsignedSerialized); + const musig = MuSigFactory(nobleCrypto); + if (txobj.inputsUTXO.length == 1) { + const pubKey = txobj.inputsUTXO[0].address; + const privKey = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === pubKey)?.privKey; + if (!privKey) + throw new Error(`Missing private key for ${pubKey}`); + const signature = schnorr.sign(hash, BigInt(privKey)); + return hexlify(signature); + } + else { + const privKeys = txobj.inputsUTXO.map(input => { + const utxoAddrObj = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === input.address); + return utxoAddrObj ? utxoAddrObj.privKey : null; + }).filter(privKey => privKey !== null); + const pubKeys = privKeys.map(privKey => nobleCrypto.getPublicKey(getBytes(privKey), true)).filter(pubKey => pubKey !== null); + //const aggPublicKey = musig.getPlainPubkey(musig.keyAgg(pubKeys)); + const nonces = pubKeys.map(pk => musig.nonceGen({ publicKey: getBytes(pk) })); + const aggNonce = musig.nonceAgg(nonces); + const signingSession = musig.startSigningSession(aggNonce, hash, pubKeys); + //Each signer creates a partial signature + const partialSignatures = privKeys.map((sk, index) => musig.partialSign({ + secretKey: getBytes(sk || ''), + publicNonce: nonces[index], + sessionKey: signingSession, + verify: true + })); + // Aggregate the partial signatures into a final aggregated signature + const finalSignature = musig.signAgg(partialSignatures, signingSession); + // //Verify signature using schnorr + // const isValid = schnorr.verify(finalSignature, hash, aggPublicKey); + return hexlify(finalSignature); + } } } //# sourceMappingURL=utxohdwallet.js.map \ No newline at end of file diff --git a/lib.esm/wallet/utxohdwallet.js.map b/lib.esm/wallet/utxohdwallet.js.map index ed6df172..9510f916 100644 --- a/lib.esm/wallet/utxohdwallet.js.map +++ b/lib.esm/wallet/utxohdwallet.js.map @@ -1 +1 @@ -{"version":3,"file":"utxohdwallet.js","sourceRoot":"","sources":["../../src.ts/wallet/utxohdwallet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAA8D,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnS,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAO9C,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAE,CAAC,CAAC;AACjG,MAAM,MAAM,GAAG,EAAG,CAAC;AAEnB,MAAM,OAAO,YAAa,SAAQ,UAAU;IACvC;;MAEE;IACO,UAAU,CAAU;IAE7B;;;;;;OAMG;IACM,WAAW,CAAU;IAE9B;;OAEG;IACM,kBAAkB,C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C,KAAK,CAAC;gBAC1B,UAAU,EAAE,cAAc;gBAC1B,MAAM,EAAE,IAAI;aACf,CAAC,CACL,CAAC;YAEF,qEAAqE;YACrE,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;YAExE,mCAAmC;YACnC,sEAAsE;YACrE,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;SACnC;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/wallet/wallet.d.ts.map b/lib.esm/wallet/wallet.d.ts.map index fe62b1dc..15e20726 100644 --- a/lib.esm/wallet/wallet.d.ts.map +++ b/lib.esm/wallet/wallet.d.ts.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAS7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAS5C;;;;;;;;;GASG;AACH,qBAAa,MAAO,SAAQ,UAAU;;IAElC;;;OAGG;gBACS,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAShE,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAI1C;;;;;;OAMG;IACG,OAAO,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAKlG;;;;;;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.esm/wallet/wallet.js b/lib.esm/wallet/wallet.js index f312125d..1caa56c2 100644 --- a/lib.esm/wallet/wallet.js +++ b/lib.esm/wallet/wallet.js @@ -160,7 +160,6 @@ export class Wallet extends BaseWallet { } return wallet; case 969: - console.log('utxo wallet'); wallet = UTXOHDWallet.fromPhrase(phrase, path, undefined, wordlist); if (provider) { return wallet.connect(provider); diff --git a/lib.esm/wallet/wallet.js.map b/lib.esm/wallet/wallet.js.map index f18cc543..82041916 100644 --- a/lib.esm/wallet/wallet.js.map +++ b/lib.esm/wallet/wallet.js.map @@ -1,5 +1,9 @@ <<<<<<< HEAD +<<<<<<< HEAD {"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAG,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACH,mBAAmB,EAAE,uBAAuB,EAC5C,mBAAmB,EAAE,uBAAuB,EAC5C,cAAc,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AASzC,SAAS,KAAK,CAAC,QAAgB;IAC3B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,MAAO,SAAQ,UAAU;IAElC;;;OAGG;IACH,YAAY,GAAwB,EAAE,QAA0B;QAC5D,IAAI,OAAM,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AE;oBAAE,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAAE;gBAClD,OAAO,MAAM,CAAC;YAClB,KAAK,GAAG;gBACJ,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;gBACpE,IAAI,QAAQ,EAAE;oBAAE,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAAE;gBAClD,OAAO,MAAM,CAAC;YAClB;gBACI,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,2BAA2B,CAAC,CAAC;SACpF;IACL,CAAC;CACJ"} +>>>>>>> 756167a0 (musig signing for utxos) diff --git a/src.ts/providers/abstract-signer.ts b/src.ts/providers/abstract-signer.ts index 2f34bbea..b973180f 100644 --- a/src.ts/providers/abstract-signer.ts +++ b/src.ts/providers/abstract-signer.ts @@ -158,6 +158,7 @@ export abstract class AbstractSigner

{ - console.log('sendTransaction', tx) const provider = checkProvider(this, "sendTransaction"); const shard = await this.shardFromAddress(tx.from) let sender = await this.getAddress() @@ -189,10 +189,10 @@ export abstract class AbstractSigner

{ /** * Return a JSON-friendly object. */ -toJSON(): any { - const s = (v: null | bigint) => { - if (v == null) { return null; } - return v.toString(); - }; - - // A helper function to handle objects that might contain BigInt values - const handleObjectWithBigInt = (obj: any) => { - for (const key in obj) { - if (typeof obj[key] === 'bigint') { - obj[key] = obj[key].toString(); - } else if (typeof obj[key] === 'object' && obj[key] !== null) { - // Recursively handle nested objects - obj[key] = handleObjectWithBigInt(obj[key]); - } - } - return obj; - }; - - // Process arrays of objects for inputsUTXO and outputsUTXO - const processArrayWithBigInt = (arr: any[]) => { - return arr.map(item => handleObjectWithBigInt(item)); - }; - - return { - type: this.type, - to: this.to, - //from: this.from, - data: this.data, - nonce: this.nonce, - gasLimit: s(this.gasLimit), - gasPrice: s(this.gasPrice), - maxPriorityFeePerGas: s(this.maxPriorityFeePerGas), - maxFeePerGas: s(this.maxFeePerGas), - value: s(this.value), - chainId: s(this.chainId), - sig: this.signature ? this.signature.toJSON() : null, - accessList: this.accessList, - inputsUTXO: processArrayWithBigInt(this.inputsUTXO || []), - outputsUTXO: processArrayWithBigInt(this.outputsUTXO || []), - }; -} + toJSON(): any { + const s = (v: null | bigint) => { + if (v == null) { return null; } + return v.toString(); + }; + + // Adjusted function to specifically handle the conversion of 'denomination' fields in array items + const processArrayWithBigInt = (arr: UTXOEntry[] | UTXOTransactionOutput[]) => { + return arr.map(item => ({ + address: item.address, + denomination: s(item.denomination) // Convert 'denomination' to string + })); + }; + + return { + type: this.type, + to: this.to, + //from: this.from, + data: this.data, + nonce: this.nonce, + gasLimit: s(this.gasLimit), + gasPrice: s(this.gasPrice), + maxPriorityFeePerGas: s(this.maxPriorityFeePerGas), + maxFeePerGas: s(this.maxFeePerGas), + value: s(this.value), + chainId: s(this.chainId), + sig: this.signature ? this.signature.toJSON() : null, + accessList: this.accessList, + inputsUTXO: processArrayWithBigInt(this.inputsUTXO || []), + outputsUTXO: processArrayWithBigInt(this.outputsUTXO || []), + }; + } + /** * Create a **Transaction** from a serialized transaction or a diff --git a/src.ts/wallet/base-wallet.ts b/src.ts/wallet/base-wallet.ts index 188ea2a8..be3e61b0 100644 --- a/src.ts/wallet/base-wallet.ts +++ b/src.ts/wallet/base-wallet.ts @@ -11,11 +11,6 @@ import type { TypedDataDomain, TypedDataField } from "../hash/index.js"; import type { Provider, TransactionRequest } from "../providers/index.js"; import type { TransactionLike } from "../transaction/index.js"; -// import { MuSigFactory } from "@brandonblack/musig" -// import { nobleCrypto } from "./musig-crypto.js"; -// import { UTXOTransaction } from "../transaction/utxo.js"; -// import { schnorr } from "@noble/curves/secp256k1"; - /** * The **BaseWallet** is a stream-lined implementation of a * [[Signer]] that operates with a private key. @@ -78,7 +73,6 @@ export class BaseWallet extends AbstractSigner { } async signTransaction(tx: TransactionRequest ): Promise { - console.log("signTransaction") // Replace any Addressable or ENS name with an address const { to, from } = await resolveProperties({ to: (tx.to ? resolveAddress(tx.to, this.provider): undefined), @@ -101,21 +95,6 @@ export class BaseWallet extends AbstractSigner { return btx.serialized; } - // async signUTXOTransaction(tx: UTXOTransaction, pk: Uint8Array): Promise { - // const factory = MuSigFactory(nobleCrypto); - - // //const transactionHash = tx.serialize() - - // // Check if there is only one private key - // if (pk.length === 1) { - // // Single key scenario: Perform a simple Schnorr signature - // const publicKey = factory.getXOnlyPubkey(pk[0]); - // const signature = schnorr.sign(transactionHash, BigInt(pk[0]), publicKey); - - // // Attach the signature to the transaction - // transaction.signature = signature; - // } - // } async signMessage(message: string | Uint8Array): Promise { return this.signMessageSync(message); diff --git a/src.ts/wallet/utxohdwallet.ts b/src.ts/wallet/utxohdwallet.ts index 5e570e41..d1bb276a 100644 --- a/src.ts/wallet/utxohdwallet.ts +++ b/src.ts/wallet/utxohdwallet.ts @@ -1,10 +1,14 @@ import { N, ShardData } from '../constants'; import { SigningKey } from "../crypto/index.js"; -import { BytesLike, Numeric, Provider, TransactionRequest, Wordlist, assertArgument, assertPrivate, computeHmac, dataSlice, defineProperties, getBytes, getNumber, getShardForAddress, hexlify, isBytesLike, isUTXOAddress, randomBytes, ripemd160, sha256, toBeHex, toBigInt } from '../quais.js'; +import { BytesLike, Numeric, Provider, Transaction, TransactionLike, TransactionRequest, Wordlist, assertArgument, assertPrivate, computeHmac, dataSlice, defineProperties, getBytes, getNumber, getShardForAddress, hexlify, isBytesLike, isUTXOAddress, randomBytes, ripemd160, sha256, toBeHex, toBigInt } from '../quais.js'; import { Mnemonic } from './mnemonic.js'; import { HardenedBit, derivePath, ser_I } from './utils.js'; import { BaseWallet } from "./base-wallet.js"; +import { MuSigFactory } from "@brandonblack/musig" +import { nobleCrypto } from "./musig-crypto.js"; +import { schnorr } from "@noble/curves/secp256k1"; +import { keccak_256 } from "@noble/hashes/sha3"; interface UTXOAddress { pubKey: string; @@ -80,6 +84,11 @@ export class UTXOHDWallet extends BaseWallet { get utxoAddresses(): UTXOAddress[] { return this.#utxoAddresses; } + + set utxoAddresses(addresses: UTXOAddress[]) { + this.#utxoAddresses = addresses; + } + /** * Gets the current publicKey */ @@ -201,7 +210,6 @@ export class UTXOHDWallet extends BaseWallet { } async generateUTXOs(zone: string, gap: number = 20 ){ - console.log("GENERATING UTXOS") zone = zone.toLowerCase(); // Check if zone is valid const shard = ShardData.find(shard => shard.name.toLowerCase() === zone || shard.nickname.toLowerCase() === zone || shard.byte.toLowerCase() === zone); @@ -221,19 +229,20 @@ export class UTXOHDWallet extends BaseWallet { const pubKey = wallet.address; const privKey = wallet.privateKey; - //check available utxos through node - //if ( have utxos) + /*check available utxos throught node JSONRPC call + if we have utxos at this address add it to currentUtxoAddresses + */ currentUtxoAddresses.push({ pubKey , privKey }); - console.log(wallet.path) - // empty = 0 - //else - empty ++ + //reset empty = 0 + + //else increment empty untill we have gap amount + empty ++ - //increment addrIndex in bip44 - accIndex ++; + //increment addrIndex in bip44 always + accIndex ++; } - console.log('UTXO addr:', currentUtxoAddresses) + this.utxoAddresses = currentUtxoAddresses; } /** @@ -268,7 +277,57 @@ export class UTXOHDWallet extends BaseWallet { } async signTransaction(tx: TransactionRequest): Promise { - console.log('herwhhhzafhdhdzhfgxzdhgvajhsvs', tx.type) - return 'hey'; + const txobj = Transaction.from((>tx)) + if (!txobj.inputsUTXO || !txobj.outputsUTXO) throw new Error('Invalid UTXO transaction, missing inputs or outputs') + + const hash = keccak_256(txobj.unsignedSerialized) + + const musig = MuSigFactory(nobleCrypto); + + if (txobj.inputsUTXO.length == 1){ + const pubKey = txobj.inputsUTXO[0].address + + const privKey = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === pubKey)?.privKey; + + if(!privKey) throw new Error(`Missing private key for ${pubKey}`) + + const signature = schnorr.sign(hash, BigInt(privKey)); + return hexlify(signature); + } else { + const privKeys = txobj.inputsUTXO.map(input => { + const utxoAddrObj = this.utxoAddresses.find(utxoAddr => utxoAddr.pubKey === input.address); + return utxoAddrObj ? utxoAddrObj.privKey : null; + }).filter(privKey => privKey !== null); + + const pubKeys: Uint8Array[] = privKeys.map(privKey => nobleCrypto.getPublicKey(getBytes(privKey!), true)).filter(pubKey => pubKey !== null) as Uint8Array[]; + + //const aggPublicKey = musig.getPlainPubkey(musig.keyAgg(pubKeys)); + + const nonces = pubKeys.map(pk => musig.nonceGen({publicKey: getBytes(pk!)})); + const aggNonce = musig.nonceAgg(nonces); + + const signingSession = musig.startSigningSession( + aggNonce, + hash, + pubKeys + ); + + //Each signer creates a partial signature + const partialSignatures = privKeys.map((sk, index) => + musig.partialSign({ + secretKey: getBytes(sk || ''), + publicNonce: nonces[index], + sessionKey: signingSession, + verify: true + }) + ); + + // Aggregate the partial signatures into a final aggregated signature + const finalSignature = musig.signAgg(partialSignatures, signingSession); + + // //Verify signature using schnorr + // const isValid = schnorr.verify(finalSignature, hash, aggPublicKey); + return hexlify(finalSignature); + } } } \ No newline at end of file diff --git a/src.ts/wallet/wallet.ts b/src.ts/wallet/wallet.ts index 1e8f2c69..f0b2f852 100644 --- a/src.ts/wallet/wallet.ts +++ b/src.ts/wallet/wallet.ts @@ -170,7 +170,6 @@ export class Wallet extends BaseWallet { if (provider) { return wallet.connect(provider); } return wallet; case 969: - console.log('utxo wallet') wallet = UTXOHDWallet.fromPhrase(phrase, path, undefined, wordlist); if (provider) { return wallet.connect(provider); } return wallet;