@arkade-os/sdk 0.4.26 → 0.4.28
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/README.md +36 -125
- package/dist/adapters/asyncStorage.cjs +48 -0
- package/dist/adapters/asyncStorage.cjs.map +1 -0
- package/dist/adapters/asyncStorage.d.cts +16 -0
- package/dist/{types/storage → adapters}/asyncStorage.d.ts +5 -2
- package/dist/adapters/asyncStorage.js +46 -0
- package/dist/adapters/asyncStorage.js.map +1 -0
- package/dist/adapters/expo.cjs +19 -0
- package/dist/adapters/expo.cjs.map +1 -0
- package/dist/adapters/expo.d.cts +48 -0
- package/dist/adapters/expo.d.ts +48 -0
- package/dist/adapters/expo.js +6 -0
- package/dist/adapters/expo.js.map +1 -0
- package/dist/adapters/fileSystem.cjs +116 -0
- package/dist/adapters/fileSystem.cjs.map +1 -0
- package/dist/adapters/fileSystem.d.cts +17 -0
- package/dist/{types/storage → adapters}/fileSystem.d.ts +5 -2
- package/dist/adapters/fileSystem.js +93 -0
- package/dist/adapters/fileSystem.js.map +1 -0
- package/dist/adapters/indexedDB.cjs +103 -0
- package/dist/adapters/indexedDB.cjs.map +1 -0
- package/dist/adapters/indexedDB.d.cts +18 -0
- package/dist/{types/storage → adapters}/indexedDB.d.ts +5 -2
- package/dist/adapters/indexedDB.js +101 -0
- package/dist/adapters/indexedDB.js.map +1 -0
- package/dist/adapters/localStorage.cjs +50 -0
- package/dist/adapters/localStorage.cjs.map +1 -0
- package/dist/{types/storage/inMemory.d.ts → adapters/localStorage.d.cts} +6 -3
- package/dist/{types/storage → adapters}/localStorage.d.ts +5 -2
- package/dist/adapters/localStorage.js +48 -0
- package/dist/adapters/localStorage.js.map +1 -0
- package/dist/ark-TZ1gXAXU.d.cts +3880 -0
- package/dist/ark-TZ1gXAXU.d.ts +3880 -0
- package/dist/{types/worker/expo/asyncStorageTaskQueue.d.ts → asyncStorageTaskQueue-Cb1F_Z9s.d.ts} +6 -3
- package/dist/asyncStorageTaskQueue-EFqSmYTg.d.cts +49 -0
- package/dist/chunk-5BLDMQED.cjs +18 -0
- package/dist/chunk-5BLDMQED.cjs.map +1 -0
- package/dist/chunk-5PG7DV7A.cjs +805 -0
- package/dist/chunk-5PG7DV7A.cjs.map +1 -0
- package/dist/chunk-A3EMF7RN.js +95 -0
- package/dist/chunk-A3EMF7RN.js.map +1 -0
- package/dist/chunk-ADV27S4N.cjs +2701 -0
- package/dist/chunk-ADV27S4N.cjs.map +1 -0
- package/dist/chunk-BQLHADL7.js +13805 -0
- package/dist/chunk-BQLHADL7.js.map +1 -0
- package/dist/chunk-CFZMTDWI.js +209 -0
- package/dist/chunk-CFZMTDWI.js.map +1 -0
- package/dist/chunk-FG5ACJJW.cjs +212 -0
- package/dist/chunk-FG5ACJJW.cjs.map +1 -0
- package/dist/chunk-HW3JJ323.js +768 -0
- package/dist/chunk-HW3JJ323.js.map +1 -0
- package/dist/chunk-I3DGUUCT.cjs +838 -0
- package/dist/chunk-I3DGUUCT.cjs.map +1 -0
- package/dist/chunk-IPX2R7FR.cjs +100 -0
- package/dist/chunk-IPX2R7FR.cjs.map +1 -0
- package/dist/chunk-NSBPE2FW.js +15 -0
- package/dist/chunk-NSBPE2FW.js.map +1 -0
- package/dist/chunk-T64LAI7L.js +829 -0
- package/dist/chunk-T64LAI7L.js.map +1 -0
- package/dist/chunk-ZBUDLTBO.js +2671 -0
- package/dist/chunk-ZBUDLTBO.js.map +1 -0
- package/dist/chunk-ZLO6NETT.cjs +13910 -0
- package/dist/chunk-ZLO6NETT.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +26 -0
- package/dist/contracts/handlers/index.cjs.map +1 -0
- package/dist/contracts/handlers/index.d.cts +7 -0
- package/dist/contracts/handlers/index.d.ts +7 -0
- package/dist/contracts/handlers/index.js +5 -0
- package/dist/contracts/handlers/index.js.map +1 -0
- package/dist/delegate-BFZs69hp.d.cts +84 -0
- package/dist/delegate-aaVGfWsV.d.ts +84 -0
- package/dist/index-B22cA64m.d.cts +199 -0
- package/dist/{types/storage/index.d.ts → index-C0IanN1m.d.cts} +3 -1
- package/dist/index-C0IanN1m.d.ts +11 -0
- package/dist/index-NDla_UoJ.d.ts +199 -0
- package/dist/index.cjs +480 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3343 -0
- package/dist/index.d.ts +3343 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/repositories/realm/index.cjs +513 -0
- package/dist/repositories/realm/index.cjs.map +1 -0
- package/dist/repositories/realm/index.d.cts +217 -0
- package/dist/{types/repositories/realm/schemas.d.ts → repositories/realm/index.d.ts} +80 -112
- package/dist/repositories/realm/index.js +507 -0
- package/dist/repositories/realm/index.js.map +1 -0
- package/dist/repositories/sqlite/index.cjs +588 -0
- package/dist/repositories/sqlite/index.cjs.map +1 -0
- package/dist/repositories/sqlite/index.d.cts +118 -0
- package/dist/{types/repositories/sqlite/walletRepository.d.ts → repositories/sqlite/index.d.ts} +58 -5
- package/dist/repositories/sqlite/index.js +585 -0
- package/dist/repositories/sqlite/index.js.map +1 -0
- package/dist/taskRunner-C6Ff4OaU.d.cts +114 -0
- package/dist/taskRunner-yvPN8Z0K.d.ts +114 -0
- package/dist/wallet/expo/background.cjs +93 -0
- package/dist/wallet/expo/background.cjs.map +1 -0
- package/dist/wallet/expo/background.d.cts +84 -0
- package/dist/wallet/expo/background.d.ts +84 -0
- package/dist/wallet/expo/background.js +68 -0
- package/dist/wallet/expo/background.js.map +1 -0
- package/dist/wallet/expo/index.cjs +171 -0
- package/dist/wallet/expo/index.cjs.map +1 -0
- package/dist/wallet/expo/index.d.cts +122 -0
- package/dist/{types/wallet/expo/wallet.d.ts → wallet/expo/index.d.ts} +45 -22
- package/dist/wallet/expo/index.js +169 -0
- package/dist/wallet/expo/index.js.map +1 -0
- package/dist/wallet-AF-p-OWj.d.cts +774 -0
- package/dist/wallet-D9NBRqvC.d.ts +774 -0
- package/dist/worker/expo/index.cjs +140 -0
- package/dist/worker/expo/index.cjs.map +1 -0
- package/dist/worker/expo/index.d.cts +29 -0
- package/dist/worker/expo/index.d.ts +29 -0
- package/dist/worker/expo/index.js +121 -0
- package/dist/worker/expo/index.js.map +1 -0
- package/package.json +110 -76
- package/dist/cjs/adapters/asyncStorage.js +0 -5
- package/dist/cjs/adapters/expo.js +0 -8
- package/dist/cjs/adapters/fileSystem.js +0 -5
- package/dist/cjs/adapters/indexedDB.js +0 -5
- package/dist/cjs/adapters/localStorage.js +0 -5
- package/dist/cjs/arkfee/celenv.js +0 -43
- package/dist/cjs/arkfee/estimator.js +0 -143
- package/dist/cjs/arkfee/index.js +0 -5
- package/dist/cjs/arkfee/types.js +0 -26
- package/dist/cjs/arknote/index.js +0 -128
- package/dist/cjs/bip322/index.js +0 -270
- package/dist/cjs/contracts/arkcontract.js +0 -147
- package/dist/cjs/contracts/contractManager.js +0 -629
- package/dist/cjs/contracts/contractWatcher.js +0 -598
- package/dist/cjs/contracts/handlers/default.js +0 -93
- package/dist/cjs/contracts/handlers/delegate.js +0 -90
- package/dist/cjs/contracts/handlers/helpers.js +0 -115
- package/dist/cjs/contracts/handlers/index.js +0 -19
- package/dist/cjs/contracts/handlers/registry.js +0 -89
- package/dist/cjs/contracts/handlers/vhtlc.js +0 -194
- package/dist/cjs/contracts/index.js +0 -41
- package/dist/cjs/contracts/types.js +0 -2
- package/dist/cjs/contracts/vtxoOwnership.js +0 -78
- package/dist/cjs/extension/asset/assetGroup.js +0 -228
- package/dist/cjs/extension/asset/assetId.js +0 -152
- package/dist/cjs/extension/asset/assetInput.js +0 -222
- package/dist/cjs/extension/asset/assetOutput.js +0 -174
- package/dist/cjs/extension/asset/assetRef.js +0 -148
- package/dist/cjs/extension/asset/index.js +0 -23
- package/dist/cjs/extension/asset/metadata.js +0 -187
- package/dist/cjs/extension/asset/packet.js +0 -114
- package/dist/cjs/extension/asset/types.js +0 -22
- package/dist/cjs/extension/asset/utils.js +0 -105
- package/dist/cjs/extension/index.js +0 -254
- package/dist/cjs/extension/packet.js +0 -20
- package/dist/cjs/forfeit.js +0 -45
- package/dist/cjs/identity/descriptor.js +0 -169
- package/dist/cjs/identity/descriptorProvider.js +0 -2
- package/dist/cjs/identity/hdCapableIdentity.js +0 -2
- package/dist/cjs/identity/index.js +0 -38
- package/dist/cjs/identity/seedIdentity.js +0 -461
- package/dist/cjs/identity/serialize.js +0 -171
- package/dist/cjs/identity/singleKey.js +0 -126
- package/dist/cjs/identity/staticDescriptorProvider.js +0 -65
- package/dist/cjs/index.js +0 -200
- package/dist/cjs/intent/index.js +0 -259
- package/dist/cjs/musig2/index.js +0 -11
- package/dist/cjs/musig2/keys.js +0 -57
- package/dist/cjs/musig2/nonces.js +0 -48
- package/dist/cjs/musig2/sign.js +0 -102
- package/dist/cjs/networks.js +0 -26
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/providers/ark.js +0 -577
- package/dist/cjs/providers/delegator.js +0 -85
- package/dist/cjs/providers/electrum.js +0 -869
- package/dist/cjs/providers/errors.js +0 -59
- package/dist/cjs/providers/expoArk.js +0 -82
- package/dist/cjs/providers/expoIndexer.js +0 -111
- package/dist/cjs/providers/expoUtils.js +0 -124
- package/dist/cjs/providers/indexer.js +0 -630
- package/dist/cjs/providers/onchain.js +0 -262
- package/dist/cjs/providers/utils.js +0 -121
- package/dist/cjs/repositories/contractRepository.js +0 -2
- package/dist/cjs/repositories/inMemory/contractRepository.js +0 -55
- package/dist/cjs/repositories/inMemory/walletRepository.js +0 -115
- package/dist/cjs/repositories/index.js +0 -34
- package/dist/cjs/repositories/indexedDB/contractRepository.js +0 -187
- package/dist/cjs/repositories/indexedDB/db.js +0 -19
- package/dist/cjs/repositories/indexedDB/manager.js +0 -100
- package/dist/cjs/repositories/indexedDB/schema.js +0 -204
- package/dist/cjs/repositories/indexedDB/walletRepository.js +0 -474
- package/dist/cjs/repositories/indexedDB/websqlAdapter.js +0 -144
- package/dist/cjs/repositories/migrations/contractRepositoryImpl.js +0 -127
- package/dist/cjs/repositories/migrations/fromStorageAdapter.js +0 -66
- package/dist/cjs/repositories/migrations/walletRepositoryImpl.js +0 -184
- package/dist/cjs/repositories/realm/contractRepository.js +0 -116
- package/dist/cjs/repositories/realm/index.js +0 -11
- package/dist/cjs/repositories/realm/schemas.js +0 -157
- package/dist/cjs/repositories/realm/types.js +0 -7
- package/dist/cjs/repositories/realm/walletRepository.js +0 -305
- package/dist/cjs/repositories/scriptFromAddress.js +0 -16
- package/dist/cjs/repositories/serialization.js +0 -82
- package/dist/cjs/repositories/sqlite/contractRepository.js +0 -135
- package/dist/cjs/repositories/sqlite/index.js +0 -7
- package/dist/cjs/repositories/sqlite/types.js +0 -2
- package/dist/cjs/repositories/sqlite/walletRepository.js +0 -441
- package/dist/cjs/repositories/walletRepository.js +0 -2
- package/dist/cjs/script/address.js +0 -108
- package/dist/cjs/script/base.js +0 -185
- package/dist/cjs/script/default.js +0 -57
- package/dist/cjs/script/delegate.js +0 -53
- package/dist/cjs/script/tapscript.js +0 -619
- package/dist/cjs/script/vhtlc.js +0 -170
- package/dist/cjs/storage/asyncStorage.js +0 -50
- package/dist/cjs/storage/fileSystem.js +0 -141
- package/dist/cjs/storage/inMemory.js +0 -24
- package/dist/cjs/storage/index.js +0 -2
- package/dist/cjs/storage/indexedDB.js +0 -101
- package/dist/cjs/storage/localStorage.js +0 -51
- package/dist/cjs/tree/signingSession.js +0 -229
- package/dist/cjs/tree/txTree.js +0 -192
- package/dist/cjs/tree/validation.js +0 -107
- package/dist/cjs/utils/anchor.js +0 -35
- package/dist/cjs/utils/arkTransaction.js +0 -271
- package/dist/cjs/utils/bip21.js +0 -127
- package/dist/cjs/utils/syncCursors.js +0 -128
- package/dist/cjs/utils/timelock.js +0 -59
- package/dist/cjs/utils/transaction.js +0 -28
- package/dist/cjs/utils/transactionHistory.js +0 -183
- package/dist/cjs/utils/txSizeEstimator.js +0 -132
- package/dist/cjs/utils/unknownFields.js +0 -174
- package/dist/cjs/wallet/asset-manager.js +0 -330
- package/dist/cjs/wallet/asset.js +0 -119
- package/dist/cjs/wallet/batch.js +0 -183
- package/dist/cjs/wallet/delegator.js +0 -302
- package/dist/cjs/wallet/expo/background.js +0 -116
- package/dist/cjs/wallet/expo/index.js +0 -9
- package/dist/cjs/wallet/expo/wallet.js +0 -230
- package/dist/cjs/wallet/hdDescriptorProvider.js +0 -159
- package/dist/cjs/wallet/index.js +0 -82
- package/dist/cjs/wallet/onchain.js +0 -290
- package/dist/cjs/wallet/ramps.js +0 -216
- package/dist/cjs/wallet/serviceWorker/wallet-message-handler.js +0 -953
- package/dist/cjs/wallet/serviceWorker/wallet.js +0 -1173
- package/dist/cjs/wallet/unroll.js +0 -289
- package/dist/cjs/wallet/utils.js +0 -111
- package/dist/cjs/wallet/validation.js +0 -154
- package/dist/cjs/wallet/vtxo-manager.js +0 -1142
- package/dist/cjs/wallet/wallet.js +0 -2049
- package/dist/cjs/worker/browser/service-worker-manager.js +0 -183
- package/dist/cjs/worker/browser/utils.js +0 -67
- package/dist/cjs/worker/errors.js +0 -16
- package/dist/cjs/worker/expo/asyncStorageTaskQueue.js +0 -78
- package/dist/cjs/worker/expo/index.js +0 -13
- package/dist/cjs/worker/expo/processors/contractPollProcessor.js +0 -62
- package/dist/cjs/worker/expo/processors/index.js +0 -6
- package/dist/cjs/worker/expo/taskQueue.js +0 -41
- package/dist/cjs/worker/expo/taskRunner.js +0 -73
- package/dist/cjs/worker/messageBus.js +0 -473
- package/dist/esm/adapters/asyncStorage.js +0 -1
- package/dist/esm/adapters/expo.js +0 -3
- package/dist/esm/adapters/fileSystem.js +0 -1
- package/dist/esm/adapters/indexedDB.js +0 -1
- package/dist/esm/adapters/localStorage.js +0 -1
- package/dist/esm/arkfee/celenv.js +0 -40
- package/dist/esm/arkfee/estimator.js +0 -139
- package/dist/esm/arkfee/index.js +0 -1
- package/dist/esm/arkfee/types.js +0 -22
- package/dist/esm/arknote/index.js +0 -124
- package/dist/esm/bip322/index.js +0 -267
- package/dist/esm/contracts/arkcontract.js +0 -140
- package/dist/esm/contracts/contractManager.js +0 -625
- package/dist/esm/contracts/contractWatcher.js +0 -594
- package/dist/esm/contracts/handlers/default.js +0 -90
- package/dist/esm/contracts/handlers/delegate.js +0 -87
- package/dist/esm/contracts/handlers/helpers.js +0 -110
- package/dist/esm/contracts/handlers/index.js +0 -12
- package/dist/esm/contracts/handlers/registry.js +0 -86
- package/dist/esm/contracts/handlers/vhtlc.js +0 -191
- package/dist/esm/contracts/index.js +0 -13
- package/dist/esm/contracts/types.js +0 -1
- package/dist/esm/contracts/vtxoOwnership.js +0 -69
- package/dist/esm/extension/asset/assetGroup.js +0 -224
- package/dist/esm/extension/asset/assetId.js +0 -148
- package/dist/esm/extension/asset/assetInput.js +0 -217
- package/dist/esm/extension/asset/assetOutput.js +0 -169
- package/dist/esm/extension/asset/assetRef.js +0 -144
- package/dist/esm/extension/asset/index.js +0 -8
- package/dist/esm/extension/asset/metadata.js +0 -182
- package/dist/esm/extension/asset/packet.js +0 -110
- package/dist/esm/extension/asset/types.js +0 -19
- package/dist/esm/extension/asset/utils.js +0 -99
- package/dist/esm/extension/index.js +0 -248
- package/dist/esm/extension/packet.js +0 -16
- package/dist/esm/forfeit.js +0 -41
- package/dist/esm/identity/descriptor.js +0 -161
- package/dist/esm/identity/descriptorProvider.js +0 -1
- package/dist/esm/identity/hdCapableIdentity.js +0 -1
- package/dist/esm/identity/index.js +0 -12
- package/dist/esm/identity/seedIdentity.js +0 -453
- package/dist/esm/identity/serialize.js +0 -164
- package/dist/esm/identity/singleKey.js +0 -121
- package/dist/esm/identity/staticDescriptorProvider.js +0 -61
- package/dist/esm/index.js +0 -87
- package/dist/esm/intent/index.js +0 -255
- package/dist/esm/musig2/index.js +0 -3
- package/dist/esm/musig2/keys.js +0 -21
- package/dist/esm/musig2/nonces.js +0 -11
- package/dist/esm/musig2/sign.js +0 -63
- package/dist/esm/networks.js +0 -22
- package/dist/esm/package.json +0 -3
- package/dist/esm/providers/ark.js +0 -572
- package/dist/esm/providers/delegator.js +0 -81
- package/dist/esm/providers/electrum.js +0 -864
- package/dist/esm/providers/errors.js +0 -54
- package/dist/esm/providers/expoArk.js +0 -78
- package/dist/esm/providers/expoIndexer.js +0 -107
- package/dist/esm/providers/expoUtils.js +0 -87
- package/dist/esm/providers/indexer.js +0 -626
- package/dist/esm/providers/onchain.js +0 -258
- package/dist/esm/providers/utils.js +0 -117
- package/dist/esm/repositories/contractRepository.js +0 -1
- package/dist/esm/repositories/inMemory/contractRepository.js +0 -51
- package/dist/esm/repositories/inMemory/walletRepository.js +0 -111
- package/dist/esm/repositories/index.js +0 -10
- package/dist/esm/repositories/indexedDB/contractRepository.js +0 -183
- package/dist/esm/repositories/indexedDB/db.js +0 -4
- package/dist/esm/repositories/indexedDB/manager.js +0 -95
- package/dist/esm/repositories/indexedDB/schema.js +0 -199
- package/dist/esm/repositories/indexedDB/walletRepository.js +0 -470
- package/dist/esm/repositories/indexedDB/websqlAdapter.js +0 -138
- package/dist/esm/repositories/migrations/contractRepositoryImpl.js +0 -121
- package/dist/esm/repositories/migrations/fromStorageAdapter.js +0 -58
- package/dist/esm/repositories/migrations/walletRepositoryImpl.js +0 -180
- package/dist/esm/repositories/realm/contractRepository.js +0 -112
- package/dist/esm/repositories/realm/index.js +0 -3
- package/dist/esm/repositories/realm/schemas.js +0 -153
- package/dist/esm/repositories/realm/types.js +0 -6
- package/dist/esm/repositories/realm/walletRepository.js +0 -301
- package/dist/esm/repositories/scriptFromAddress.js +0 -13
- package/dist/esm/repositories/serialization.js +0 -67
- package/dist/esm/repositories/sqlite/contractRepository.js +0 -131
- package/dist/esm/repositories/sqlite/index.js +0 -2
- package/dist/esm/repositories/sqlite/types.js +0 -1
- package/dist/esm/repositories/sqlite/walletRepository.js +0 -437
- package/dist/esm/repositories/walletRepository.js +0 -1
- package/dist/esm/script/address.js +0 -104
- package/dist/esm/script/base.js +0 -179
- package/dist/esm/script/default.js +0 -54
- package/dist/esm/script/delegate.js +0 -50
- package/dist/esm/script/tapscript.js +0 -615
- package/dist/esm/script/vhtlc.js +0 -167
- package/dist/esm/storage/asyncStorage.js +0 -46
- package/dist/esm/storage/fileSystem.js +0 -104
- package/dist/esm/storage/inMemory.js +0 -20
- package/dist/esm/storage/index.js +0 -1
- package/dist/esm/storage/indexedDB.js +0 -97
- package/dist/esm/storage/localStorage.js +0 -47
- package/dist/esm/tree/signingSession.js +0 -191
- package/dist/esm/tree/txTree.js +0 -188
- package/dist/esm/tree/validation.js +0 -101
- package/dist/esm/utils/anchor.js +0 -31
- package/dist/esm/utils/arkTransaction.js +0 -264
- package/dist/esm/utils/bip21.js +0 -123
- package/dist/esm/utils/syncCursors.js +0 -119
- package/dist/esm/utils/timelock.js +0 -22
- package/dist/esm/utils/transaction.js +0 -24
- package/dist/esm/utils/transactionHistory.js +0 -180
- package/dist/esm/utils/txSizeEstimator.js +0 -128
- package/dist/esm/utils/unknownFields.js +0 -169
- package/dist/esm/wallet/asset-manager.js +0 -325
- package/dist/esm/wallet/asset.js +0 -113
- package/dist/esm/wallet/batch.js +0 -180
- package/dist/esm/wallet/delegator.js +0 -297
- package/dist/esm/wallet/expo/background.js +0 -111
- package/dist/esm/wallet/expo/index.js +0 -2
- package/dist/esm/wallet/expo/wallet.js +0 -193
- package/dist/esm/wallet/hdDescriptorProvider.js +0 -155
- package/dist/esm/wallet/index.js +0 -75
- package/dist/esm/wallet/onchain.js +0 -285
- package/dist/esm/wallet/ramps.js +0 -212
- package/dist/esm/wallet/serviceWorker/wallet-message-handler.js +0 -946
- package/dist/esm/wallet/serviceWorker/wallet.js +0 -1168
- package/dist/esm/wallet/unroll.js +0 -285
- package/dist/esm/wallet/utils.js +0 -103
- package/dist/esm/wallet/validation.js +0 -142
- package/dist/esm/wallet/vtxo-manager.js +0 -1136
- package/dist/esm/wallet/wallet.js +0 -2041
- package/dist/esm/worker/browser/service-worker-manager.js +0 -177
- package/dist/esm/worker/browser/utils.js +0 -63
- package/dist/esm/worker/errors.js +0 -11
- package/dist/esm/worker/expo/asyncStorageTaskQueue.js +0 -74
- package/dist/esm/worker/expo/index.js +0 -4
- package/dist/esm/worker/expo/processors/contractPollProcessor.js +0 -59
- package/dist/esm/worker/expo/processors/index.js +0 -1
- package/dist/esm/worker/expo/taskQueue.js +0 -37
- package/dist/esm/worker/expo/taskRunner.js +0 -69
- package/dist/esm/worker/messageBus.js +0 -469
- package/dist/types/adapters/asyncStorage.d.ts +0 -2
- package/dist/types/adapters/expo.d.ts +0 -4
- package/dist/types/adapters/fileSystem.d.ts +0 -2
- package/dist/types/adapters/indexedDB.d.ts +0 -2
- package/dist/types/adapters/localStorage.d.ts +0 -2
- package/dist/types/arkfee/celenv.d.ts +0 -25
- package/dist/types/arkfee/estimator.d.ts +0 -49
- package/dist/types/arkfee/index.d.ts +0 -2
- package/dist/types/arkfee/types.d.ts +0 -38
- package/dist/types/arknote/index.d.ts +0 -84
- package/dist/types/bip322/index.d.ts +0 -55
- package/dist/types/contracts/arkcontract.d.ts +0 -99
- package/dist/types/contracts/contractManager.d.ts +0 -381
- package/dist/types/contracts/contractWatcher.d.ts +0 -217
- package/dist/types/contracts/handlers/default.d.ts +0 -19
- package/dist/types/contracts/handlers/delegate.d.ts +0 -21
- package/dist/types/contracts/handlers/helpers.d.ts +0 -19
- package/dist/types/contracts/handlers/index.d.ts +0 -7
- package/dist/types/contracts/handlers/registry.d.ts +0 -65
- package/dist/types/contracts/handlers/vhtlc.d.ts +0 -32
- package/dist/types/contracts/index.d.ts +0 -14
- package/dist/types/contracts/types.d.ts +0 -233
- package/dist/types/contracts/vtxoOwnership.d.ts +0 -33
- package/dist/types/extension/asset/assetGroup.d.ts +0 -119
- package/dist/types/extension/asset/assetId.d.ts +0 -83
- package/dist/types/extension/asset/assetInput.d.ts +0 -64
- package/dist/types/extension/asset/assetOutput.d.ts +0 -54
- package/dist/types/extension/asset/assetRef.d.ts +0 -91
- package/dist/types/extension/asset/index.d.ts +0 -8
- package/dist/types/extension/asset/metadata.d.ts +0 -52
- package/dist/types/extension/asset/packet.d.ts +0 -41
- package/dist/types/extension/asset/types.d.ts +0 -16
- package/dist/types/extension/asset/utils.d.ts +0 -21
- package/dist/types/extension/index.d.ts +0 -56
- package/dist/types/extension/packet.d.ts +0 -21
- package/dist/types/forfeit.d.ts +0 -18
- package/dist/types/identity/descriptor.d.ts +0 -61
- package/dist/types/identity/descriptorProvider.d.ts +0 -35
- package/dist/types/identity/hdCapableIdentity.d.ts +0 -44
- package/dist/types/identity/index.d.ts +0 -56
- package/dist/types/identity/seedIdentity.d.ts +0 -254
- package/dist/types/identity/serialize.d.ts +0 -96
- package/dist/types/identity/singleKey.d.ts +0 -62
- package/dist/types/identity/staticDescriptorProvider.d.ts +0 -18
- package/dist/types/index.d.ts +0 -59
- package/dist/types/intent/index.d.ts +0 -86
- package/dist/types/musig2/index.d.ts +0 -4
- package/dist/types/musig2/keys.d.ts +0 -9
- package/dist/types/musig2/nonces.d.ts +0 -14
- package/dist/types/musig2/sign.d.ts +0 -27
- package/dist/types/networks.d.ts +0 -16
- package/dist/types/providers/ark.d.ts +0 -369
- package/dist/types/providers/delegator.d.ts +0 -82
- package/dist/types/providers/electrum.d.ts +0 -312
- package/dist/types/providers/errors.d.ts +0 -13
- package/dist/types/providers/expoArk.d.ts +0 -22
- package/dist/types/providers/expoIndexer.d.ts +0 -18
- package/dist/types/providers/expoUtils.d.ts +0 -18
- package/dist/types/providers/indexer.d.ts +0 -301
- package/dist/types/providers/onchain.d.ts +0 -148
- package/dist/types/providers/utils.d.ts +0 -12
- package/dist/types/repositories/contractRepository.d.ts +0 -32
- package/dist/types/repositories/inMemory/contractRepository.d.ts +0 -17
- package/dist/types/repositories/inMemory/walletRepository.d.ts +0 -29
- package/dist/types/repositories/index.d.ts +0 -9
- package/dist/types/repositories/indexedDB/contractRepository.d.ts +0 -21
- package/dist/types/repositories/indexedDB/db.d.ts +0 -4
- package/dist/types/repositories/indexedDB/manager.d.ts +0 -25
- package/dist/types/repositories/indexedDB/schema.d.ts +0 -9
- package/dist/types/repositories/indexedDB/walletRepository.d.ts +0 -28
- package/dist/types/repositories/indexedDB/websqlAdapter.d.ts +0 -49
- package/dist/types/repositories/migrations/contractRepositoryImpl.d.ts +0 -24
- package/dist/types/repositories/migrations/fromStorageAdapter.d.ts +0 -19
- package/dist/types/repositories/migrations/walletRepositoryImpl.d.ts +0 -27
- package/dist/types/repositories/realm/contractRepository.d.ts +0 -24
- package/dist/types/repositories/realm/index.d.ts +0 -4
- package/dist/types/repositories/realm/types.d.ts +0 -16
- package/dist/types/repositories/realm/walletRepository.d.ts +0 -34
- package/dist/types/repositories/scriptFromAddress.d.ts +0 -9
- package/dist/types/repositories/serialization.d.ts +0 -65
- package/dist/types/repositories/sqlite/contractRepository.d.ts +0 -33
- package/dist/types/repositories/sqlite/index.d.ts +0 -3
- package/dist/types/repositories/sqlite/types.d.ts +0 -18
- package/dist/types/repositories/walletRepository.d.ts +0 -72
- package/dist/types/script/address.d.ts +0 -67
- package/dist/types/script/base.d.ts +0 -105
- package/dist/types/script/default.d.ts +0 -44
- package/dist/types/script/delegate.d.ts +0 -40
- package/dist/types/script/tapscript.d.ts +0 -169
- package/dist/types/script/vhtlc.d.ts +0 -66
- package/dist/types/tree/signingSession.d.ts +0 -37
- package/dist/types/tree/txTree.d.ts +0 -28
- package/dist/types/tree/validation.d.ts +0 -15
- package/dist/types/utils/anchor.d.ts +0 -19
- package/dist/types/utils/arkTransaction.d.ts +0 -49
- package/dist/types/utils/bip21.d.ts +0 -38
- package/dist/types/utils/syncCursors.d.ts +0 -60
- package/dist/types/utils/timelock.d.ts +0 -9
- package/dist/types/utils/transaction.d.ts +0 -13
- package/dist/types/utils/transactionHistory.d.ts +0 -15
- package/dist/types/utils/txSizeEstimator.d.ts +0 -40
- package/dist/types/utils/unknownFields.d.ts +0 -83
- package/dist/types/wallet/asset-manager.d.ts +0 -69
- package/dist/types/wallet/asset.d.ts +0 -21
- package/dist/types/wallet/batch.d.ts +0 -107
- package/dist/types/wallet/delegator.d.ts +0 -48
- package/dist/types/wallet/expo/background.d.ts +0 -66
- package/dist/types/wallet/expo/index.d.ts +0 -4
- package/dist/types/wallet/hdDescriptorProvider.d.ts +0 -93
- package/dist/types/wallet/index.d.ts +0 -755
- package/dist/types/wallet/onchain.d.ts +0 -109
- package/dist/types/wallet/ramps.d.ts +0 -64
- package/dist/types/wallet/serviceWorker/wallet-message-handler.d.ts +0 -543
- package/dist/types/wallet/serviceWorker/wallet.d.ts +0 -238
- package/dist/types/wallet/unroll.d.ts +0 -114
- package/dist/types/wallet/utils.d.ts +0 -36
- package/dist/types/wallet/validation.d.ts +0 -24
- package/dist/types/wallet/vtxo-manager.d.ts +0 -476
- package/dist/types/wallet/wallet.d.ts +0 -360
- package/dist/types/worker/browser/service-worker-manager.d.ts +0 -32
- package/dist/types/worker/browser/utils.d.ts +0 -17
- package/dist/types/worker/errors.d.ts +0 -7
- package/dist/types/worker/expo/index.d.ts +0 -7
- package/dist/types/worker/expo/processors/contractPollProcessor.d.ts +0 -19
- package/dist/types/worker/expo/processors/index.d.ts +0 -1
- package/dist/types/worker/expo/taskQueue.d.ts +0 -50
- package/dist/types/worker/expo/taskRunner.d.ts +0 -66
- package/dist/types/worker/messageBus.d.ts +0 -188
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { pubECDSA, pubSchnorr, randomPrivateKeyBytes, } from "@scure/btc-signer/utils.js";
|
|
2
|
-
import { SigHash } from "@scure/btc-signer";
|
|
3
|
-
import { hex } from "@scure/base";
|
|
4
|
-
import { TreeSignerSession } from "../tree/signingSession.js";
|
|
5
|
-
import { schnorr, signAsync } from "@noble/secp256k1";
|
|
6
|
-
const ALL_SIGHASH = Object.values(SigHash).filter((x) => typeof x === "number");
|
|
7
|
-
/**
|
|
8
|
-
* In-memory single key implementation for Bitcoin transaction signing.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* // Create from hex string
|
|
13
|
-
* const key = SingleKey.fromHex('your_private_key_hex');
|
|
14
|
-
*
|
|
15
|
-
* // Create from raw bytes
|
|
16
|
-
* const key = SingleKey.fromPrivateKey(privateKeyBytes);
|
|
17
|
-
*
|
|
18
|
-
* // Create random key
|
|
19
|
-
* const randomKey = SingleKey.fromRandomBytes();
|
|
20
|
-
*
|
|
21
|
-
* // Sign a transaction
|
|
22
|
-
* const signedTx = await key.sign(transaction);
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export class SingleKey {
|
|
26
|
-
constructor(key) {
|
|
27
|
-
this.key = key || randomPrivateKeyBytes();
|
|
28
|
-
}
|
|
29
|
-
/** Create a signing identity from raw private key bytes. */
|
|
30
|
-
static fromPrivateKey(privateKey) {
|
|
31
|
-
return new SingleKey(privateKey);
|
|
32
|
-
}
|
|
33
|
-
/** Create a signing identity from a hex-encoded private key. */
|
|
34
|
-
static fromHex(privateKeyHex) {
|
|
35
|
-
return new SingleKey(hex.decode(privateKeyHex));
|
|
36
|
-
}
|
|
37
|
-
/** Create a signing identity with a freshly generated random private key. */
|
|
38
|
-
static fromRandomBytes() {
|
|
39
|
-
return new SingleKey(randomPrivateKeyBytes());
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Export the private key as a hex string.
|
|
43
|
-
*
|
|
44
|
-
* @returns The private key as a hex string
|
|
45
|
-
*/
|
|
46
|
-
toHex() {
|
|
47
|
-
return hex.encode(this.key);
|
|
48
|
-
}
|
|
49
|
-
async sign(tx, inputIndexes) {
|
|
50
|
-
const txCpy = tx.clone();
|
|
51
|
-
if (!inputIndexes) {
|
|
52
|
-
try {
|
|
53
|
-
if (!txCpy.sign(this.key, ALL_SIGHASH)) {
|
|
54
|
-
throw new Error("Failed to sign transaction");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) {
|
|
58
|
-
if (e instanceof Error &&
|
|
59
|
-
e.message.includes("No inputs signed")) {
|
|
60
|
-
// ignore
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
throw e;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return txCpy;
|
|
67
|
-
}
|
|
68
|
-
for (const inputIndex of inputIndexes) {
|
|
69
|
-
if (!txCpy.signIdx(this.key, inputIndex, ALL_SIGHASH)) {
|
|
70
|
-
throw new Error(`Failed to sign input #${inputIndex}`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return txCpy;
|
|
74
|
-
}
|
|
75
|
-
compressedPublicKey() {
|
|
76
|
-
return Promise.resolve(pubECDSA(this.key, true));
|
|
77
|
-
}
|
|
78
|
-
xOnlyPublicKey() {
|
|
79
|
-
return Promise.resolve(pubSchnorr(this.key));
|
|
80
|
-
}
|
|
81
|
-
signerSession() {
|
|
82
|
-
return TreeSignerSession.random();
|
|
83
|
-
}
|
|
84
|
-
async signMessage(message, signatureType = "schnorr") {
|
|
85
|
-
if (signatureType === "ecdsa")
|
|
86
|
-
return signAsync(message, this.key, { prehash: false });
|
|
87
|
-
return schnorr.signAsync(message, this.key);
|
|
88
|
-
}
|
|
89
|
-
async toReadonly() {
|
|
90
|
-
return new ReadonlySingleKey(await this.compressedPublicKey());
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
export class ReadonlySingleKey {
|
|
94
|
-
/** Create a readonly identity from a compressed public key. */
|
|
95
|
-
constructor(publicKey) {
|
|
96
|
-
this.publicKey = publicKey;
|
|
97
|
-
if (publicKey.length !== 33) {
|
|
98
|
-
throw new Error("Invalid public key length");
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Create a ReadonlySingleKey from a compressed public key.
|
|
103
|
-
*
|
|
104
|
-
* @param publicKey - 33-byte compressed public key (02/03 prefix + 32-byte x coordinate)
|
|
105
|
-
* @returns A new ReadonlySingleKey instance
|
|
106
|
-
* @example
|
|
107
|
-
* ```typescript
|
|
108
|
-
* const pubkey = new Uint8Array(33); // your compressed public key
|
|
109
|
-
* const readonlyKey = ReadonlySingleKey.fromPublicKey(pubkey);
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
static fromPublicKey(publicKey) {
|
|
113
|
-
return new ReadonlySingleKey(publicKey);
|
|
114
|
-
}
|
|
115
|
-
xOnlyPublicKey() {
|
|
116
|
-
return Promise.resolve(this.publicKey.slice(1));
|
|
117
|
-
}
|
|
118
|
-
compressedPublicKey() {
|
|
119
|
-
return Promise.resolve(this.publicKey);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { hex } from "@scure/base";
|
|
2
|
-
import { isBatchSignable } from "./index.js";
|
|
3
|
-
import { normalizeToDescriptor, extractPubKey } from "./descriptor.js";
|
|
4
|
-
/**
|
|
5
|
-
* Wraps a legacy Identity (single-key) as a DescriptorProvider.
|
|
6
|
-
* The descriptor is always a simple tr(pubkey) format.
|
|
7
|
-
*/
|
|
8
|
-
export class StaticDescriptorProvider {
|
|
9
|
-
constructor(identity, pubKeyHex) {
|
|
10
|
-
this.identity = identity;
|
|
11
|
-
this.pubKeyHex = pubKeyHex;
|
|
12
|
-
this.descriptor = `tr(${pubKeyHex})`;
|
|
13
|
-
}
|
|
14
|
-
static async create(identity) {
|
|
15
|
-
const pubKey = await identity.xOnlyPublicKey();
|
|
16
|
-
return new StaticDescriptorProvider(identity, hex.encode(pubKey));
|
|
17
|
-
}
|
|
18
|
-
async getNextSigningDescriptor() {
|
|
19
|
-
return this.descriptor;
|
|
20
|
-
}
|
|
21
|
-
isOurs(descriptor) {
|
|
22
|
-
try {
|
|
23
|
-
const normalized = normalizeToDescriptor(descriptor);
|
|
24
|
-
const pubKey = extractPubKey(normalized);
|
|
25
|
-
return pubKey.toLowerCase() === this.pubKeyHex.toLowerCase();
|
|
26
|
-
}
|
|
27
|
-
catch {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
async signWithDescriptor(requests) {
|
|
32
|
-
for (const request of requests) {
|
|
33
|
-
if (!this.isOurs(request.descriptor)) {
|
|
34
|
-
throw new Error(`Descriptor ${request.descriptor} does not belong to this provider`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
// Use batch signing when the identity supports it (fewer confirmation popups)
|
|
38
|
-
if (isBatchSignable(this.identity)) {
|
|
39
|
-
const signed = await this.identity.signMultiple(requests.map((r) => ({
|
|
40
|
-
tx: r.tx,
|
|
41
|
-
inputIndexes: r.inputIndexes,
|
|
42
|
-
})));
|
|
43
|
-
if (signed.length !== requests.length) {
|
|
44
|
-
throw new Error(`signMultiple returned ${signed.length} transactions, expected ${requests.length}`);
|
|
45
|
-
}
|
|
46
|
-
return signed;
|
|
47
|
-
}
|
|
48
|
-
const results = [];
|
|
49
|
-
for (const request of requests) {
|
|
50
|
-
const signed = await this.identity.sign(request.tx, request.inputIndexes);
|
|
51
|
-
results.push(signed);
|
|
52
|
-
}
|
|
53
|
-
return results;
|
|
54
|
-
}
|
|
55
|
-
async signMessageWithDescriptor(descriptor, message, type = "schnorr") {
|
|
56
|
-
if (!this.isOurs(descriptor)) {
|
|
57
|
-
throw new Error(`Descriptor ${descriptor} does not belong to this provider`);
|
|
58
|
-
}
|
|
59
|
-
return this.identity.signMessage(message, type);
|
|
60
|
-
}
|
|
61
|
-
}
|
package/dist/esm/index.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Transaction } from "./utils/transaction.js";
|
|
2
|
-
import { SingleKey, ReadonlySingleKey } from "./identity/singleKey.js";
|
|
3
|
-
import { SeedIdentity, MnemonicIdentity, ReadonlyDescriptorIdentity, } from "./identity/seedIdentity.js";
|
|
4
|
-
import { isBatchSignable, } from "./identity/index.js";
|
|
5
|
-
import { ArkAddress } from "./script/address.js";
|
|
6
|
-
import { VHTLC } from "./script/vhtlc.js";
|
|
7
|
-
import { DefaultVtxo } from "./script/default.js";
|
|
8
|
-
import { DelegateVtxo } from "./script/delegate.js";
|
|
9
|
-
import { MessageBus, } from "./worker/messageBus.js";
|
|
10
|
-
import { VtxoScript, TapTreeCoder, getSequence, } from "./script/base.js";
|
|
11
|
-
import { TxType, isSpendable, isSubdust, isRecoverable, isExpired, } from "./wallet/index.js";
|
|
12
|
-
import { Batch } from "./wallet/batch.js";
|
|
13
|
-
import { Wallet, ReadonlyWallet, waitForIncomingFunds, } from "./wallet/wallet.js";
|
|
14
|
-
import { TxTree } from "./tree/txTree.js";
|
|
15
|
-
import { Ramps } from "./wallet/ramps.js";
|
|
16
|
-
import { HDDescriptorProvider } from "./wallet/hdDescriptorProvider.js";
|
|
17
|
-
import { isVtxoExpiringSoon, VtxoManager } from "./wallet/vtxo-manager.js";
|
|
18
|
-
import { ServiceWorkerWallet, ServiceWorkerReadonlyWallet, DEFAULT_MESSAGE_TIMEOUTS, } from "./wallet/serviceWorker/wallet.js";
|
|
19
|
-
import { OnchainWallet } from "./wallet/onchain.js";
|
|
20
|
-
import { setupServiceWorker } from "./worker/browser/utils.js";
|
|
21
|
-
import { ESPLORA_URL, EsploraProvider, } from "./providers/onchain.js";
|
|
22
|
-
import { ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ElectrumOnchainProvider, WsElectrumChainSource, } from "./providers/electrum.js";
|
|
23
|
-
import { RestArkProvider, SettlementEventType, } from "./providers/ark.js";
|
|
24
|
-
import { RestDelegatorProvider, } from "./providers/delegator.js";
|
|
25
|
-
import { CLTVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, CSVMultisigTapscript, decodeTapscript, MultisigTapscript, } from "./script/tapscript.js";
|
|
26
|
-
import { hasBoardingTxExpired, buildOffchainTx, verifyTapscriptSignatures, combineTapscriptSigs, isValidArkAddress, } from "./utils/arkTransaction.js";
|
|
27
|
-
import { VtxoTaprootTree, ConditionWitness, getArkPsbtFields, setArkPsbtField, ArkPsbtFieldKey, ArkPsbtFieldKeyType, CosignerPublicKey, VtxoTreeExpiry, } from "./utils/unknownFields.js";
|
|
28
|
-
import { Intent } from "./intent/index.js";
|
|
29
|
-
import { BIP322 } from "./bip322/index.js";
|
|
30
|
-
import { ArkNote } from "./arknote/index.js";
|
|
31
|
-
import { networks } from "./networks.js";
|
|
32
|
-
import { RestIndexerProvider, IndexerTxType, ChainTxType, } from "./providers/indexer.js";
|
|
33
|
-
import { P2A } from "./utils/anchor.js";
|
|
34
|
-
import { TxWeightEstimator } from "./utils/txSizeEstimator.js";
|
|
35
|
-
import { Unroll } from "./wallet/unroll.js";
|
|
36
|
-
import { ArkError, maybeArkError } from "./providers/errors.js";
|
|
37
|
-
import { validateVtxoTxGraph, validateConnectorsTxGraph, } from "./tree/validation.js";
|
|
38
|
-
import { buildForfeitTx } from "./forfeit.js";
|
|
39
|
-
import { IndexedDBWalletRepository, IndexedDBContractRepository, InMemoryWalletRepository, InMemoryContractRepository, MIGRATION_KEY, migrateWalletRepository, requiresMigration, getMigrationStatus, rollbackMigration, WalletRepositoryImpl, ContractRepositoryImpl, } from "./repositories/index.js";
|
|
40
|
-
import { DelegatorManagerImpl } from "./wallet/delegator.js";
|
|
41
|
-
export * from "./arkfee/index.js";
|
|
42
|
-
export * as asset from "./extension/asset/index.js";
|
|
43
|
-
// Contracts
|
|
44
|
-
import { ContractManager, ContractWatcher, contractHandlers, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, encodeArkContract, decodeArkContract, contractFromArkContract, contractFromArkContractWithAddress, isArkContract, } from "./contracts/index.js";
|
|
45
|
-
import { timelockToSequence, sequenceToTimelock } from "./utils/timelock.js";
|
|
46
|
-
import { closeDatabase, openDatabase } from "./repositories/indexedDB/manager.js";
|
|
47
|
-
import { WalletMessageHandler, WalletNotInitializedError, ReadonlyWalletError, DelegatorNotConfiguredError, } from "./wallet/serviceWorker/wallet-message-handler.js";
|
|
48
|
-
import { MESSAGE_BUS_NOT_INITIALIZED, MessageBusNotInitializedError, ServiceWorkerTimeoutError, } from "./worker/errors.js";
|
|
49
|
-
export {
|
|
50
|
-
// Wallets
|
|
51
|
-
Wallet, ReadonlyWallet, SingleKey, ReadonlySingleKey, SeedIdentity, MnemonicIdentity, ReadonlyDescriptorIdentity, isBatchSignable, OnchainWallet, Ramps, VtxoManager, HDDescriptorProvider, DelegatorManagerImpl, RestDelegatorProvider,
|
|
52
|
-
// Providers
|
|
53
|
-
ESPLORA_URL, EsploraProvider, ELECTRUM_WS_URL, ELECTRUM_TCP_HOST, ElectrumOnchainProvider, WsElectrumChainSource, RestArkProvider, RestIndexerProvider,
|
|
54
|
-
// Script-related
|
|
55
|
-
ArkAddress, DefaultVtxo, DelegateVtxo, VtxoScript, VHTLC,
|
|
56
|
-
// Enums
|
|
57
|
-
TxType, IndexerTxType, ChainTxType, SettlementEventType,
|
|
58
|
-
// Service Worker
|
|
59
|
-
setupServiceWorker, MessageBus, WalletMessageHandler, WalletNotInitializedError, ReadonlyWalletError, DelegatorNotConfiguredError, MESSAGE_BUS_NOT_INITIALIZED, MessageBusNotInitializedError, ServiceWorkerTimeoutError, ServiceWorkerWallet, ServiceWorkerReadonlyWallet, DEFAULT_MESSAGE_TIMEOUTS,
|
|
60
|
-
// Tapscript
|
|
61
|
-
decodeTapscript, MultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, CLTVMultisigTapscript, TapTreeCoder,
|
|
62
|
-
// Arkade PSBT fields
|
|
63
|
-
ArkPsbtFieldKey, ArkPsbtFieldKeyType, setArkPsbtField, getArkPsbtFields, CosignerPublicKey, VtxoTreeExpiry, VtxoTaprootTree, ConditionWitness,
|
|
64
|
-
// Utils
|
|
65
|
-
buildOffchainTx, verifyTapscriptSignatures, waitForIncomingFunds, hasBoardingTxExpired, combineTapscriptSigs, isVtxoExpiringSoon, isValidArkAddress,
|
|
66
|
-
// Arknote
|
|
67
|
-
ArkNote,
|
|
68
|
-
// Network
|
|
69
|
-
networks,
|
|
70
|
-
// DB
|
|
71
|
-
closeDatabase, openDatabase,
|
|
72
|
-
// Repositories
|
|
73
|
-
IndexedDBWalletRepository, IndexedDBContractRepository, InMemoryWalletRepository, InMemoryContractRepository, MIGRATION_KEY, migrateWalletRepository, requiresMigration, getMigrationStatus, rollbackMigration, WalletRepositoryImpl, ContractRepositoryImpl,
|
|
74
|
-
// Intent proof
|
|
75
|
-
Intent,
|
|
76
|
-
// BIP-322 message signing
|
|
77
|
-
BIP322,
|
|
78
|
-
// TxTree
|
|
79
|
-
TxTree,
|
|
80
|
-
// Anchor
|
|
81
|
-
P2A, Unroll, Transaction, TxWeightEstimator, timelockToSequence, sequenceToTimelock,
|
|
82
|
-
// Errors
|
|
83
|
-
ArkError, maybeArkError,
|
|
84
|
-
// Batch session
|
|
85
|
-
Batch, validateVtxoTxGraph, validateConnectorsTxGraph, buildForfeitTx, isRecoverable, isSpendable, isSubdust, isExpired, getSequence,
|
|
86
|
-
// Contracts
|
|
87
|
-
ContractManager, ContractWatcher, contractHandlers, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, encodeArkContract, decodeArkContract, contractFromArkContract, contractFromArkContractWithAddress, isArkContract, };
|
package/dist/esm/intent/index.js
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { OP, Script, SigHash } from "@scure/btc-signer";
|
|
2
|
-
import { schnorr } from "@noble/curves/secp256k1.js";
|
|
3
|
-
import { Transaction } from "../utils/transaction.js";
|
|
4
|
-
import { ConditionWitness, VtxoTaprootTree } from "../utils/unknownFields.js";
|
|
5
|
-
import { hex } from "@scure/base";
|
|
6
|
-
import { getSequence, VtxoScript } from "../script/base.js";
|
|
7
|
-
/**
|
|
8
|
-
* Intent proof implementation for Bitcoin message signing.
|
|
9
|
-
*
|
|
10
|
-
* Intent proof defines a standard for signing Bitcoin messages as well as proving
|
|
11
|
-
* ownership of outputs.
|
|
12
|
-
*
|
|
13
|
-
* This namespace provides utilities for creating and validating Intent proof.
|
|
14
|
-
*
|
|
15
|
-
* It is greatly inspired by BIP322.
|
|
16
|
-
* @see https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // Create a Intent proof
|
|
21
|
-
* const proof = Intent.create(
|
|
22
|
-
* "Hello Bitcoin!",
|
|
23
|
-
* [input],
|
|
24
|
-
* [output]
|
|
25
|
-
* );
|
|
26
|
-
*
|
|
27
|
-
* // Sign the proof
|
|
28
|
-
* const signedProof = await identity.sign(proof);
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export var Intent;
|
|
32
|
-
(function (Intent) {
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new Intent proof unsigned transaction.
|
|
35
|
-
*
|
|
36
|
-
* This function constructs a special transaction that can be signed to prove
|
|
37
|
-
* ownership of onchain and virtual outputs. The proof includes the message to be
|
|
38
|
-
* signed and the inputs/outputs that demonstrate ownership.
|
|
39
|
-
*
|
|
40
|
-
* @param message - The Intent message to be signed, either raw string of Message object
|
|
41
|
-
* @param ins - Array of transaction inputs to prove ownership of
|
|
42
|
-
* @param outputs - Optional array of transaction outputs
|
|
43
|
-
* @returns An unsigned Intent proof transaction
|
|
44
|
-
*/
|
|
45
|
-
function create(message, ins, outputs = []) {
|
|
46
|
-
if (typeof message !== "string") {
|
|
47
|
-
message = encodeMessage(message);
|
|
48
|
-
}
|
|
49
|
-
if (ins.length == 0)
|
|
50
|
-
throw new Error("intent proof requires at least one input");
|
|
51
|
-
const inputs = ins.map(prepareCoinAsIntentProofInput);
|
|
52
|
-
if (!validateInputs(inputs))
|
|
53
|
-
throw new Error("invalid inputs");
|
|
54
|
-
if (!validateOutputs(outputs))
|
|
55
|
-
throw new Error("invalid outputs");
|
|
56
|
-
// Create the initial transaction to spend.
|
|
57
|
-
const toSpend = craftToSpendTx(message, inputs[0].witnessUtxo.script);
|
|
58
|
-
// Create the transaction to sign.
|
|
59
|
-
return craftToSignTx(toSpend, inputs, outputs);
|
|
60
|
-
}
|
|
61
|
-
Intent.create = create;
|
|
62
|
-
/**
|
|
63
|
-
* Compute the fee paid by an intent proof transaction.
|
|
64
|
-
*
|
|
65
|
-
* @param proof - Intent proof transaction
|
|
66
|
-
* @returns The fee in satoshis
|
|
67
|
-
*/
|
|
68
|
-
function fee(proof) {
|
|
69
|
-
let sumOfInputs = 0n;
|
|
70
|
-
for (let i = 0; i < proof.inputsLength; i++) {
|
|
71
|
-
const input = proof.getInput(i);
|
|
72
|
-
if (input.witnessUtxo === undefined)
|
|
73
|
-
throw new Error("intent proof input requires witness utxo");
|
|
74
|
-
sumOfInputs += input.witnessUtxo.amount;
|
|
75
|
-
}
|
|
76
|
-
let sumOfOutputs = 0n;
|
|
77
|
-
for (let i = 0; i < proof.outputsLength; i++) {
|
|
78
|
-
const output = proof.getOutput(i);
|
|
79
|
-
if (output.amount === undefined)
|
|
80
|
-
throw new Error("intent proof output requires amount");
|
|
81
|
-
sumOfOutputs += output.amount;
|
|
82
|
-
}
|
|
83
|
-
if (sumOfOutputs > sumOfInputs) {
|
|
84
|
-
throw new Error(`intent proof output amount is greater than input amount: ${sumOfOutputs} > ${sumOfInputs}`);
|
|
85
|
-
}
|
|
86
|
-
return Number(sumOfInputs - sumOfOutputs);
|
|
87
|
-
}
|
|
88
|
-
Intent.fee = fee;
|
|
89
|
-
/**
|
|
90
|
-
* Serialize an intent message to the canonical JSON string used for signing.
|
|
91
|
-
*
|
|
92
|
-
* @param message - Intent message payload
|
|
93
|
-
* @returns Canonical string form of the message
|
|
94
|
-
*/
|
|
95
|
-
function encodeMessage(message) {
|
|
96
|
-
switch (message.type) {
|
|
97
|
-
case "register":
|
|
98
|
-
return JSON.stringify({
|
|
99
|
-
type: "register",
|
|
100
|
-
onchain_output_indexes: message.onchain_output_indexes,
|
|
101
|
-
valid_at: message.valid_at,
|
|
102
|
-
expire_at: message.expire_at,
|
|
103
|
-
cosigners_public_keys: message.cosigners_public_keys,
|
|
104
|
-
});
|
|
105
|
-
case "delete":
|
|
106
|
-
return JSON.stringify({
|
|
107
|
-
type: "delete",
|
|
108
|
-
expire_at: message.expire_at,
|
|
109
|
-
});
|
|
110
|
-
case "get-pending-tx":
|
|
111
|
-
return JSON.stringify({
|
|
112
|
-
type: "get-pending-tx",
|
|
113
|
-
expire_at: message.expire_at,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
Intent.encodeMessage = encodeMessage;
|
|
118
|
-
})(Intent || (Intent = {}));
|
|
119
|
-
export const OP_RETURN_EMPTY_PKSCRIPT = new Uint8Array([OP.RETURN]);
|
|
120
|
-
const ZERO_32 = new Uint8Array(32).fill(0);
|
|
121
|
-
const MAX_INDEX = 0xffffffff;
|
|
122
|
-
export const TAG_INTENT_PROOF = "ark-intent-proof-message";
|
|
123
|
-
function validateInput(input) {
|
|
124
|
-
if (input.index === undefined)
|
|
125
|
-
throw new Error("intent proof input requires index");
|
|
126
|
-
if (input.txid === undefined)
|
|
127
|
-
throw new Error("intent proof input requires txid");
|
|
128
|
-
if (input.witnessUtxo === undefined)
|
|
129
|
-
throw new Error("intent proof input requires witness utxo");
|
|
130
|
-
return true;
|
|
131
|
-
}
|
|
132
|
-
function validateInputs(inputs) {
|
|
133
|
-
inputs.forEach(validateInput);
|
|
134
|
-
return true;
|
|
135
|
-
}
|
|
136
|
-
function validateOutput(output) {
|
|
137
|
-
if (output.amount === undefined)
|
|
138
|
-
throw new Error("intent proof output requires amount");
|
|
139
|
-
if (output.script === undefined)
|
|
140
|
-
throw new Error("intent proof output requires script");
|
|
141
|
-
return true;
|
|
142
|
-
}
|
|
143
|
-
function validateOutputs(outputs) {
|
|
144
|
-
outputs.forEach(validateOutput);
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Creates the "to_spend" transaction used by both intent proofs and BIP-322.
|
|
149
|
-
*
|
|
150
|
-
* The message is hashed with the given tagged-hash tag before being placed
|
|
151
|
-
* into the scriptSig as `OP_0 <hash>`.
|
|
152
|
-
*
|
|
153
|
-
* @param message - The message to embed
|
|
154
|
-
* @param pkScript - The scriptPubKey of the signer's address
|
|
155
|
-
* @param tag - Tagged-hash tag (defaults to the Arkade intent proof tag)
|
|
156
|
-
*/
|
|
157
|
-
export function craftToSpendTx(message, pkScript, tag = TAG_INTENT_PROOF) {
|
|
158
|
-
const messageHash = hashMessage(message, tag);
|
|
159
|
-
const tx = new Transaction({
|
|
160
|
-
version: 0,
|
|
161
|
-
});
|
|
162
|
-
// add input with zero hash and max index
|
|
163
|
-
tx.addInput({
|
|
164
|
-
txid: ZERO_32, // zero hash
|
|
165
|
-
index: MAX_INDEX,
|
|
166
|
-
sequence: 0,
|
|
167
|
-
});
|
|
168
|
-
// add output with zero value and provided pkScript
|
|
169
|
-
tx.addOutput({
|
|
170
|
-
amount: 0n,
|
|
171
|
-
script: pkScript,
|
|
172
|
-
});
|
|
173
|
-
tx.updateInput(0, {
|
|
174
|
-
finalScriptSig: Script.encode(["OP_0", messageHash]),
|
|
175
|
-
});
|
|
176
|
-
return tx;
|
|
177
|
-
}
|
|
178
|
-
// craftToSignTx creates the transaction that will be signed for the proof
|
|
179
|
-
function craftToSignTx(toSpend, inputs, outputs) {
|
|
180
|
-
const firstInput = inputs[0];
|
|
181
|
-
// Proof tx is never broadcast onchain — toSpend references a zero-hash
|
|
182
|
-
// outpoint (see BIP-322). The tx exists only as a sighash commitment
|
|
183
|
-
// the server verifies signatures against; nLockTime and nSequence carry
|
|
184
|
-
// no consensus meaning here, they only need to match between signer and
|
|
185
|
-
// verifier. Use lockTime = 0 (BIP-322 convention) and leave each input's
|
|
186
|
-
// nSequence untouched.
|
|
187
|
-
const tx = new Transaction({
|
|
188
|
-
version: 2,
|
|
189
|
-
lockTime: 0,
|
|
190
|
-
});
|
|
191
|
-
// add the first "toSpend" input
|
|
192
|
-
tx.addInput({
|
|
193
|
-
...firstInput,
|
|
194
|
-
txid: toSpend.id,
|
|
195
|
-
index: 0,
|
|
196
|
-
witnessUtxo: {
|
|
197
|
-
script: firstInput.witnessUtxo.script,
|
|
198
|
-
amount: 0n,
|
|
199
|
-
},
|
|
200
|
-
sighashType: SigHash.ALL,
|
|
201
|
-
});
|
|
202
|
-
// add other inputs
|
|
203
|
-
for (const [i, input] of inputs.entries()) {
|
|
204
|
-
tx.addInput({
|
|
205
|
-
...input,
|
|
206
|
-
sighashType: SigHash.ALL,
|
|
207
|
-
});
|
|
208
|
-
if (input.unknown?.length) {
|
|
209
|
-
tx.updateInput(i + 1, {
|
|
210
|
-
unknown: input.unknown,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
// add the special OP_RETURN output if no outputs are provided
|
|
215
|
-
if (outputs.length === 0) {
|
|
216
|
-
outputs = [
|
|
217
|
-
{
|
|
218
|
-
amount: 0n,
|
|
219
|
-
script: OP_RETURN_EMPTY_PKSCRIPT,
|
|
220
|
-
},
|
|
221
|
-
];
|
|
222
|
-
}
|
|
223
|
-
for (const output of outputs) {
|
|
224
|
-
tx.addOutput({
|
|
225
|
-
amount: output.amount,
|
|
226
|
-
script: output.script,
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
return tx;
|
|
230
|
-
}
|
|
231
|
-
function hashMessage(message, tag = TAG_INTENT_PROOF) {
|
|
232
|
-
return schnorr.utils.taggedHash(tag, new TextEncoder().encode(message));
|
|
233
|
-
}
|
|
234
|
-
function prepareCoinAsIntentProofInput(coin) {
|
|
235
|
-
if (!("tapTree" in coin)) {
|
|
236
|
-
return coin;
|
|
237
|
-
}
|
|
238
|
-
const vtxoScript = VtxoScript.decode(coin.tapTree);
|
|
239
|
-
const sequence = getSequence(coin.intentTapLeafScript);
|
|
240
|
-
const unknown = [VtxoTaprootTree.encode(coin.tapTree)];
|
|
241
|
-
if (coin.extraWitness) {
|
|
242
|
-
unknown.push(ConditionWitness.encode(coin.extraWitness));
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
txid: hex.decode(coin.txid),
|
|
246
|
-
index: coin.vout,
|
|
247
|
-
witnessUtxo: {
|
|
248
|
-
amount: BigInt(coin.value),
|
|
249
|
-
script: vtxoScript.pkScript,
|
|
250
|
-
},
|
|
251
|
-
sequence,
|
|
252
|
-
tapLeafScript: [coin.intentTapLeafScript],
|
|
253
|
-
unknown,
|
|
254
|
-
};
|
|
255
|
-
}
|
package/dist/esm/musig2/index.js
DELETED
package/dist/esm/musig2/keys.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as musig from "@scure/btc-signer/musig2.js";
|
|
2
|
-
import { schnorr } from "@noble/curves/secp256k1.js";
|
|
3
|
-
// Aggregates multiple public keys according to the MuSig2 algorithm
|
|
4
|
-
export function aggregateKeys(publicKeys, sort, options = {}) {
|
|
5
|
-
if (sort) {
|
|
6
|
-
publicKeys = musig.sortKeys(publicKeys);
|
|
7
|
-
}
|
|
8
|
-
const { aggPublicKey: preTweakedKey } = musig.keyAggregate(publicKeys);
|
|
9
|
-
if (!options.taprootTweak) {
|
|
10
|
-
return {
|
|
11
|
-
preTweakedKey: preTweakedKey.toBytes(true),
|
|
12
|
-
finalKey: preTweakedKey.toBytes(true),
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
const tweakBytes = schnorr.utils.taggedHash("TapTweak", preTweakedKey.toBytes(true).subarray(1), options.taprootTweak ?? new Uint8Array(0));
|
|
16
|
-
const { aggPublicKey: finalKey } = musig.keyAggregate(publicKeys, [tweakBytes], [true]);
|
|
17
|
-
return {
|
|
18
|
-
preTweakedKey: preTweakedKey.toBytes(true),
|
|
19
|
-
finalKey: finalKey.toBytes(true),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as musig from "@scure/btc-signer/musig2.js";
|
|
2
|
-
/**
|
|
3
|
-
* Generates a pair of public and secret nonces for MuSig2 signing
|
|
4
|
-
*/
|
|
5
|
-
export function generateNonces(publicKey) {
|
|
6
|
-
const nonces = musig.nonceGen(publicKey);
|
|
7
|
-
return { secNonce: nonces.secret, pubNonce: nonces.public };
|
|
8
|
-
}
|
|
9
|
-
export function aggregateNonces(pubNonces) {
|
|
10
|
-
return musig.nonceAggregate(pubNonces);
|
|
11
|
-
}
|
package/dist/esm/musig2/sign.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as musig from "@scure/btc-signer/musig2.js";
|
|
2
|
-
import { bytesToNumberBE } from "@noble/curves/utils.js";
|
|
3
|
-
import { Point } from "@noble/secp256k1";
|
|
4
|
-
import { aggregateKeys } from "./keys.js";
|
|
5
|
-
import { schnorr } from "@noble/curves/secp256k1.js";
|
|
6
|
-
// Add this error type for decode failures
|
|
7
|
-
export class PartialSignatureError extends Error {
|
|
8
|
-
constructor(message) {
|
|
9
|
-
super(message);
|
|
10
|
-
this.name = "PartialSignatureError";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
// Implement a concrete class for PartialSignature
|
|
14
|
-
export class PartialSig {
|
|
15
|
-
constructor(s, R) {
|
|
16
|
-
this.s = s;
|
|
17
|
-
this.R = R;
|
|
18
|
-
if (s.length !== 32) {
|
|
19
|
-
throw new PartialSignatureError("Invalid s length");
|
|
20
|
-
}
|
|
21
|
-
if (R.length !== 33) {
|
|
22
|
-
throw new PartialSignatureError("Invalid R length");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Encodes the partial signature into bytes
|
|
27
|
-
* Returns a 32-byte array containing just the s value
|
|
28
|
-
*/
|
|
29
|
-
encode() {
|
|
30
|
-
// Return copy of s bytes
|
|
31
|
-
return new Uint8Array(this.s);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Decodes a partial signature from bytes
|
|
35
|
-
* @param bytes - 32-byte array containing s value
|
|
36
|
-
*/
|
|
37
|
-
static decode(bytes) {
|
|
38
|
-
if (bytes.length !== 32) {
|
|
39
|
-
throw new PartialSignatureError("Invalid partial signature length");
|
|
40
|
-
}
|
|
41
|
-
// Verify s is less than curve order
|
|
42
|
-
const s = bytesToNumberBE(bytes);
|
|
43
|
-
if (s >= Point.CURVE().n) {
|
|
44
|
-
throw new PartialSignatureError("s value overflows curve order");
|
|
45
|
-
}
|
|
46
|
-
// For decode we don't have R, so we'll need to compute it later
|
|
47
|
-
const R = new Uint8Array(33); // Zero R for now
|
|
48
|
-
return new PartialSig(bytes, R);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Generates a MuSig2 partial signature
|
|
53
|
-
*/
|
|
54
|
-
export function sign(secNonce, privateKey, combinedNonce, publicKeys, message, options) {
|
|
55
|
-
let tweakBytes;
|
|
56
|
-
if (options?.taprootTweak !== undefined) {
|
|
57
|
-
const { preTweakedKey } = aggregateKeys(options?.sortKeys ? musig.sortKeys(publicKeys) : publicKeys, true);
|
|
58
|
-
tweakBytes = schnorr.utils.taggedHash("TapTweak", preTweakedKey.subarray(1), options.taprootTweak);
|
|
59
|
-
}
|
|
60
|
-
const session = new musig.Session(combinedNonce, options?.sortKeys ? musig.sortKeys(publicKeys) : publicKeys, message, tweakBytes ? [tweakBytes] : undefined, tweakBytes ? [true] : undefined);
|
|
61
|
-
const partialSig = session.sign(secNonce, privateKey);
|
|
62
|
-
return PartialSig.decode(partialSig);
|
|
63
|
-
}
|
package/dist/esm/networks.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { NETWORK, TEST_NETWORK } from "@scure/btc-signer/utils.js";
|
|
2
|
-
export const getNetwork = (network) => {
|
|
3
|
-
return networks[network];
|
|
4
|
-
};
|
|
5
|
-
export const networks = {
|
|
6
|
-
bitcoin: withArkPrefix(NETWORK, "ark"),
|
|
7
|
-
testnet: withArkPrefix(TEST_NETWORK, "tark"),
|
|
8
|
-
signet: withArkPrefix(TEST_NETWORK, "tark"),
|
|
9
|
-
mutinynet: withArkPrefix(TEST_NETWORK, "tark"),
|
|
10
|
-
regtest: withArkPrefix({
|
|
11
|
-
...TEST_NETWORK,
|
|
12
|
-
bech32: "bcrt",
|
|
13
|
-
pubKeyHash: 0x6f,
|
|
14
|
-
scriptHash: 0xc4,
|
|
15
|
-
}, "tark"),
|
|
16
|
-
};
|
|
17
|
-
function withArkPrefix(network, prefix) {
|
|
18
|
-
return {
|
|
19
|
-
...network,
|
|
20
|
-
hrp: prefix,
|
|
21
|
-
};
|
|
22
|
-
}
|
package/dist/esm/package.json
DELETED