@arkade-os/sdk 0.4.65 → 0.4.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +3 -6
- package/dist/adapters/expo.d.ts +3 -6
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-Dq_UcvDx.d.ts → asyncStorageTaskQueue-B6SijMi3.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-Chwe60Ce.d.cts → asyncStorageTaskQueue-BZcIN7sA.d.cts} +1 -1
- package/dist/{chunk-3G5V564P.js → chunk-2JZGPXU4.js} +32 -6
- package/dist/chunk-2JZGPXU4.js.map +1 -0
- package/dist/{chunk-XN55B6EP.cjs → chunk-3S3JZUEN.cjs} +46 -19
- package/dist/chunk-3S3JZUEN.cjs.map +1 -0
- package/dist/{chunk-RESN6QHP.js → chunk-55ZZ6RBL.js} +4 -4
- package/dist/{chunk-RESN6QHP.js.map → chunk-55ZZ6RBL.js.map} +1 -1
- package/dist/{chunk-GFZNEMGL.cjs → chunk-5E6IZNRG.cjs} +428 -427
- package/dist/chunk-5E6IZNRG.cjs.map +1 -0
- package/dist/{chunk-XMOIRDLF.js → chunk-CYOI4PEA.js} +14 -6
- package/dist/chunk-CYOI4PEA.js.map +1 -0
- package/dist/{chunk-5YTSQSLE.js → chunk-DSC3G6QZ.js} +32 -31
- package/dist/chunk-DSC3G6QZ.js.map +1 -0
- package/dist/{chunk-SJQM5AVB.cjs → chunk-IM6IKNSL.cjs} +17 -17
- package/dist/{chunk-SJQM5AVB.cjs.map → chunk-IM6IKNSL.cjs.map} +1 -1
- package/dist/{chunk-TFSVXMTM.js → chunk-J33ZEM3A.js} +26 -18
- package/dist/chunk-J33ZEM3A.js.map +1 -0
- package/dist/{chunk-7X744EFF.cjs → chunk-LL47QIHD.cjs} +10 -10
- package/dist/{chunk-7X744EFF.cjs.map → chunk-LL47QIHD.cjs.map} +1 -1
- package/dist/{chunk-BABJ77NG.cjs → chunk-PXPPZF5K.cjs} +59 -50
- package/dist/chunk-PXPPZF5K.cjs.map +1 -0
- package/dist/{chunk-TYTPVPKD.js → chunk-R5POS3RS.js} +4 -4
- package/dist/{chunk-TYTPVPKD.js.map → chunk-R5POS3RS.js.map} +1 -1
- package/dist/{chunk-G552MISJ.cjs → chunk-ZIRFXBKL.cjs} +26 -18
- package/dist/chunk-ZIRFXBKL.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-Dv_9OVHv.d.ts → delegate-T-vgxMYZ.d.ts} +1 -1
- package/dist/{delegate-BBQW61ym.d.cts → delegate-YXupcWWJ.d.cts} +1 -1
- package/dist/{index-fDDiA1-L.d.ts → index-D_FgwLH9.d.ts} +2 -2
- package/dist/{index-BtTtQFUX.d.cts → index-e7LYXk1d.d.cts} +2 -2
- package/dist/{index-CFOMyVMt.d.cts → index-uUE_uQPn.d.cts} +70 -33
- package/dist/{index-CFOMyVMt.d.ts → index-uUE_uQPn.d.ts} +70 -33
- package/dist/index.cjs +284 -276
- package/dist/index.d.cts +30 -9
- package/dist/index.d.ts +30 -9
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-CIKOS2OO.d.cts → taskRunner-BOVcIH1N.d.cts} +1 -1
- package/dist/{taskRunner-BDzWbpct.d.ts → taskRunner-DNyD1kXG.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-C2NvHjWB.d.cts → wallet-CNibc3yJ.d.ts} +3 -3
- package/dist/{wallet-DJUnN939.d.ts → wallet-DJN1QgFt.d.cts} +3 -3
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3G5V564P.js.map +0 -1
- package/dist/chunk-5YTSQSLE.js.map +0 -1
- package/dist/chunk-BABJ77NG.cjs.map +0 -1
- package/dist/chunk-G552MISJ.cjs.map +0 -1
- package/dist/chunk-GFZNEMGL.cjs.map +0 -1
- package/dist/chunk-TFSVXMTM.js.map +0 -1
- package/dist/chunk-XMOIRDLF.js.map +0 -1
- package/dist/chunk-XN55B6EP.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AssetId, AssetGroup, AssetInput, AssetOutput, Metadata, Packet, BufferReader, BufferWriter, AssetRef, RestIndexerProvider } from './chunk-
|
|
2
|
-
import { witnessRefToBytes, validateProgram, toASM, stringifyArtifact, serializeArkadeContractParams, resolveAsm, parseArtifact, getOpcodeValue, getOpcodeName, fromASM, deserializeArkadeContractParams, computeArkadeScriptPublicKey, bytesToASM, asmToBytes, arkadeWitnessHash, arkadeScriptHash, SUPPORTED_PROGRAM_VERSION, OPCODE_VALUES, OPCODE_NAMES, bignum_exports, ArkadeScript, ArkadeProgramScript, ARKADE_OPS, ARKADE_OPCODE_VALUES, ARKADE_OPCODE_NAMES, ARKADE_OPCODES, ARKADE_OP, inputName, contractHandlers, isMainnetDescriptor, descriptorIsOurs, deriveDescriptorLeafPubKey, deriveDescriptorLeafCompressedPubKey, parseHDDescriptor, DefaultVtxo, speculativeReceiveMetadata, DelegateVtxo, WALLET_RECEIVE_SOURCE, BoardingContractHandler, identityDescriptor } from './chunk-
|
|
3
|
-
import { VtxoScript, Transaction, isRecoverable, CSVMultisigTapscript, DEFAULT_NETWORK, resolveEmulatorPubkey, hasTerminalSpend, getNormalizedVtxos, setArkPsbtField, PrevArkTxField, ConditionWitness, craftToSpendTx, ArkAddress, isVirtualCoin, getArkPsbtFields, CosignerPublicKey, ServerResponseMismatchError, OP_RETURN_EMPTY_PKSCRIPT, sequenceToTimelock, decodeTapscript, scriptFromTapLeafScript, CLTVMultisigTapscript, VtxoTaprootTree, timelockToSequence, baseFetch, Intent, rateGate, DEFAULT_NETWORK_NAME, normalizeVtxo, getSequence, toBatchExpiry, maybeArkError, isArkError, ArkErrorName, toOffchainInputFeeParams, canRecoverOnchain, getNetwork, MultisigTapscript, isEventSourceError, isEventSourceUnavailableError, isRetryableProviderError, getAllNormalizedVtxos, DEFAULT_PAGE_SIZE, RestArkProvider, toVirtualStatus, ArkError, TapTreeCoder, resolveTimeHeight, canSpendOffchain, parseLegacyExpiry, isExpired, DEFAULT_ARKADE_SERVER_URL, ProviderUnavailableError, networks as networks$1, isPastExpiry, fetchVtxoCreatedAtByTxid } from './chunk-
|
|
1
|
+
import { AssetId, AssetGroup, AssetInput, AssetOutput, Metadata, Packet, BufferReader, BufferWriter, AssetRef, RestIndexerProvider } from './chunk-2JZGPXU4.js';
|
|
2
|
+
import { witnessRefToBytes, validateProgram, toASM, stringifyArtifact, serializeArkadeContractParams, resolveAsm, parseArtifact, getOpcodeValue, getOpcodeName, fromASM, deserializeArkadeContractParams, computeArkadeScriptPublicKey, bytesToASM, asmToBytes, arkadeWitnessHash, arkadeScriptHash, SUPPORTED_PROGRAM_VERSION, OPCODE_VALUES, OPCODE_NAMES, bignum_exports, ArkadeScript, ArkadeProgramScript, ARKADE_OPS, ARKADE_OPCODE_VALUES, ARKADE_OPCODE_NAMES, ARKADE_OPCODES, ARKADE_OP, toXOnly, inputName, contractHandlers, isMainnetDescriptor, descriptorIsOurs, deriveDescriptorLeafPubKey, deriveDescriptorLeafCompressedPubKey, parseHDDescriptor, DefaultVtxo, speculativeReceiveMetadata, DelegateVtxo, WALLET_RECEIVE_SOURCE, BoardingContractHandler, identityDescriptor } from './chunk-CYOI4PEA.js';
|
|
3
|
+
import { VtxoScript, Transaction, isRecoverable, CSVMultisigTapscript, DEFAULT_NETWORK, resolveEmulatorPubkey, hasTerminalSpend, getNormalizedVtxos, setArkPsbtField, PrevArkTxField, ConditionWitness, craftToSpendTx, ArkAddress, isVirtualCoin, getArkPsbtFields, CosignerPublicKey, ServerResponseMismatchError, OP_RETURN_EMPTY_PKSCRIPT, sequenceToTimelock, decodeTapscript, scriptFromTapLeafScript, CLTVMultisigTapscript, VtxoTaprootTree, timelockToSequence, baseFetch, Intent, rateGate, DEFAULT_NETWORK_NAME, normalizeVtxo, getSequence, toBatchExpiry, maybeArkError, isArkError, ArkErrorName, toOffchainInputFeeParams, canRecoverOnchain, getNetwork, MultisigTapscript, isEventSourceError, isEventSourceUnavailableError, isRetryableProviderError, getAllNormalizedVtxos, DEFAULT_PAGE_SIZE, RestArkProvider, toVirtualStatus, ArkError, TapTreeCoder, resolveTimeHeight, canSpendOffchain, parseLegacyExpiry, isExpired, DEFAULT_ARKADE_SERVER_URL, ProviderUnavailableError, networks as networks$1, isPastExpiry, fetchVtxoCreatedAtByTxid } from './chunk-J33ZEM3A.js';
|
|
4
4
|
import { __export } from './chunk-NSBPE2FW.js';
|
|
5
5
|
import { sha256 as sha256$1, equalBytes, hash160, sha256x2, concatBytes, randomPrivateKeyBytes, pubECDSA, pubSchnorr } from '@scure/btc-signer/utils.js';
|
|
6
6
|
import { SigHash, Script, OP, OutScript, Address, RawWitness, p2tr, p2wpkh, TaprootControlBlock, DEFAULT_SEQUENCE, Transaction as Transaction$2 } from '@scure/btc-signer';
|
|
@@ -2796,8 +2796,7 @@ function selectedCoinsToAssetInputs(selectedCoins) {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
function toXOnlySignerHex(pubkeyHex) {
|
|
2798
2798
|
const bytes = hex.decode(pubkeyHex);
|
|
2799
|
-
if (bytes.length === 33) return hex.encode(bytes
|
|
2800
|
-
if (bytes.length === 32) return hex.encode(bytes);
|
|
2799
|
+
if (bytes.length === 32 || bytes.length === 33) return hex.encode(toXOnly(bytes, "signer key"));
|
|
2801
2800
|
throw new Error(`invalid signer pubkey length: expected 32 or 33 bytes, got ${bytes.length}`);
|
|
2802
2801
|
}
|
|
2803
2802
|
function signerSetFromInfo(info) {
|
|
@@ -3267,9 +3266,7 @@ async function submitOffchainTx(provider, offchainTx, signer, hooks, options) {
|
|
|
3267
3266
|
);
|
|
3268
3267
|
}
|
|
3269
3268
|
const finalArkTx = Transaction.fromPSBT(base64.decode(response.finalArkTx));
|
|
3270
|
-
const serverPubkeyHex = hex.encode(
|
|
3271
|
-
verify.serverPubkey.length === 33 ? verify.serverPubkey.subarray(1) : verify.serverPubkey
|
|
3272
|
-
);
|
|
3269
|
+
const serverPubkeyHex = hex.encode(toXOnly(verify.serverPubkey, "server key"));
|
|
3273
3270
|
for (let i = 0; i < offchainTx.arkTx.inputsLength; i++) {
|
|
3274
3271
|
assertServerSignedLeaf(
|
|
3275
3272
|
finalArkTx,
|
|
@@ -6129,6 +6126,8 @@ function serializeArkInfoSnapshot(info, savedAt) {
|
|
|
6129
6126
|
unilateralExitDelay: info.unilateralExitDelay.toString(),
|
|
6130
6127
|
boardingExitDelay: info.boardingExitDelay.toString(),
|
|
6131
6128
|
vtxoTreeExpiry: info.vtxoTreeExpiry?.toString(),
|
|
6129
|
+
maxTxWeight: info.maxTxWeight?.toString(),
|
|
6130
|
+
maxOpReturnOutputs: info.maxOpReturnOutputs?.toString(),
|
|
6132
6131
|
sessionDuration: info.sessionDuration.toString(),
|
|
6133
6132
|
dust: info.dust.toString(),
|
|
6134
6133
|
fees: info.fees,
|
|
@@ -6179,6 +6178,8 @@ function hydrateArkInfo(snapshot) {
|
|
|
6179
6178
|
signerPubkey: a.signerPubkey,
|
|
6180
6179
|
unilateralExitDelay: BigInt(a.unilateralExitDelay),
|
|
6181
6180
|
vtxoTreeExpiry: a.vtxoTreeExpiry !== void 0 ? BigInt(a.vtxoTreeExpiry) : void 0,
|
|
6181
|
+
maxTxWeight: a.maxTxWeight !== void 0 ? BigInt(a.maxTxWeight) : void 0,
|
|
6182
|
+
maxOpReturnOutputs: a.maxOpReturnOutputs !== void 0 ? BigInt(a.maxOpReturnOutputs) : void 0,
|
|
6182
6183
|
utxoMaxAmount: BigInt(a.utxoMaxAmount),
|
|
6183
6184
|
utxoMinAmount: BigInt(a.utxoMinAmount),
|
|
6184
6185
|
version: a.version,
|
|
@@ -6251,8 +6252,10 @@ function parseStoredArkInfoSnapshot(raw) {
|
|
|
6251
6252
|
]) {
|
|
6252
6253
|
assertDecimalString(a[field], `arkInfo.${field}`);
|
|
6253
6254
|
}
|
|
6254
|
-
|
|
6255
|
-
|
|
6255
|
+
for (const field of ["vtxoTreeExpiry", "maxTxWeight", "maxOpReturnOutputs"]) {
|
|
6256
|
+
if (a[field] !== void 0) {
|
|
6257
|
+
assertDecimalString(a[field], `arkInfo.${field}`);
|
|
6258
|
+
}
|
|
6256
6259
|
}
|
|
6257
6260
|
assertFeeInfo(a.fees, "arkInfo.fees");
|
|
6258
6261
|
if (!Array.isArray(a.deprecatedSigners)) {
|
|
@@ -11941,11 +11944,6 @@ function extractArkProviderUrl(provider) {
|
|
|
11941
11944
|
var DEFAULT_LOOK_AHEAD_WINDOW = 20;
|
|
11942
11945
|
var MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD = 1e3;
|
|
11943
11946
|
var MAINNET_UNILATERAL_EXIT_DELAY = 605184n;
|
|
11944
|
-
function toXOnlyPubKey(pubkey) {
|
|
11945
|
-
if (pubkey.length === 33) return pubkey.slice(1);
|
|
11946
|
-
if (pubkey.length === 32) return pubkey;
|
|
11947
|
-
throw new Error(`invalid signer pubkey length: expected 32 or 33, got ${pubkey.length}`);
|
|
11948
|
-
}
|
|
11949
11947
|
function delayToTimelock(delay) {
|
|
11950
11948
|
return {
|
|
11951
11949
|
value: delay,
|
|
@@ -12405,8 +12403,8 @@ var ReadonlyWallet = class _ReadonlyWallet {
|
|
|
12405
12403
|
value: info.boardingExitDelay,
|
|
12406
12404
|
type: info.boardingExitDelay < 512n ? "blocks" : "seconds"
|
|
12407
12405
|
};
|
|
12408
|
-
const serverPubKey = hex.decode(info.signerPubkey)
|
|
12409
|
-
const delegatePubKey = config.delegateProvider ? await config.delegateProvider.getDelegateInfo().then((info2) => hex.decode(info2.pubkey)
|
|
12406
|
+
const serverPubKey = toXOnly(hex.decode(info.signerPubkey), "ark signer key");
|
|
12407
|
+
const delegatePubKey = config.delegateProvider ? await config.delegateProvider.getDelegateInfo().then((info2) => toXOnly(hex.decode(info2.pubkey), "delegate key")).catch(() => void 0) : config.delegatorProvider ? await config.delegatorProvider.getDelegateInfo().then((info2) => toXOnly(hex.decode(info2.pubkey), "delegate key")).catch(() => void 0) : void 0;
|
|
12410
12408
|
const offchainOptions = {
|
|
12411
12409
|
pubKey,
|
|
12412
12410
|
serverPubKey,
|
|
@@ -13684,7 +13682,7 @@ var Wallet2 = class _Wallet extends ReadonlyWallet {
|
|
|
13684
13682
|
* the stable public API.
|
|
13685
13683
|
*/
|
|
13686
13684
|
async rotateServerSigner(newServerPubKey, checkpointTapscript) {
|
|
13687
|
-
const xonly =
|
|
13685
|
+
const xonly = toXOnly(newServerPubKey, "ark signer key");
|
|
13688
13686
|
const newServerUnrollScript = assertValidServerUnrollScript(
|
|
13689
13687
|
checkpointTapscript,
|
|
13690
13688
|
resolveCheckpointExitDelayPolicy(this.network, this.checkpointExitDelayPolicy)
|
|
@@ -13863,9 +13861,9 @@ var Wallet2 = class _Wallet extends ReadonlyWallet {
|
|
|
13863
13861
|
const materialize = (index) => hd ? provider.materializeDescriptorAt(index) : staticDescriptor;
|
|
13864
13862
|
const delegatePubKey = this.offchainTapscript instanceof DelegateVtxo.Script ? this.offchainTapscript.options.delegatePubKey : void 0;
|
|
13865
13863
|
const arkInfo = await this.arkProvider.getInfo();
|
|
13866
|
-
const currentSignerPubKey =
|
|
13864
|
+
const currentSignerPubKey = toXOnly(hex.decode(arkInfo.signerPubkey), "ark signer key");
|
|
13867
13865
|
const deprecatedSignerPubKeys = arkInfo.deprecatedSigners.map(
|
|
13868
|
-
(s) =>
|
|
13866
|
+
(s) => toXOnly(hex.decode(s.pubkey), "deprecated signer key")
|
|
13869
13867
|
);
|
|
13870
13868
|
const deps = {
|
|
13871
13869
|
indexerProvider: this.indexerProvider,
|
|
@@ -13994,7 +13992,7 @@ var Wallet2 = class _Wallet extends ReadonlyWallet {
|
|
|
13994
13992
|
throw new Error("Invalid configured public key");
|
|
13995
13993
|
}
|
|
13996
13994
|
const setup = await ReadonlyWallet.setupWalletConfig(config, pubkey);
|
|
13997
|
-
const forfeitPubkey = hex.decode(setup.info.forfeitPubkey)
|
|
13995
|
+
const forfeitPubkey = toXOnly(hex.decode(setup.info.forfeitPubkey), "forfeit key");
|
|
13998
13996
|
const forfeitAddress = Address(setup.network).decode(setup.info.forfeitAddress);
|
|
13999
13997
|
const forfeitOutputScript = OutScript.encode(forfeitAddress);
|
|
14000
13998
|
const checkpointExitDelayOverrides = {
|
|
@@ -14664,9 +14662,11 @@ var Wallet2 = class _Wallet extends ReadonlyWallet {
|
|
|
14664
14662
|
if (!sweepTapTreeRoot) {
|
|
14665
14663
|
throw new Error("Sweep tap tree root not set");
|
|
14666
14664
|
}
|
|
14667
|
-
const xOnlyPublicKeys = event.cosignersPublicKeys.map(
|
|
14665
|
+
const xOnlyPublicKeys = event.cosignersPublicKeys.map(
|
|
14666
|
+
(k) => hex.encode(toXOnly(hex.decode(k), "cosigner key"))
|
|
14667
|
+
);
|
|
14668
14668
|
const signerPublicKey = await session.getPublicKey();
|
|
14669
|
-
const xonlySignerPublicKey = signerPublicKey
|
|
14669
|
+
const xonlySignerPublicKey = toXOnly(signerPublicKey, "signer key");
|
|
14670
14670
|
if (!xOnlyPublicKeys.includes(hex.encode(xonlySignerPublicKey))) {
|
|
14671
14671
|
return { skip: true };
|
|
14672
14672
|
}
|
|
@@ -21656,15 +21656,17 @@ function createArkadeBatchHandler(intentId, inputs, signer, signedProof, message
|
|
|
21656
21656
|
batchId = event.id;
|
|
21657
21657
|
const sweepTapscript = CSVMultisigTapscript.encode({
|
|
21658
21658
|
timelock,
|
|
21659
|
-
pubkeys: [hex.decode(info.forfeitPubkey)
|
|
21659
|
+
pubkeys: [toXOnly(hex.decode(info.forfeitPubkey), "forfeit key")]
|
|
21660
21660
|
}).script;
|
|
21661
21661
|
sweepTapTreeRoot = tapLeafHash(sweepTapscript);
|
|
21662
21662
|
return { skip: false };
|
|
21663
21663
|
},
|
|
21664
21664
|
onTreeSigningStarted: async (event, vtxoTree) => {
|
|
21665
21665
|
const signerPubKey = await session.getPublicKey();
|
|
21666
|
-
const xonlySignerPubKey = signerPubKey
|
|
21667
|
-
const xOnlyPubkeys = event.cosignersPublicKeys.map(
|
|
21666
|
+
const xonlySignerPubKey = toXOnly(signerPubKey, "signer key");
|
|
21667
|
+
const xOnlyPubkeys = event.cosignersPublicKeys.map(
|
|
21668
|
+
(k) => hex.encode(toXOnly(hex.decode(k), "cosigner key"))
|
|
21669
|
+
);
|
|
21668
21670
|
if (!xOnlyPubkeys.includes(hex.encode(xonlySignerPubKey))) {
|
|
21669
21671
|
return { skip: true };
|
|
21670
21672
|
}
|
|
@@ -21847,7 +21849,7 @@ var Arkade = class _Arkade {
|
|
|
21847
21849
|
/** Connect and resolve the server key, checkpoint closure and (if present) the co-signer key. */
|
|
21848
21850
|
static async connect(opts) {
|
|
21849
21851
|
const info = await opts.arkade.getInfo();
|
|
21850
|
-
const serverKey = hex.decode(info.signerPubkey)
|
|
21852
|
+
const serverKey = toXOnly(hex.decode(info.signerPubkey), "ark signer key");
|
|
21851
21853
|
const checkpoint = CSVMultisigTapscript.decode(hex.decode(info.checkpointTapscript));
|
|
21852
21854
|
const network = opts.network ?? DEFAULT_NETWORK;
|
|
21853
21855
|
let emulatorKey;
|
|
@@ -21856,8 +21858,7 @@ var Arkade = class _Arkade {
|
|
|
21856
21858
|
}
|
|
21857
21859
|
let userKey;
|
|
21858
21860
|
if (opts.identity) {
|
|
21859
|
-
|
|
21860
|
-
userKey = pub.length === 33 ? pub.slice(1) : pub;
|
|
21861
|
+
userKey = toXOnly(await opts.identity.xOnlyPublicKey(), "identity key");
|
|
21861
21862
|
}
|
|
21862
21863
|
return new _Arkade({
|
|
21863
21864
|
arkProvider: opts.arkade,
|
|
@@ -22633,5 +22634,5 @@ function createDefaultPaymentRouter(wallet) {
|
|
|
22633
22634
|
*/
|
|
22634
22635
|
|
|
22635
22636
|
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ActivityRegistry, AmbiguousRouteError, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, ChainedTxType, ConnectionDisposedError, ContractManager, ContractRepositoryImpl, ContractWatcher, DB_VERSION, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, PaymentRouter, REGTEST_MIN_BATCH_EXPIRY_SECONDS, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestDelegatorProvider, RestEmulatorProvider, SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet2 as Wallet, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepositoryImpl, WsElectrumChainSource, adoptContractDescriptor, arkRail, arkTarget, arkade_exports, assertFinalCommitmentMatchesValidated, assertIntentIdUnique, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeAssets, deserializeExitPackage, deserializeUtxo, deserializeVtxo, encodeArkContract, extendVirtualCoinForContract, gateExclusion, gatedContracts, getAllByIndexValues, getMigrationStatus, getRandomId, hasBoardingTxExpired, hasCandidates, intentMatchesFilter, intentPageBounds, invoiceTarget, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, isVtxoForScript, isWatchedContract, logExcludedVtxos, makeHandle, matchServerCheckpoints, mergeChainedTxType, migrateWalletRepository, onchainRail, openDatabase, outpointExclusion, outpointReasons, promisifyRequest, provisionClaimSecret, provisionRefundKey, requiresMigration, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolveSendAmount, rollbackMigration, saveVtxosForContract, scriptFromArkAddress, selectCoinsWithAsset, selectVirtualCoins, serializeAssets, serializeExitPackage, serializeUtxo, serializeVtxo, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, warnAndFilterVtxosForScript };
|
|
22636
|
-
//# sourceMappingURL=chunk-
|
|
22637
|
-
//# sourceMappingURL=chunk-
|
|
22637
|
+
//# sourceMappingURL=chunk-DSC3G6QZ.js.map
|
|
22638
|
+
//# sourceMappingURL=chunk-DSC3G6QZ.js.map
|