@bsv/wallet-toolbox 1.7.15 → 1.7.17
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/.github/workflows/push.yaml +91 -14
- package/package.json +1 -1
- package/mobile/node_modules/.package-lock.json +0 -14
- package/mobile/node_modules/@bsv/sdk/LICENSE.txt +0 -28
- package/mobile/node_modules/@bsv/sdk/README.md +0 -133
- package/mobile/node_modules/@bsv/sdk/dist/cjs/mod.js +0 -36
- package/mobile/node_modules/@bsv/sdk/dist/cjs/mod.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/package.json +0 -70
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/Peer.js +0 -695
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/Peer.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/SessionManager.js +0 -130
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/SessionManager.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/Certificate.js +0 -236
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/Certificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/MasterCertificate.js +0 -245
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/MasterCertificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/VerifiableCertificate.js +0 -96
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/VerifiableCertificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/__tests/CompletedProtoWallet.js +0 -111
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/__tests/CompletedProtoWallet.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/index.js +0 -26
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/certificates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/AuthFetch.js +0 -734
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/AuthFetch.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/__tests__/AuthFetch.test.js +0 -189
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/__tests__/AuthFetch.test.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/index.js +0 -18
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/clients/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/index.js +0 -24
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/SimplifiedFetchTransport.js +0 -424
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/SimplifiedFetchTransport.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/__tests__/SimplifiedFetchTransport.test.js +0 -144
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/__tests__/SimplifiedFetchTransport.test.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/index.js +0 -18
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/transports/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/types.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/types.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/createNonce.js +0 -62
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/createNonce.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/getVerifiableCertificates.js +0 -31
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/getVerifiableCertificates.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/index.js +0 -21
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/validateCertificates.js +0 -45
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/validateCertificates.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/verifyNonce.js +0 -61
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/auth/utils/verifyNonce.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/BSM.js +0 -94
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/BSM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/ECIES.js +0 -590
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/ECIES.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/HD.js +0 -354
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/HD.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/Mnemonic.js +0 -314
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/Mnemonic.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/Utxo.js +0 -51
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/Utxo.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/bip-39-wordlist-en.js +0 -2057
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/bip-39-wordlist-en.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/index.js +0 -49
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/compat/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/ContactsManager.js +0 -338
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/ContactsManager.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/IdentityClient.js +0 -367
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/IdentityClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/index.js +0 -19
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/types/index.js +0 -30
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/identity/types/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/GlobalKVStore.js +0 -470
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/GlobalKVStore.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/LocalKVStore.js +0 -343
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/LocalKVStore.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/index.js +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/kvStoreInterpreter.js +0 -88
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/kvStoreInterpreter.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/types.js +0 -12
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/kvstore/types.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/EncryptedMessage.js +0 -71
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/EncryptedMessage.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/SignedMessage.js +0 -86
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/SignedMessage.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/index.js +0 -39
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/messages/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/Historian.js +0 -153
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/Historian.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/HostReputationTracker.js +0 -216
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/HostReputationTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/LookupResolver.js +0 -398
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/LookupResolver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/OverlayAdminTokenTemplate.js +0 -81
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/OverlayAdminTokenTemplate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/SHIPBroadcaster.js +0 -408
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/SHIPBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/index.js +0 -36
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/withDoubleSpendRetry.js +0 -54
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/overlay-tools/withDoubleSpendRetry.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/AESGCM.js +0 -376
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/AESGCM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/BasePoint.js +0 -19
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/BasePoint.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/BigNumber.js +0 -1367
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/BigNumber.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Curve.js +0 -1149
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Curve.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/DRBG.js +0 -109
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/DRBG.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/ECDSA.js +0 -188
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/ECDSA.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Hash.js +0 -1687
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Hash.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/JacobianPoint.js +0 -427
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/JacobianPoint.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/K256.js +0 -127
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/K256.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Mersenne.js +0 -113
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Mersenne.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/MontgomoryMethod.js +0 -150
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/MontgomoryMethod.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Point.js +0 -1098
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Point.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Polynomial.js +0 -83
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Polynomial.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/PrivateKey.js +0 -519
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/PrivateKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/PublicKey.js +0 -261
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/PublicKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Random.js +0 -91
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Random.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/ReductionContext.js +0 -490
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/ReductionContext.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Schnorr.js +0 -98
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Schnorr.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Secp256r1.js +0 -327
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Secp256r1.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Signature.js +0 -358
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/Signature.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/SymmetricKey.js +0 -96
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/SymmetricKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/TransactionSignature.js +0 -235
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/TransactionSignature.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/hex.js +0 -33
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/hex.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/index.js +0 -69
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/utils.js +0 -863
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/primitives/utils.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/RegistryClient.js +0 -533
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/RegistryClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/index.js +0 -19
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/types/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/registry/types/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/LockingScript.js +0 -35
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/LockingScript.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/OP.js +0 -207
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/OP.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/Script.js +0 -567
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/Script.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptChunk.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptChunk.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptEvaluationError.js +0 -27
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptEvaluationError.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptTemplate.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptTemplate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptTemplateUnlock.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/ScriptTemplateUnlock.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/Spend.js +0 -1208
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/Spend.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/UnlockingScript.js +0 -35
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/UnlockingScript.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/index.js +0 -34
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/P2PKH.js +0 -129
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/P2PKH.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/PushDrop.js +0 -219
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/PushDrop.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/RPuzzle.js +0 -130
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/RPuzzle.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/index.js +0 -13
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/script/templates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageDownloader.js +0 -100
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageDownloader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageUploader.js +0 -213
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageUploader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageUtils.js +0 -81
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/StorageUtils.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/index.js +0 -42
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/storage/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/totp/index.js +0 -18
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/totp/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/totp/totp.js +0 -92
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/totp/totp.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Beef.js +0 -840
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Beef.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/BeefParty.js +0 -117
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/BeefParty.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/BeefTx.js +0 -191
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/BeefTx.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Broadcaster.js +0 -17
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Broadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/ChainTracker.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/ChainTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/FeeModel.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/FeeModel.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/MerklePath.js +0 -383
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/MerklePath.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Transaction.js +0 -911
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/Transaction.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/TransactionInput.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/TransactionInput.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/TransactionOutput.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/TransactionOutput.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/ARC.js +0 -181
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/ARC.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/DefaultBroadcaster.js +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/DefaultBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/Teranode.js +0 -63
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/Teranode.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/WhatsOnChainBroadcaster.js +0 -65
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/WhatsOnChainBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/index.js +0 -15
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/broadcasters/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/BlockHeadersService.js +0 -91
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/BlockHeadersService.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/DefaultChainTracker.js +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/DefaultChainTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/WhatsOnChain.js +0 -67
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/WhatsOnChain.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/index.js +0 -13
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/chaintrackers/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/LivePolicy.js +0 -90
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/LivePolicy.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/SatoshisPerKilobyte.js +0 -69
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/SatoshisPerKilobyte.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/index.js +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/fee-models/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/BinaryFetchClient.js +0 -94
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/BinaryFetchClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/DefaultHttpClient.js +0 -37
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/DefaultHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/FetchHttpClient.js +0 -31
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/FetchHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/HttpClient.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/HttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/NodejsHttpClient.js +0 -43
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/NodejsHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/index.js +0 -12
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/http/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/index.js +0 -33
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/transaction/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/CachedKeyDeriver.js +0 -210
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/CachedKeyDeriver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/KeyDeriver.js +0 -191
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/KeyDeriver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/ProtoWallet.js +0 -188
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/ProtoWallet.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_INSUFFICIENT_FUNDS.js +0 -26
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_INSUFFICIENT_FUNDS.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_INVALID_PARAMETER.js +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_INVALID_PARAMETER.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_REVIEW_ACTIONS.js +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WERR_REVIEW_ACTIONS.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/Wallet.interfaces.js +0 -17
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/Wallet.interfaces.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletClient.js +0 -222
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletError.js +0 -84
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletError.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletLoggerInterface.js +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/WalletLoggerInterface.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/index.js +0 -64
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/HTTPWalletJSON.js +0 -153
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/HTTPWalletJSON.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/HTTPWalletWire.js +0 -78
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/HTTPWalletWire.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/ReactNativeWebView.js +0 -175
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/ReactNativeWebView.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWire.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWire.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireCalls.js +0 -36
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireCalls.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireProcessor.js +0 -1854
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireProcessor.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireTransceiver.js +0 -1411
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/WalletWireTransceiver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/XDM.js +0 -172
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/XDM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/index.js +0 -37
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/utils/toOriginHeader.js +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/utils/toOriginHeader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/window.CWI.js +0 -102
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/substrates/window.CWI.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/validationHelpers.js +0 -931
- package/mobile/node_modules/@bsv/sdk/dist/cjs/src/wallet/validationHelpers.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/mod.js +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/esm/mod.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/Peer.js +0 -663
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/Peer.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/SessionManager.js +0 -134
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/SessionManager.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/Certificate.js +0 -225
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/Certificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/MasterCertificate.js +0 -206
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/MasterCertificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/VerifiableCertificate.js +0 -58
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/VerifiableCertificate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/__tests/CompletedProtoWallet.js +0 -105
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/__tests/CompletedProtoWallet.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/index.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/certificates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/AuthFetch.js +0 -698
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/AuthFetch.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/__tests__/AuthFetch.test.js +0 -187
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/__tests__/AuthFetch.test.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/index.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/clients/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/index.js +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/SimplifiedFetchTransport.js +0 -390
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/SimplifiedFetchTransport.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/__tests__/SimplifiedFetchTransport.test.js +0 -109
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/__tests__/SimplifiedFetchTransport.test.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/index.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/transports/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/types.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/types.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/createNonce.js +0 -23
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/createNonce.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/getVerifiableCertificates.js +0 -27
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/getVerifiableCertificates.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/index.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/validateCertificates.js +0 -41
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/validateCertificates.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/verifyNonce.js +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/auth/utils/verifyNonce.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/BSM.js +0 -52
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/BSM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/ECIES.js +0 -551
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/ECIES.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/HD.js +0 -322
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/HD.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/Mnemonic.js +0 -278
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/Mnemonic.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/Utxo.js +0 -45
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/Utxo.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/bip-39-wordlist-en.js +0 -2054
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/bip-39-wordlist-en.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/index.js +0 -6
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/compat/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/ContactsManager.js +0 -334
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/ContactsManager.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/IdentityClient.js +0 -364
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/IdentityClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/types/index.js +0 -27
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/identity/types/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/GlobalKVStore.js +0 -456
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/GlobalKVStore.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/LocalKVStore.js +0 -328
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/LocalKVStore.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/kvStoreInterpreter.js +0 -51
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/kvStoreInterpreter.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/types.js +0 -9
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/kvstore/types.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/EncryptedMessage.js +0 -63
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/EncryptedMessage.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/SignedMessage.js +0 -78
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/SignedMessage.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/messages/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/Historian.js +0 -155
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/Historian.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/HostReputationTracker.js +0 -213
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/HostReputationTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/LookupResolver.js +0 -372
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/LookupResolver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/OverlayAdminTokenTemplate.js +0 -76
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/OverlayAdminTokenTemplate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/SHIPBroadcaster.js +0 -376
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/SHIPBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/index.js +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/withDoubleSpendRetry.js +0 -48
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/overlay-tools/withDoubleSpendRetry.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/AESGCM.js +0 -363
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/AESGCM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/BasePoint.js +0 -16
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/BasePoint.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/BigNumber.js +0 -1373
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/BigNumber.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Curve.js +0 -1164
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Curve.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/DRBG.js +0 -108
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/DRBG.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/ECDSA.js +0 -180
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/ECDSA.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Hash.js +0 -1693
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Hash.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/JacobianPoint.js +0 -425
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/JacobianPoint.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/K256.js +0 -121
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/K256.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Mersenne.js +0 -112
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Mersenne.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/MontgomoryMethod.js +0 -149
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/MontgomoryMethod.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Point.js +0 -1078
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Point.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Polynomial.js +0 -79
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Polynomial.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/PrivateKey.js +0 -481
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/PrivateKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/PublicKey.js +0 -255
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/PublicKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Random.js +0 -90
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Random.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/ReductionContext.js +0 -486
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/ReductionContext.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Schnorr.js +0 -93
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Schnorr.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Secp256r1.js +0 -319
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Secp256r1.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Signature.js +0 -361
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/Signature.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/SymmetricKey.js +0 -90
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/SymmetricKey.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/TransactionSignature.js +0 -197
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/TransactionSignature.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/hex.js +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/hex.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/index.js +0 -16
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/utils.js +0 -847
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/primitives/utils.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/RegistryClient.js +0 -534
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/RegistryClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/types/index.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/registry/types/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/LockingScript.js +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/LockingScript.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/OP.js +0 -205
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/OP.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/Script.js +0 -565
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/Script.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptChunk.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptChunk.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptEvaluationError.js +0 -33
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptEvaluationError.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptTemplate.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptTemplate.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptTemplateUnlock.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/ScriptTemplateUnlock.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/Spend.js +0 -1190
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/Spend.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/UnlockingScript.js +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/UnlockingScript.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/index.js +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/P2PKH.js +0 -125
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/P2PKH.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/PushDrop.js +0 -220
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/PushDrop.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/RPuzzle.js +0 -124
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/RPuzzle.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/index.js +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/script/templates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageDownloader.js +0 -94
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageDownloader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageUploader.js +0 -178
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageUploader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageUtils.js +0 -73
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/StorageUtils.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/index.js +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/storage/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/totp/index.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/totp/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/totp/totp.js +0 -85
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/totp/totp.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Beef.js +0 -835
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Beef.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/BeefParty.js +0 -113
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/BeefParty.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/BeefTx.js +0 -189
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/BeefTx.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Broadcaster.js +0 -13
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Broadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/ChainTracker.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/ChainTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/FeeModel.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/FeeModel.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/MerklePath.js +0 -382
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/MerklePath.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Transaction.js +0 -914
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/Transaction.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/TransactionInput.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/TransactionInput.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/TransactionOutput.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/TransactionOutput.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/ARC.js +0 -182
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/ARC.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/DefaultBroadcaster.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/DefaultBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/Teranode.js +0 -62
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/Teranode.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/WhatsOnChainBroadcaster.js +0 -65
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/WhatsOnChainBroadcaster.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/index.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/broadcasters/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/BlockHeadersService.js +0 -90
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/BlockHeadersService.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/DefaultChainTracker.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/DefaultChainTracker.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/WhatsOnChain.js +0 -68
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/WhatsOnChain.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/index.js +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/chaintrackers/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/LivePolicy.js +0 -85
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/LivePolicy.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/SatoshisPerKilobyte.js +0 -71
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/SatoshisPerKilobyte.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/index.js +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/fee-models/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/BinaryFetchClient.js +0 -90
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/BinaryFetchClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/DefaultHttpClient.js +0 -34
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/DefaultHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/FetchHttpClient.js +0 -28
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/FetchHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/HttpClient.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/HttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/NodejsHttpClient.js +0 -40
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/NodejsHttpClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/index.js +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/http/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/index.js +0 -7
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/transaction/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/CachedKeyDeriver.js +0 -218
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/CachedKeyDeriver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/KeyDeriver.js +0 -192
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/KeyDeriver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/ProtoWallet.js +0 -182
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/ProtoWallet.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_INSUFFICIENT_FUNDS.js +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_INSUFFICIENT_FUNDS.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_INVALID_PARAMETER.js +0 -18
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_INVALID_PARAMETER.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_REVIEW_ACTIONS.js +0 -31
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WERR_REVIEW_ACTIONS.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/Wallet.interfaces.js +0 -14
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/Wallet.interfaces.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletClient.js +0 -218
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletClient.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletError.js +0 -81
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletError.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletLoggerInterface.js +0 -7
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/WalletLoggerInterface.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/index.js +0 -15
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/HTTPWalletJSON.js +0 -151
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/HTTPWalletJSON.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/HTTPWalletWire.js +0 -42
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/HTTPWalletWire.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/ReactNativeWebView.js +0 -137
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/ReactNativeWebView.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWire.js +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWire.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireCalls.js +0 -34
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireCalls.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireProcessor.js +0 -1816
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireProcessor.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireTransceiver.js +0 -1373
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/WalletWireTransceiver.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/XDM.js +0 -134
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/XDM.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/index.js +0 -10
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/index.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/utils/toOriginHeader.js +0 -17
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/utils/toOriginHeader.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/window.CWI.js +0 -100
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/substrates/window.CWI.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/validationHelpers.js +0 -860
- package/mobile/node_modules/@bsv/sdk/dist/esm/src/wallet/validationHelpers.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/mod.d.ts +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/types/mod.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/Peer.d.ts +0 -200
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/Peer.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/SessionManager.d.ts +0 -60
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/SessionManager.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/Certificate.d.ts +0 -112
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/Certificate.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/MasterCertificate.d.ts +0 -108
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/MasterCertificate.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/VerifiableCertificate.d.ts +0 -37
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/VerifiableCertificate.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/__tests/CompletedProtoWallet.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/__tests/CompletedProtoWallet.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/index.d.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/certificates/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/AuthFetch.d.ts +0 -126
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/AuthFetch.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/__tests__/AuthFetch.test.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/__tests__/AuthFetch.test.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/index.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/clients/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/index.d.ts +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/SimplifiedFetchTransport.d.ts +0 -57
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/SimplifiedFetchTransport.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/__tests__/SimplifiedFetchTransport.test.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/__tests__/SimplifiedFetchTransport.test.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/index.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/transports/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/types.d.ts +0 -32
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/types.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/createNonce.d.ts +0 -9
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/createNonce.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/getVerifiableCertificates.d.ts +0 -13
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/getVerifiableCertificates.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/index.d.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/validateCertificates.d.ts +0 -12
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/validateCertificates.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/verifyNonce.d.ts +0 -10
- package/mobile/node_modules/@bsv/sdk/dist/types/src/auth/utils/verifyNonce.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/BSM.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/BSM.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/ECIES.d.ts +0 -62
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/ECIES.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/HD.d.ts +0 -131
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/HD.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/Mnemonic.d.ts +0 -132
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/Mnemonic.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/Utxo.d.ts +0 -42
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/Utxo.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/bip-39-wordlist-en.d.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/bip-39-wordlist-en.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/index.d.ts +0 -6
- package/mobile/node_modules/@bsv/sdk/dist/types/src/compat/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/ContactsManager.d.ts +0 -32
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/ContactsManager.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/IdentityClient.d.ts +0 -81
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/IdentityClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/index.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/types/index.d.ts +0 -30
- package/mobile/node_modules/@bsv/sdk/dist/types/src/identity/types/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/GlobalKVStore.d.ts +0 -129
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/GlobalKVStore.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/LocalKVStore.d.ts +0 -95
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/LocalKVStore.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/index.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/kvStoreInterpreter.d.ts +0 -23
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/kvStoreInterpreter.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/types.d.ts +0 -118
- package/mobile/node_modules/@bsv/sdk/dist/types/src/kvstore/types.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/EncryptedMessage.d.ts +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/EncryptedMessage.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/SignedMessage.d.ts +0 -21
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/SignedMessage.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/index.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/messages/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/Historian.d.ts +0 -92
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/Historian.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/HostReputationTracker.d.ts +0 -37
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/HostReputationTracker.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/LookupResolver.d.ts +0 -124
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/LookupResolver.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/OverlayAdminTokenTemplate.d.ts +0 -44
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/OverlayAdminTokenTemplate.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/SHIPBroadcaster.d.ts +0 -105
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/SHIPBroadcaster.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/index.d.ts +0 -9
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/withDoubleSpendRetry.d.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/dist/types/src/overlay-tools/withDoubleSpendRetry.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/AESGCM.d.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/AESGCM.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/BasePoint.d.ts +0 -22
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/BasePoint.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/BigNumber.d.ts +0 -438
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/BigNumber.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Curve.d.ts +0 -62
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Curve.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/DRBG.d.ts +0 -66
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/DRBG.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/ECDSA.d.ts +0 -39
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/ECDSA.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Hash.d.ts +0 -499
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Hash.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/JacobianPoint.d.ts +0 -164
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/JacobianPoint.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/K256.d.ts +0 -53
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/K256.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Mersenne.d.ts +0 -72
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Mersenne.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/MontgomoryMethod.d.ts +0 -96
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/MontgomoryMethod.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Point.d.ts +0 -362
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Point.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Polynomial.d.ts +0 -32
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Polynomial.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/PrivateKey.d.ts +0 -284
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/PrivateKey.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/PublicKey.d.ts +0 -155
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/PublicKey.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Random.d.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Random.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/ReductionContext.d.ts +0 -308
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/ReductionContext.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Schnorr.d.ts +0 -65
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Schnorr.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Secp256r1.d.ts +0 -91
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Secp256r1.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Signature.d.ts +0 -162
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/Signature.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/SymmetricKey.d.ts +0 -55
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/SymmetricKey.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/TransactionSignature.d.ts +0 -57
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/TransactionSignature.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/hex.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/hex.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/index.d.ts +0 -16
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/utils.d.ts +0 -140
- package/mobile/node_modules/@bsv/sdk/dist/types/src/primitives/utils.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/RegistryClient.d.ts +0 -121
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/RegistryClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/index.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/types/index.d.ts +0 -113
- package/mobile/node_modules/@bsv/sdk/dist/types/src/registry/types/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/LockingScript.d.ts +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/LockingScript.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/OP.d.ts +0 -193
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/OP.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/Script.d.ts +0 -157
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/Script.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptChunk.d.ts +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptChunk.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptEvaluationError.d.ts +0 -24
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptEvaluationError.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptTemplate.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptTemplate.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptTemplateUnlock.d.ts +0 -7
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/ScriptTemplateUnlock.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/Spend.d.ts +0 -120
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/Spend.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/UnlockingScript.d.ts +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/UnlockingScript.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/index.d.ts +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/P2PKH.d.ts +0 -40
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/P2PKH.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/PushDrop.d.ts +0 -56
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/PushDrop.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/RPuzzle.d.ts +0 -47
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/RPuzzle.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/index.d.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/types/src/script/templates/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageDownloader.d.ts +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageDownloader.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageUploader.d.ts +0 -103
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageUploader.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageUtils.d.ts +0 -32
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/StorageUtils.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/index.d.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/types/src/storage/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/totp/index.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/totp/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/totp/totp.d.ts +0 -42
- package/mobile/node_modules/@bsv/sdk/dist/types/src/totp/totp.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Beef.d.ts +0 -248
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Beef.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/BeefParty.d.ts +0 -73
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/BeefParty.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/BeefTx.d.ts +0 -43
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/BeefTx.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Broadcaster.d.ts +0 -55
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Broadcaster.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/ChainTracker.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/ChainTracker.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/FeeModel.d.ts +0 -12
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/FeeModel.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/MerklePath.d.ts +0 -125
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/MerklePath.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Transaction.d.ts +0 -299
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/Transaction.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/TransactionInput.d.ts +0 -63
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/TransactionInput.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/TransactionOutput.d.ts +0 -36
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/TransactionOutput.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/ARC.d.ts +0 -64
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/ARC.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/DefaultBroadcaster.d.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/DefaultBroadcaster.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/Teranode.d.ts +0 -25
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/Teranode.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/WhatsOnChainBroadcaster.d.ts +0 -26
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/WhatsOnChainBroadcaster.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/index.d.ts +0 -6
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/broadcasters/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/BlockHeadersService.d.ts +0 -46
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/BlockHeadersService.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/DefaultChainTracker.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/DefaultChainTracker.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/WhatsOnChain.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/WhatsOnChain.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/index.d.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/chaintrackers/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/LivePolicy.d.ts +0 -41
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/LivePolicy.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/SatoshisPerKilobyte.d.ts +0 -26
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/SatoshisPerKilobyte.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/index.d.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/fee-models/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/BinaryFetchClient.d.ts +0 -48
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/BinaryFetchClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/DefaultHttpClient.d.ts +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/DefaultHttpClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/FetchHttpClient.d.ts +0 -29
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/FetchHttpClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/HttpClient.d.ts +0 -45
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/HttpClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/NodejsHttpClient.d.ts +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/NodejsHttpClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/index.d.ts +0 -8
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/http/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/index.d.ts +0 -11
- package/mobile/node_modules/@bsv/sdk/dist/types/src/transaction/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/CachedKeyDeriver.d.ts +0 -102
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/CachedKeyDeriver.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/KeyDeriver.d.ts +0 -130
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/KeyDeriver.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/ProtoWallet.d.ts +0 -27
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/ProtoWallet.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_INSUFFICIENT_FUNDS.d.ts +0 -19
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_INSUFFICIENT_FUNDS.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_INVALID_PARAMETER.d.ts +0 -13
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_INVALID_PARAMETER.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_REVIEW_ACTIONS.d.ts +0 -23
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WERR_REVIEW_ACTIONS.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/Wallet.interfaces.d.ts +0 -1068
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/Wallet.interfaces.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletClient.d.ts +0 -180
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletClient.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletError.d.ts +0 -28
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletError.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletLoggerInterface.d.ts +0 -79
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/WalletLoggerInterface.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/index.d.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/HTTPWalletJSON.d.ts +0 -189
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/HTTPWalletJSON.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/HTTPWalletWire.d.ts +0 -9
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/HTTPWalletWire.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/ReactNativeWebView.d.ts +0 -412
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/ReactNativeWebView.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWire.d.ts +0 -7
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWire.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireCalls.d.ts +0 -33
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireCalls.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireProcessor.d.ts +0 -18
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireProcessor.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireTransceiver.d.ts +0 -196
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/WalletWireTransceiver.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/XDM.d.ts +0 -412
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/XDM.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/index.d.ts +0 -10
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/index.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/utils/toOriginHeader.d.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/utils/toOriginHeader.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/window.CWI.d.ts +0 -410
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/substrates/window.CWI.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/validationHelpers.d.ts +0 -514
- package/mobile/node_modules/@bsv/sdk/dist/types/src/wallet/validationHelpers.d.ts.map +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/mobile/node_modules/@bsv/sdk/dist/umd/bundle.js +0 -20
- package/mobile/node_modules/@bsv/sdk/dist/umd/bundle.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/fast-docs.png +0 -0
- package/mobile/node_modules/@bsv/sdk/docs/index.md +0 -77
- package/mobile/node_modules/@bsv/sdk/docs/performance.md +0 -70
- package/mobile/node_modules/@bsv/sdk/docs/reference/auth.md +0 -1330
- package/mobile/node_modules/@bsv/sdk/docs/reference/compat.md +0 -2951
- package/mobile/node_modules/@bsv/sdk/docs/reference/identity.md +0 -383
- package/mobile/node_modules/@bsv/sdk/docs/reference/kvstore.md +0 -648
- package/mobile/node_modules/@bsv/sdk/docs/reference/messages.md +0 -158
- package/mobile/node_modules/@bsv/sdk/docs/reference/overlay-tools.md +0 -691
- package/mobile/node_modules/@bsv/sdk/docs/reference/primitives.md +0 -6262
- package/mobile/node_modules/@bsv/sdk/docs/reference/registry.md +0 -408
- package/mobile/node_modules/@bsv/sdk/docs/reference/script.md +0 -942
- package/mobile/node_modules/@bsv/sdk/docs/reference/storage.md +0 -411
- package/mobile/node_modules/@bsv/sdk/docs/reference/totp.md +0 -121
- package/mobile/node_modules/@bsv/sdk/docs/reference/transaction.md +0 -2332
- package/mobile/node_modules/@bsv/sdk/docs/reference/wallet.md +0 -6054
- package/mobile/node_modules/@bsv/sdk/docs/requirements.txt +0 -3
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/LICENSE +0 -21
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/favicon-16x16.png +0 -0
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/favicon-32x32.png +0 -0
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/index.css +0 -16
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/oauth2-redirect.html +0 -79
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-initializer.js +0 -20
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-bundle.js +0 -2
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-bundle.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-es-bundle-core.js +0 -3
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-es-bundle-core.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-es-bundle.js +0 -2
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-es-bundle.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-standalone-preset.js +0 -2
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui-standalone-preset.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui.css +0 -3
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui.css.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui.js +0 -2
- package/mobile/node_modules/@bsv/sdk/docs/swagger/dist/swagger-ui.js.map +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/index.html +0 -19
- package/mobile/node_modules/@bsv/sdk/docs/swagger/swagger-ui.version +0 -1
- package/mobile/node_modules/@bsv/sdk/docs/swagger/swagger.yaml +0 -1960
- package/mobile/node_modules/@bsv/sdk/docs/swagger.png +0 -0
- package/mobile/node_modules/@bsv/sdk/mod.ts +0 -19
- package/mobile/node_modules/@bsv/sdk/package.json +0 -268
- package/mobile/node_modules/@bsv/sdk/src/auth/Peer.ts +0 -875
- package/mobile/node_modules/@bsv/sdk/src/auth/SessionManager.ts +0 -145
- package/mobile/node_modules/@bsv/sdk/src/auth/__tests/Peer.test.ts +0 -1059
- package/mobile/node_modules/@bsv/sdk/src/auth/__tests/SessionManager.test.ts +0 -136
- package/mobile/node_modules/@bsv/sdk/src/auth/__tests/build.test.ts +0 -11
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/Certificate.ts +0 -311
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/MasterCertificate.ts +0 -360
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/VerifiableCertificate.ts +0 -125
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/__tests/Certificate.test.ts +0 -386
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/__tests/CompletedProtoWallet.ts +0 -202
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/__tests/MasterCertificate.test.ts +0 -424
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/__tests/VerifiableCertificate.test.ts +0 -179
- package/mobile/node_modules/@bsv/sdk/src/auth/certificates/index.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/src/auth/clients/AuthFetch.ts +0 -881
- package/mobile/node_modules/@bsv/sdk/src/auth/clients/__tests__/AuthFetch.test.ts +0 -262
- package/mobile/node_modules/@bsv/sdk/src/auth/clients/index.ts +0 -1
- package/mobile/node_modules/@bsv/sdk/src/auth/index.ts +0 -7
- package/mobile/node_modules/@bsv/sdk/src/auth/transports/SimplifiedFetchTransport.ts +0 -446
- package/mobile/node_modules/@bsv/sdk/src/auth/transports/__tests__/SimplifiedFetchTransport.test.ts +0 -126
- package/mobile/node_modules/@bsv/sdk/src/auth/transports/index.ts +0 -1
- package/mobile/node_modules/@bsv/sdk/src/auth/types.ts +0 -42
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/__tests/cryptononce.test.ts +0 -146
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/__tests/getVerifiableCertificates.test.ts +0 -152
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/__tests/validateCertificates.test.ts +0 -164
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/createNonce.ts +0 -33
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/getVerifiableCertificates.ts +0 -46
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/index.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/validateCertificates.ts +0 -73
- package/mobile/node_modules/@bsv/sdk/src/auth/utils/verifyNonce.ts +0 -34
- package/mobile/node_modules/@bsv/sdk/src/compat/BSM.ts +0 -66
- package/mobile/node_modules/@bsv/sdk/src/compat/ECIES.ts +0 -701
- package/mobile/node_modules/@bsv/sdk/src/compat/HD.ts +0 -386
- package/mobile/node_modules/@bsv/sdk/src/compat/Mnemonic.ts +0 -308
- package/mobile/node_modules/@bsv/sdk/src/compat/Utxo.ts +0 -59
- package/mobile/node_modules/@bsv/sdk/src/compat/__tests/BSM.test.ts +0 -80
- package/mobile/node_modules/@bsv/sdk/src/compat/__tests/ECIES.test.ts +0 -184
- package/mobile/node_modules/@bsv/sdk/src/compat/__tests/HD.test.ts +0 -417
- package/mobile/node_modules/@bsv/sdk/src/compat/__tests/Mnemonic.test.ts +0 -175
- package/mobile/node_modules/@bsv/sdk/src/compat/__tests/Mnemonic.vectors.ts +0 -227
- package/mobile/node_modules/@bsv/sdk/src/compat/bip-39-wordlist-en.ts +0 -2053
- package/mobile/node_modules/@bsv/sdk/src/compat/index.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/src/identity/ContactsManager.ts +0 -376
- package/mobile/node_modules/@bsv/sdk/src/identity/IdentityClient.ts +0 -497
- package/mobile/node_modules/@bsv/sdk/src/identity/README.md +0 -92
- package/mobile/node_modules/@bsv/sdk/src/identity/__tests/IdentityClient.test.ts +0 -772
- package/mobile/node_modules/@bsv/sdk/src/identity/index.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/src/identity/types/index.ts +0 -46
- package/mobile/node_modules/@bsv/sdk/src/kvstore/GlobalKVStore.ts +0 -523
- package/mobile/node_modules/@bsv/sdk/src/kvstore/LocalKVStore.ts +0 -357
- package/mobile/node_modules/@bsv/sdk/src/kvstore/__tests/GlobalKVStore.test.ts +0 -1104
- package/mobile/node_modules/@bsv/sdk/src/kvstore/__tests/LocalKVStore.test.ts +0 -686
- package/mobile/node_modules/@bsv/sdk/src/kvstore/index.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/src/kvstore/kvStoreInterpreter.ts +0 -54
- package/mobile/node_modules/@bsv/sdk/src/kvstore/types.ts +0 -126
- package/mobile/node_modules/@bsv/sdk/src/messages/EncryptedMessage.ts +0 -74
- package/mobile/node_modules/@bsv/sdk/src/messages/SignedMessage.ts +0 -93
- package/mobile/node_modules/@bsv/sdk/src/messages/__tests/EncryptedMessage.test.ts +0 -61
- package/mobile/node_modules/@bsv/sdk/src/messages/__tests/SignedMessage.test.ts +0 -59
- package/mobile/node_modules/@bsv/sdk/src/messages/index.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/Historian.ts +0 -195
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/HostReputationTracker.ts +0 -232
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/LookupResolver.ts +0 -499
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/OverlayAdminTokenTemplate.ts +0 -108
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/SHIPBroadcaster.ts +0 -504
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/__tests/Historian.test.ts +0 -690
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/__tests/LookupResolver.test.ts +0 -1805
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/__tests/OverlayAdminTokenTemplate.test.ts +0 -97
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/__tests/SHIPBroadcaster.test.ts +0 -1304
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/index.ts +0 -11
- package/mobile/node_modules/@bsv/sdk/src/overlay-tools/withDoubleSpendRetry.ts +0 -71
- package/mobile/node_modules/@bsv/sdk/src/primitives/AESGCM.ts +0 -457
- package/mobile/node_modules/@bsv/sdk/src/primitives/BasePoint.ts +0 -21
- package/mobile/node_modules/@bsv/sdk/src/primitives/BigNumber.ts +0 -1368
- package/mobile/node_modules/@bsv/sdk/src/primitives/Curve.ts +0 -1234
- package/mobile/node_modules/@bsv/sdk/src/primitives/DRBG.ts +0 -118
- package/mobile/node_modules/@bsv/sdk/src/primitives/ECDSA.ts +0 -208
- package/mobile/node_modules/@bsv/sdk/src/primitives/Hash.ts +0 -1924
- package/mobile/node_modules/@bsv/sdk/src/primitives/JacobianPoint.ts +0 -475
- package/mobile/node_modules/@bsv/sdk/src/primitives/K256.ts +0 -136
- package/mobile/node_modules/@bsv/sdk/src/primitives/Mersenne.ts +0 -119
- package/mobile/node_modules/@bsv/sdk/src/primitives/MontgomoryMethod.ts +0 -160
- package/mobile/node_modules/@bsv/sdk/src/primitives/Point.ts +0 -1200
- package/mobile/node_modules/@bsv/sdk/src/primitives/Polynomial.ts +0 -94
- package/mobile/node_modules/@bsv/sdk/src/primitives/PrivateKey.ts +0 -524
- package/mobile/node_modules/@bsv/sdk/src/primitives/PublicKey.ts +0 -282
- package/mobile/node_modules/@bsv/sdk/src/primitives/Random.ts +0 -101
- package/mobile/node_modules/@bsv/sdk/src/primitives/ReductionContext.ts +0 -528
- package/mobile/node_modules/@bsv/sdk/src/primitives/Schnorr.ts +0 -117
- package/mobile/node_modules/@bsv/sdk/src/primitives/Secp256r1.ts +0 -334
- package/mobile/node_modules/@bsv/sdk/src/primitives/Signature.ts +0 -389
- package/mobile/node_modules/@bsv/sdk/src/primitives/SymmetricKey.ts +0 -102
- package/mobile/node_modules/@bsv/sdk/src/primitives/TransactionSignature.ts +0 -260
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/AESGCM.test.ts +0 -700
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BRC42.private.vectors.ts +0 -48
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BRC42.public.vectors.ts +0 -48
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.arithmatic.test.ts +0 -791
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.binary.test.ts +0 -284
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.constructor.test.ts +0 -216
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.dhGroup.test.ts +0 -22
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.fixtures.ts +0 -272
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.serializers.test.ts +0 -183
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/BigNumber.utils.test.ts +0 -437
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Curve.unit.test.ts +0 -277
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/DRBG.test.ts +0 -281
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/DRBG.vectors.ts +0 -137
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/ECDH.test.ts +0 -38
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/ECDSA.test.ts +0 -93
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/HMAC.test.ts +0 -76
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Hash.test.ts +0 -256
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/PBKDF2.vectors.ts +0 -132
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/PrivateKey.split.test.ts +0 -92
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/PrivateKey.test.ts +0 -98
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/PublicKey.test.ts +0 -96
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Random.test.ts +0 -35
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Reader.test.ts +0 -317
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/ReductionContext.test.ts +0 -321
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Schnorr.test.ts +0 -284
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Secp256r1.test.ts +0 -101
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/SymmetricKey.test.ts +0 -128
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/SymmetricKey.vectors.ts +0 -48
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/SymmetricKeyCompatibility.test.ts +0 -150
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/Writer.test.ts +0 -208
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/bug-31.test.ts +0 -27
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/hex.test.ts +0 -57
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/sighash.vectors.ts +0 -3503
- package/mobile/node_modules/@bsv/sdk/src/primitives/__tests/utils.test.ts +0 -378
- package/mobile/node_modules/@bsv/sdk/src/primitives/hex.ts +0 -35
- package/mobile/node_modules/@bsv/sdk/src/primitives/index.ts +0 -15
- package/mobile/node_modules/@bsv/sdk/src/primitives/utils.ts +0 -953
- package/mobile/node_modules/@bsv/sdk/src/registry/RegistryClient.ts +0 -667
- package/mobile/node_modules/@bsv/sdk/src/registry/__tests/RegistryClient.test.ts +0 -647
- package/mobile/node_modules/@bsv/sdk/src/registry/index.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/src/registry/types/index.ts +0 -131
- package/mobile/node_modules/@bsv/sdk/src/script/LockingScript.ts +0 -30
- package/mobile/node_modules/@bsv/sdk/src/script/OP.ts +0 -218
- package/mobile/node_modules/@bsv/sdk/src/script/Script.ts +0 -591
- package/mobile/node_modules/@bsv/sdk/src/script/ScriptChunk.ts +0 -7
- package/mobile/node_modules/@bsv/sdk/src/script/ScriptEvaluationError.ts +0 -44
- package/mobile/node_modules/@bsv/sdk/src/script/ScriptTemplate.ts +0 -30
- package/mobile/node_modules/@bsv/sdk/src/script/ScriptTemplateUnlock.ts +0 -7
- package/mobile/node_modules/@bsv/sdk/src/script/Spend.ts +0 -1085
- package/mobile/node_modules/@bsv/sdk/src/script/UnlockingScript.ts +0 -30
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/Script.test.ts +0 -429
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/Spend.test.ts +0 -555
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/SpendComplex.test.ts +0 -48
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/script.invalid.vectors.ts +0 -999
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/script.valid.vectors.ts +0 -1178
- package/mobile/node_modules/@bsv/sdk/src/script/__tests/spend.valid.vectors.ts +0 -2295
- package/mobile/node_modules/@bsv/sdk/src/script/index.ts +0 -10
- package/mobile/node_modules/@bsv/sdk/src/script/templates/P2PKH.ts +0 -157
- package/mobile/node_modules/@bsv/sdk/src/script/templates/PushDrop.ts +0 -281
- package/mobile/node_modules/@bsv/sdk/src/script/templates/RPuzzle.ts +0 -161
- package/mobile/node_modules/@bsv/sdk/src/script/templates/__tests/PushDrop.test.ts +0 -263
- package/mobile/node_modules/@bsv/sdk/src/script/templates/index.ts +0 -3
- package/mobile/node_modules/@bsv/sdk/src/storage/StorageDownloader.ts +0 -114
- package/mobile/node_modules/@bsv/sdk/src/storage/StorageUploader.ts +0 -258
- package/mobile/node_modules/@bsv/sdk/src/storage/StorageUtils.ts +0 -74
- package/mobile/node_modules/@bsv/sdk/src/storage/__tests/StorageDownloader.test.ts +0 -236
- package/mobile/node_modules/@bsv/sdk/src/storage/__tests/StorageUploader.test.ts +0 -219
- package/mobile/node_modules/@bsv/sdk/src/storage/__tests/StorageUtils.test.ts +0 -86
- package/mobile/node_modules/@bsv/sdk/src/storage/index.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/src/totp/__tests/totp.test.ts +0 -81
- package/mobile/node_modules/@bsv/sdk/src/totp/index.ts +0 -1
- package/mobile/node_modules/@bsv/sdk/src/totp/totp.ts +0 -138
- package/mobile/node_modules/@bsv/sdk/src/transaction/Beef.ts +0 -935
- package/mobile/node_modules/@bsv/sdk/src/transaction/BeefParty.ts +0 -123
- package/mobile/node_modules/@bsv/sdk/src/transaction/BeefTx.ts +0 -194
- package/mobile/node_modules/@bsv/sdk/src/transaction/Broadcaster.ts +0 -69
- package/mobile/node_modules/@bsv/sdk/src/transaction/ChainTracker.ts +0 -28
- package/mobile/node_modules/@bsv/sdk/src/transaction/FeeModel.ts +0 -12
- package/mobile/node_modules/@bsv/sdk/src/transaction/MerklePath.ts +0 -455
- package/mobile/node_modules/@bsv/sdk/src/transaction/Transaction.ts +0 -1055
- package/mobile/node_modules/@bsv/sdk/src/transaction/TransactionInput.ts +0 -63
- package/mobile/node_modules/@bsv/sdk/src/transaction/TransactionOutput.ts +0 -36
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/Beef.test.ts +0 -500
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/MerklePath.test.ts +0 -249
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/Transaction.test.ts +0 -1419
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/bigtx.vectors.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/bump.invalid.vectors.ts +0 -26
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/bump.valid.vectors.ts +0 -8
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/tx.invalid.vectors.ts +0 -977
- package/mobile/node_modules/@bsv/sdk/src/transaction/__tests/tx.valid.vectors.ts +0 -1317
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/ARC.ts +0 -255
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/DefaultBroadcaster.ts +0 -12
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/Teranode.ts +0 -77
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/WhatsOnChainBroadcaster.ts +0 -83
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/__tests/ARC.test.ts +0 -323
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/__tests/WhatsOnChainBroadcaster.test.ts +0 -171
- package/mobile/node_modules/@bsv/sdk/src/transaction/broadcasters/index.ts +0 -5
- package/mobile/node_modules/@bsv/sdk/src/transaction/chaintrackers/BlockHeadersService.ts +0 -138
- package/mobile/node_modules/@bsv/sdk/src/transaction/chaintrackers/DefaultChainTracker.ts +0 -6
- package/mobile/node_modules/@bsv/sdk/src/transaction/chaintrackers/WhatsOnChain.ts +0 -102
- package/mobile/node_modules/@bsv/sdk/src/transaction/chaintrackers/__tests/WhatsOnChainChainTracker.test.ts +0 -198
- package/mobile/node_modules/@bsv/sdk/src/transaction/chaintrackers/index.ts +0 -4
- package/mobile/node_modules/@bsv/sdk/src/transaction/fee-models/LivePolicy.ts +0 -97
- package/mobile/node_modules/@bsv/sdk/src/transaction/fee-models/SatoshisPerKilobyte.ts +0 -75
- package/mobile/node_modules/@bsv/sdk/src/transaction/fee-models/__tests/LivePolicy.test.ts +0 -148
- package/mobile/node_modules/@bsv/sdk/src/transaction/fee-models/index.ts +0 -2
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/BinaryFetchClient.ts +0 -141
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/DefaultHttpClient.ts +0 -33
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/FetchHttpClient.ts +0 -57
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/HttpClient.ts +0 -51
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/NodejsHttpClient.ts +0 -67
- package/mobile/node_modules/@bsv/sdk/src/transaction/http/index.ts +0 -11
- package/mobile/node_modules/@bsv/sdk/src/transaction/index.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/src/wallet/CachedKeyDeriver.ts +0 -287
- package/mobile/node_modules/@bsv/sdk/src/wallet/KeyDeriver.ts +0 -342
- package/mobile/node_modules/@bsv/sdk/src/wallet/ProtoWallet.ts +0 -300
- package/mobile/node_modules/@bsv/sdk/src/wallet/WERR_INSUFFICIENT_FUNDS.ts +0 -25
- package/mobile/node_modules/@bsv/sdk/src/wallet/WERR_INVALID_PARAMETER.ts +0 -20
- package/mobile/node_modules/@bsv/sdk/src/wallet/WERR_REVIEW_ACTIONS.ts +0 -30
- package/mobile/node_modules/@bsv/sdk/src/wallet/Wallet.interfaces.ts +0 -1308
- package/mobile/node_modules/@bsv/sdk/src/wallet/WalletClient.ts +0 -504
- package/mobile/node_modules/@bsv/sdk/src/wallet/WalletError.ts +0 -81
- package/mobile/node_modules/@bsv/sdk/src/wallet/WalletLoggerInterface.ts +0 -85
- package/mobile/node_modules/@bsv/sdk/src/wallet/__tests/CachedKeyDeriver.test.ts +0 -381
- package/mobile/node_modules/@bsv/sdk/src/wallet/__tests/KeyDeriver.test.ts +0 -221
- package/mobile/node_modules/@bsv/sdk/src/wallet/__tests/ProtoWallet.test.ts +0 -592
- package/mobile/node_modules/@bsv/sdk/src/wallet/__tests/WalletClient.test.ts +0 -31
- package/mobile/node_modules/@bsv/sdk/src/wallet/index.ts +0 -14
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/HTTPWalletJSON.ts +0 -364
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/HTTPWalletWire.ts +0 -51
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/ReactNativeWebView.ts +0 -560
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/WalletWire.ts +0 -6
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/WalletWireCalls.ts +0 -34
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/WalletWireProcessor.ts +0 -2206
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/WalletWireTransceiver.ts +0 -2032
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/XDM.ts +0 -547
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/__tests/WalletWire.integration.test.ts +0 -2353
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/__tests/XDM.test.ts +0 -660
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/__tests/toOriginHeader.test.ts +0 -34
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/index.ts +0 -9
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/utils/toOriginHeader.ts +0 -15
- package/mobile/node_modules/@bsv/sdk/src/wallet/substrates/window.CWI.ts +0 -593
- package/mobile/node_modules/@bsv/sdk/src/wallet/validationHelpers.ts +0 -1215
- package/mobile/out/src/CWIStyleWalletManager.d.ts +0 -439
- package/mobile/out/src/CWIStyleWalletManager.d.ts.map +0 -1
- package/mobile/out/src/CWIStyleWalletManager.js +0 -1317
- package/mobile/out/src/CWIStyleWalletManager.js.map +0 -1
- package/mobile/out/src/SetupClient.d.ts +0 -130
- package/mobile/out/src/SetupClient.d.ts.map +0 -1
- package/mobile/out/src/SetupClient.js +0 -226
- package/mobile/out/src/SetupClient.js.map +0 -1
- package/mobile/out/src/SetupWallet.d.ts +0 -103
- package/mobile/out/src/SetupWallet.d.ts.map +0 -1
- package/mobile/out/src/SetupWallet.js +0 -3
- package/mobile/out/src/SetupWallet.js.map +0 -1
- package/mobile/out/src/SimpleWalletManager.d.ts +0 -169
- package/mobile/out/src/SimpleWalletManager.d.ts.map +0 -1
- package/mobile/out/src/SimpleWalletManager.js +0 -315
- package/mobile/out/src/SimpleWalletManager.js.map +0 -1
- package/mobile/out/src/Wallet.d.ts +0 -206
- package/mobile/out/src/Wallet.d.ts.map +0 -1
- package/mobile/out/src/Wallet.js +0 -797
- package/mobile/out/src/Wallet.js.map +0 -1
- package/mobile/out/src/WalletAuthenticationManager.d.ts +0 -33
- package/mobile/out/src/WalletAuthenticationManager.d.ts.map +0 -1
- package/mobile/out/src/WalletAuthenticationManager.js +0 -113
- package/mobile/out/src/WalletAuthenticationManager.js.map +0 -1
- package/mobile/out/src/WalletLogger.d.ts +0 -65
- package/mobile/out/src/WalletLogger.d.ts.map +0 -1
- package/mobile/out/src/WalletLogger.js +0 -167
- package/mobile/out/src/WalletLogger.js.map +0 -1
- package/mobile/out/src/WalletPermissionsManager.d.ts +0 -760
- package/mobile/out/src/WalletPermissionsManager.d.ts.map +0 -1
- package/mobile/out/src/WalletPermissionsManager.js +0 -2679
- package/mobile/out/src/WalletPermissionsManager.js.map +0 -1
- package/mobile/out/src/WalletSettingsManager.d.ts +0 -53
- package/mobile/out/src/WalletSettingsManager.d.ts.map +0 -1
- package/mobile/out/src/WalletSettingsManager.js +0 -83
- package/mobile/out/src/WalletSettingsManager.js.map +0 -1
- package/mobile/out/src/index.client.d.ts +0 -23
- package/mobile/out/src/index.client.d.ts.map +0 -1
- package/mobile/out/src/index.client.js +0 -62
- package/mobile/out/src/index.client.js.map +0 -1
- package/mobile/out/src/index.mobile.d.ts +0 -20
- package/mobile/out/src/index.mobile.d.ts.map +0 -1
- package/mobile/out/src/index.mobile.js +0 -59
- package/mobile/out/src/index.mobile.js.map +0 -1
- package/mobile/out/src/monitor/Monitor.d.ts +0 -148
- package/mobile/out/src/monitor/Monitor.d.ts.map +0 -1
- package/mobile/out/src/monitor/Monitor.js +0 -317
- package/mobile/out/src/monitor/Monitor.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts +0 -53
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js +0 -213
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts +0 -33
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js +0 -71
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts +0 -14
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskClock.js +0 -28
- package/mobile/out/src/monitor/tasks/TaskClock.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts +0 -20
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js +0 -52
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskMonitorCallHistory.d.ts +0 -12
- package/mobile/out/src/monitor/tasks/TaskMonitorCallHistory.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskMonitorCallHistory.js +0 -24
- package/mobile/out/src/monitor/tasks/TaskMonitorCallHistory.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts +0 -50
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js +0 -84
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts +0 -45
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskPurge.js +0 -34
- package/mobile/out/src/monitor/tasks/TaskPurge.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskReorg.d.ts +0 -43
- package/mobile/out/src/monitor/tasks/TaskReorg.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskReorg.js +0 -82
- package/mobile/out/src/monitor/tasks/TaskReorg.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts +0 -26
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js +0 -43
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts +0 -35
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js +0 -117
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +0 -12
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js +0 -22
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts +0 -41
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/TaskUnFail.js +0 -145
- package/mobile/out/src/monitor/tasks/TaskUnFail.js.map +0 -1
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts +0 -40
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +0 -1
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js +0 -37
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js.map +0 -1
- package/mobile/out/src/sdk/CertOpsWallet.d.ts +0 -7
- package/mobile/out/src/sdk/CertOpsWallet.d.ts.map +0 -1
- package/mobile/out/src/sdk/CertOpsWallet.js +0 -3
- package/mobile/out/src/sdk/CertOpsWallet.js.map +0 -1
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts +0 -125
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts.map +0 -1
- package/mobile/out/src/sdk/PrivilegedKeyManager.js +0 -293
- package/mobile/out/src/sdk/PrivilegedKeyManager.js.map +0 -1
- package/mobile/out/src/sdk/WERR_errors.d.ts +0 -136
- package/mobile/out/src/sdk/WERR_errors.d.ts.map +0 -1
- package/mobile/out/src/sdk/WERR_errors.js +0 -218
- package/mobile/out/src/sdk/WERR_errors.js.map +0 -1
- package/mobile/out/src/sdk/WalletError.d.ts +0 -63
- package/mobile/out/src/sdk/WalletError.d.ts.map +0 -1
- package/mobile/out/src/sdk/WalletError.js +0 -169
- package/mobile/out/src/sdk/WalletError.js.map +0 -1
- package/mobile/out/src/sdk/WalletErrorFromJson.d.ts +0 -12
- package/mobile/out/src/sdk/WalletErrorFromJson.d.ts.map +0 -1
- package/mobile/out/src/sdk/WalletErrorFromJson.js +0 -69
- package/mobile/out/src/sdk/WalletErrorFromJson.js.map +0 -1
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +0 -618
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +0 -1
- package/mobile/out/src/sdk/WalletServices.interfaces.js +0 -3
- package/mobile/out/src/sdk/WalletServices.interfaces.js.map +0 -1
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts +0 -10
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts.map +0 -1
- package/mobile/out/src/sdk/WalletSigner.interfaces.js +0 -3
- package/mobile/out/src/sdk/WalletSigner.interfaces.js.map +0 -1
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +0 -522
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +0 -1
- package/mobile/out/src/sdk/WalletStorage.interfaces.js +0 -3
- package/mobile/out/src/sdk/WalletStorage.interfaces.js.map +0 -1
- package/mobile/out/src/sdk/index.d.ts +0 -11
- package/mobile/out/src/sdk/index.d.ts.map +0 -1
- package/mobile/out/src/sdk/index.js +0 -29
- package/mobile/out/src/sdk/index.js.map +0 -1
- package/mobile/out/src/sdk/types.d.ts +0 -169
- package/mobile/out/src/sdk/types.d.ts.map +0 -1
- package/mobile/out/src/sdk/types.js +0 -90
- package/mobile/out/src/sdk/types.js.map +0 -1
- package/mobile/out/src/services/ServiceCollection.d.ts +0 -79
- package/mobile/out/src/services/ServiceCollection.d.ts.map +0 -1
- package/mobile/out/src/services/ServiceCollection.js +0 -192
- package/mobile/out/src/services/ServiceCollection.js.map +0 -1
- package/mobile/out/src/services/Services.d.ts +0 -71
- package/mobile/out/src/services/Services.d.ts.map +0 -1
- package/mobile/out/src/services/Services.js +0 -532
- package/mobile/out/src/services/Services.js.map +0 -1
- package/mobile/out/src/services/chaintracker/BHServiceClient.d.ts +0 -39
- package/mobile/out/src/services/chaintracker/BHServiceClient.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/BHServiceClient.js +0 -174
- package/mobile/out/src/services/chaintracker/BHServiceClient.js.map +0 -1
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +0 -15
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js +0 -53
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts +0 -55
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js +0 -38
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.d.ts +0 -70
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.d.ts +0 -81
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.d.ts +0 -54
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.d.ts +0 -163
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts +0 -18
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.d.ts +0 -55
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.d.ts +0 -338
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.d.ts +0 -19
- package/mobile/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.js +0 -3
- package/mobile/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts +0 -101
- package/mobile/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Chaintracks.js +0 -550
- package/mobile/out/src/services/chaintracker/chaintracks/Chaintracks.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +0 -38
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +0 -139
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.d.ts +0 -60
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.js +0 -119
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.d.ts +0 -76
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.js +0 -114
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.d.ts +0 -13
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.js +0 -20
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.d.ts +0 -62
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js +0 -59
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.d.ts +0 -62
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.js +0 -42
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.d.ts +0 -51
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.js +0 -55
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts +0 -171
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js +0 -501
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts +0 -89
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js +0 -137
- package/mobile/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.d.ts +0 -23
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.js +0 -68
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts +0 -68
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js +0 -290
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts +0 -92
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js +0 -465
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts +0 -37
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js +0 -260
- package/mobile/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts +0 -5
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js +0 -68
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts +0 -5
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js +0 -68
- package/mobile/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts +0 -13
- package/mobile/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js +0 -27
- package/mobile/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts +0 -13
- package/mobile/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js +0 -27
- package/mobile/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/index.client.d.ts +0 -4
- package/mobile/out/src/services/chaintracker/chaintracks/index.client.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/index.client.js +0 -20
- package/mobile/out/src/services/chaintracker/chaintracks/index.client.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/index.mobile.d.ts +0 -30
- package/mobile/out/src/services/chaintracker/chaintracks/index.mobile.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/index.mobile.js +0 -68
- package/mobile/out/src/services/chaintracker/chaintracks/index.mobile.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts +0 -155
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js +0 -848
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.d.ts +0 -78
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js +0 -261
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.d.ts +0 -129
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.js +0 -145
- package/mobile/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.d.ts +0 -14
- package/mobile/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.js +0 -67
- package/mobile/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/HeightRange.d.ts +0 -90
- package/mobile/out/src/services/chaintracker/chaintracks/util/HeightRange.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/HeightRange.js +0 -140
- package/mobile/out/src/services/chaintracker/chaintracks/util/HeightRange.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.d.ts +0 -14
- package/mobile/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.js +0 -88
- package/mobile/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts +0 -159
- package/mobile/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js +0 -520
- package/mobile/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/dirtyHashes.d.ts +0 -20
- package/mobile/out/src/services/chaintracker/chaintracks/util/dirtyHashes.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js +0 -31
- package/mobile/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.d.ts +0 -37
- package/mobile/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.js +0 -432
- package/mobile/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.js.map +0 -1
- package/mobile/out/src/services/chaintracker/index.client.d.ts +0 -4
- package/mobile/out/src/services/chaintracker/index.client.d.ts.map +0 -1
- package/mobile/out/src/services/chaintracker/index.client.js +0 -20
- package/mobile/out/src/services/chaintracker/index.client.js.map +0 -1
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts +0 -7
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts.map +0 -1
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js +0 -65
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js.map +0 -1
- package/mobile/out/src/services/providers/ARC.d.ts +0 -92
- package/mobile/out/src/services/providers/ARC.d.ts.map +0 -1
- package/mobile/out/src/services/providers/ARC.js +0 -270
- package/mobile/out/src/services/providers/ARC.js.map +0 -1
- package/mobile/out/src/services/providers/Bitails.d.ts +0 -50
- package/mobile/out/src/services/providers/Bitails.d.ts.map +0 -1
- package/mobile/out/src/services/providers/Bitails.js +0 -224
- package/mobile/out/src/services/providers/Bitails.js.map +0 -1
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts +0 -21
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts.map +0 -1
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js +0 -67
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js.map +0 -1
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts +0 -130
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +0 -1
- package/mobile/out/src/services/providers/WhatsOnChain.js +0 -679
- package/mobile/out/src/services/providers/WhatsOnChain.js.map +0 -1
- package/mobile/out/src/services/providers/exchangeRates.d.ts +0 -12
- package/mobile/out/src/services/providers/exchangeRates.d.ts.map +0 -1
- package/mobile/out/src/services/providers/exchangeRates.js +0 -237
- package/mobile/out/src/services/providers/exchangeRates.js.map +0 -1
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts +0 -4
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +0 -1
- package/mobile/out/src/services/providers/getBeefForTxid.js +0 -286
- package/mobile/out/src/services/providers/getBeefForTxid.js.map +0 -1
- package/mobile/out/src/signer/WalletSigner.d.ts +0 -11
- package/mobile/out/src/signer/WalletSigner.d.ts.map +0 -1
- package/mobile/out/src/signer/WalletSigner.js +0 -13
- package/mobile/out/src/signer/WalletSigner.js.map +0 -1
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +0 -5
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js +0 -45
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +0 -1
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +0 -15
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/buildSignableTransaction.js +0 -142
- package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +0 -1
- package/mobile/out/src/signer/methods/completeSignedTransaction.d.ts +0 -10
- package/mobile/out/src/signer/methods/completeSignedTransaction.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/completeSignedTransaction.js +0 -106
- package/mobile/out/src/signer/methods/completeSignedTransaction.js.map +0 -1
- package/mobile/out/src/signer/methods/createAction.d.ts +0 -14
- package/mobile/out/src/signer/methods/createAction.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/createAction.js +0 -117
- package/mobile/out/src/signer/methods/createAction.js.map +0 -1
- package/mobile/out/src/signer/methods/internalizeAction.d.ts +0 -32
- package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/internalizeAction.js +0 -93
- package/mobile/out/src/signer/methods/internalizeAction.js.map +0 -1
- package/mobile/out/src/signer/methods/proveCertificate.d.ts +0 -5
- package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/proveCertificate.js +0 -29
- package/mobile/out/src/signer/methods/proveCertificate.js.map +0 -1
- package/mobile/out/src/signer/methods/signAction.d.ts +0 -11
- package/mobile/out/src/signer/methods/signAction.d.ts.map +0 -1
- package/mobile/out/src/signer/methods/signAction.js +0 -41
- package/mobile/out/src/signer/methods/signAction.js.map +0 -1
- package/mobile/out/src/storage/StorageIdb.d.ts +0 -210
- package/mobile/out/src/storage/StorageIdb.d.ts.map +0 -1
- package/mobile/out/src/storage/StorageIdb.js +0 -2297
- package/mobile/out/src/storage/StorageIdb.js.map +0 -1
- package/mobile/out/src/storage/StorageProvider.d.ts +0 -222
- package/mobile/out/src/storage/StorageProvider.d.ts.map +0 -1
- package/mobile/out/src/storage/StorageProvider.js +0 -567
- package/mobile/out/src/storage/StorageProvider.js.map +0 -1
- package/mobile/out/src/storage/StorageReader.d.ts +0 -77
- package/mobile/out/src/storage/StorageReader.d.ts.map +0 -1
- package/mobile/out/src/storage/StorageReader.js +0 -163
- package/mobile/out/src/storage/StorageReader.js.map +0 -1
- package/mobile/out/src/storage/StorageReaderWriter.d.ts +0 -102
- package/mobile/out/src/storage/StorageReaderWriter.d.ts.map +0 -1
- package/mobile/out/src/storage/StorageReaderWriter.js +0 -338
- package/mobile/out/src/storage/StorageReaderWriter.js.map +0 -1
- package/mobile/out/src/storage/StorageSyncReader.d.ts +0 -18
- package/mobile/out/src/storage/StorageSyncReader.d.ts.map +0 -1
- package/mobile/out/src/storage/StorageSyncReader.js +0 -71
- package/mobile/out/src/storage/StorageSyncReader.js.map +0 -1
- package/mobile/out/src/storage/WalletStorageManager.d.ts +0 -221
- package/mobile/out/src/storage/WalletStorageManager.d.ts.map +0 -1
- package/mobile/out/src/storage/WalletStorageManager.js +0 -819
- package/mobile/out/src/storage/WalletStorageManager.js.map +0 -1
- package/mobile/out/src/storage/index.client.d.ts +0 -8
- package/mobile/out/src/storage/index.client.d.ts.map +0 -1
- package/mobile/out/src/storage/index.client.js +0 -24
- package/mobile/out/src/storage/index.client.js.map +0 -1
- package/mobile/out/src/storage/index.mobile.d.ts +0 -7
- package/mobile/out/src/storage/index.mobile.d.ts.map +0 -1
- package/mobile/out/src/storage/index.mobile.js +0 -23
- package/mobile/out/src/storage/index.mobile.js.map +0 -1
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +0 -18
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js +0 -40
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +0 -1
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +0 -26
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js +0 -75
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +0 -1
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +0 -41
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +0 -324
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +0 -1
- package/mobile/out/src/storage/methods/createAction.d.ts +0 -13
- package/mobile/out/src/storage/methods/createAction.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/createAction.js +0 -732
- package/mobile/out/src/storage/methods/createAction.js.map +0 -1
- package/mobile/out/src/storage/methods/generateChange.d.ts +0 -96
- package/mobile/out/src/storage/methods/generateChange.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/generateChange.js +0 -405
- package/mobile/out/src/storage/methods/generateChange.js.map +0 -1
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts +0 -23
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/getBeefForTransaction.js +0 -109
- package/mobile/out/src/storage/methods/getBeefForTransaction.js.map +0 -1
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts +0 -10
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/getSyncChunk.js +0 -272
- package/mobile/out/src/storage/methods/getSyncChunk.js.map +0 -1
- package/mobile/out/src/storage/methods/internalizeAction.d.ts +0 -31
- package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/internalizeAction.js +0 -462
- package/mobile/out/src/storage/methods/internalizeAction.js.map +0 -1
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts +0 -5
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/listActionsIdb.js +0 -155
- package/mobile/out/src/storage/methods/listActionsIdb.js.map +0 -1
- package/mobile/out/src/storage/methods/listCertificates.d.ts +0 -5
- package/mobile/out/src/storage/methods/listCertificates.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/listCertificates.js +0 -68
- package/mobile/out/src/storage/methods/listCertificates.js.map +0 -1
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +0 -5
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/listOutputsIdb.js +0 -185
- package/mobile/out/src/storage/methods/listOutputsIdb.js.map +0 -1
- package/mobile/out/src/storage/methods/offsetKey.d.ts +0 -24
- package/mobile/out/src/storage/methods/offsetKey.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/offsetKey.js +0 -67
- package/mobile/out/src/storage/methods/offsetKey.js.map +0 -1
- package/mobile/out/src/storage/methods/processAction.d.ts +0 -54
- package/mobile/out/src/storage/methods/processAction.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/processAction.js +0 -267
- package/mobile/out/src/storage/methods/processAction.js.map +0 -1
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts +0 -4
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/purgeDataIdb.js +0 -9
- package/mobile/out/src/storage/methods/purgeDataIdb.js.map +0 -1
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts +0 -20
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/reviewStatusIdb.js +0 -35
- package/mobile/out/src/storage/methods/reviewStatusIdb.js.map +0 -1
- package/mobile/out/src/storage/methods/utils.d.ts +0 -25
- package/mobile/out/src/storage/methods/utils.d.ts.map +0 -1
- package/mobile/out/src/storage/methods/utils.js +0 -53
- package/mobile/out/src/storage/methods/utils.js.map +0 -1
- package/mobile/out/src/storage/remoting/StorageClient.d.ts +0 -292
- package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +0 -1
- package/mobile/out/src/storage/remoting/StorageClient.js +0 -497
- package/mobile/out/src/storage/remoting/StorageClient.js.map +0 -1
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts +0 -292
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts.map +0 -1
- package/mobile/out/src/storage/remoting/StorageMobile.js +0 -477
- package/mobile/out/src/storage/remoting/StorageMobile.js.map +0 -1
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts +0 -133
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/StorageIdbSchema.js +0 -3
- package/mobile/out/src/storage/schema/StorageIdbSchema.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts +0 -106
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityBase.js +0 -100
- package/mobile/out/src/storage/schema/entities/EntityBase.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts +0 -44
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js +0 -162
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts +0 -33
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js +0 -112
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts +0 -38
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityCommission.js +0 -127
- package/mobile/out/src/storage/schema/entities/EntityCommission.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts +0 -68
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutput.js +0 -264
- package/mobile/out/src/storage/schema/entities/EntityOutput.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts +0 -36
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js +0 -133
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts +0 -32
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js +0 -104
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +0 -29
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js +0 -98
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts +0 -87
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js +0 -278
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +0 -139
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js +0 -524
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts +0 -69
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js +0 -334
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts +0 -71
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js +0 -255
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts +0 -32
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js +0 -104
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +0 -29
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js +0 -98
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts +0 -30
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/EntityUser.js +0 -99
- package/mobile/out/src/storage/schema/entities/EntityUser.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts +0 -34
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/MergeEntity.js +0 -63
- package/mobile/out/src/storage/schema/entities/MergeEntity.js.map +0 -1
- package/mobile/out/src/storage/schema/entities/index.d.ts +0 -17
- package/mobile/out/src/storage/schema/entities/index.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/entities/index.js +0 -33
- package/mobile/out/src/storage/schema/entities/index.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts +0 -20
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCertificate.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableCertificate.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts +0 -12
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts +0 -13
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableCommission.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableCommission.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts +0 -9
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts +0 -36
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutput.js +0 -31
- package/mobile/out/src/storage/schema/tables/TableOutput.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts +0 -12
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts +0 -10
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts +0 -9
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts +0 -14
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts +0 -64
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts +0 -17
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableSettings.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableSettings.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts +0 -18
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableSyncState.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableSyncState.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts +0 -37
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTransaction.js +0 -21
- package/mobile/out/src/storage/schema/tables/TableTransaction.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts +0 -10
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts +0 -9
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts +0 -16
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/TableUser.js +0 -3
- package/mobile/out/src/storage/schema/tables/TableUser.js.map +0 -1
- package/mobile/out/src/storage/schema/tables/index.d.ts +0 -17
- package/mobile/out/src/storage/schema/tables/index.d.ts.map +0 -1
- package/mobile/out/src/storage/schema/tables/index.js +0 -33
- package/mobile/out/src/storage/schema/tables/index.js.map +0 -1
- package/mobile/out/src/utility/ReaderUint8Array.d.ts +0 -28
- package/mobile/out/src/utility/ReaderUint8Array.d.ts.map +0 -1
- package/mobile/out/src/utility/ReaderUint8Array.js +0 -166
- package/mobile/out/src/utility/ReaderUint8Array.js.map +0 -1
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts +0 -25
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts.map +0 -1
- package/mobile/out/src/utility/ScriptTemplateBRC29.js +0 -48
- package/mobile/out/src/utility/ScriptTemplateBRC29.js.map +0 -1
- package/mobile/out/src/utility/aggregateResults.d.ts +0 -8
- package/mobile/out/src/utility/aggregateResults.d.ts.map +0 -1
- package/mobile/out/src/utility/aggregateResults.js +0 -59
- package/mobile/out/src/utility/aggregateResults.js.map +0 -1
- package/mobile/out/src/utility/identityUtils.d.ts +0 -31
- package/mobile/out/src/utility/identityUtils.d.ts.map +0 -1
- package/mobile/out/src/utility/identityUtils.js +0 -116
- package/mobile/out/src/utility/identityUtils.js.map +0 -1
- package/mobile/out/src/utility/index.client.d.ts +0 -7
- package/mobile/out/src/utility/index.client.d.ts.map +0 -1
- package/mobile/out/src/utility/index.client.js +0 -23
- package/mobile/out/src/utility/index.client.js.map +0 -1
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts +0 -14
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts.map +0 -1
- package/mobile/out/src/utility/parseTxScriptOffsets.js +0 -26
- package/mobile/out/src/utility/parseTxScriptOffsets.js.map +0 -1
- package/mobile/out/src/utility/stampLog.d.ts +0 -18
- package/mobile/out/src/utility/stampLog.d.ts.map +0 -1
- package/mobile/out/src/utility/stampLog.js +0 -72
- package/mobile/out/src/utility/stampLog.js.map +0 -1
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts +0 -8
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts.map +0 -1
- package/mobile/out/src/utility/tscProofToMerklePath.js +0 -41
- package/mobile/out/src/utility/tscProofToMerklePath.js.map +0 -1
- package/mobile/out/src/utility/utilityHelpers.d.ts +0 -138
- package/mobile/out/src/utility/utilityHelpers.d.ts.map +0 -1
- package/mobile/out/src/utility/utilityHelpers.js +0 -294
- package/mobile/out/src/utility/utilityHelpers.js.map +0 -1
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts +0 -26
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts.map +0 -1
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js +0 -64
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js.map +0 -1
- package/mobile/out/src/wab-client/WABClient.d.ts +0 -49
- package/mobile/out/src/wab-client/WABClient.d.ts.map +0 -1
- package/mobile/out/src/wab-client/WABClient.js +0 -80
- package/mobile/out/src/wab-client/WABClient.js.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +0 -34
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +0 -16
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.d.ts +0 -29
- package/mobile/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.d.ts.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.js +0 -70
- package/mobile/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.js.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +0 -7
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +0 -36
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +0 -28
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +0 -1
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +0 -69
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +0 -1
- package/mobile/out/tsconfig.mobile.tsbuildinfo +0 -1
- package/mobile/package-lock.json +0 -22
- package/mobile/package.json +0 -25
|
@@ -1,1317 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CWIStyleWalletManager = exports.OverlayUMPTokenInteractor = exports.DEFAULT_PROFILE_ID = exports.PBKDF2_NUM_ROUNDS = void 0;
|
|
4
|
-
const sdk_1 = require("@bsv/sdk");
|
|
5
|
-
const PrivilegedKeyManager_1 = require("./sdk/PrivilegedKeyManager");
|
|
6
|
-
/**
|
|
7
|
-
* Number of rounds used in PBKDF2 for deriving password keys.
|
|
8
|
-
*/
|
|
9
|
-
exports.PBKDF2_NUM_ROUNDS = 7777;
|
|
10
|
-
/**
|
|
11
|
-
* PBKDF-2 that prefers the browser / Node 20+ WebCrypto implementation and
|
|
12
|
-
* silently falls back to the existing JS code.
|
|
13
|
-
*
|
|
14
|
-
* @param passwordBytes Raw password bytes.
|
|
15
|
-
* @param salt Salt bytes.
|
|
16
|
-
* @param iterations Number of rounds.
|
|
17
|
-
* @param keyLen Desired key length in bytes.
|
|
18
|
-
* @param hash Digest algorithm (default "sha512").
|
|
19
|
-
* @returns Derived key bytes.
|
|
20
|
-
*/
|
|
21
|
-
async function pbkdf2NativeOrJs(passwordBytes, salt, iterations, keyLen, hash = 'sha512') {
|
|
22
|
-
var _a;
|
|
23
|
-
// ----- fast-path: WebCrypto (both browser & recent Node expose globalThis.crypto.subtle)
|
|
24
|
-
const subtle = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a === void 0 ? void 0 : _a.subtle;
|
|
25
|
-
if (subtle) {
|
|
26
|
-
try {
|
|
27
|
-
const baseKey = await subtle.importKey('raw', new Uint8Array(passwordBytes), { name: 'PBKDF2' },
|
|
28
|
-
/*extractable*/ false, ['deriveBits']);
|
|
29
|
-
const bits = await subtle.deriveBits({
|
|
30
|
-
name: 'PBKDF2',
|
|
31
|
-
salt: new Uint8Array(salt),
|
|
32
|
-
iterations,
|
|
33
|
-
hash: hash.toUpperCase()
|
|
34
|
-
}, baseKey, keyLen * 8);
|
|
35
|
-
return Array.from(new Uint8Array(bits));
|
|
36
|
-
}
|
|
37
|
-
catch (err) {
|
|
38
|
-
//console.warn('[pbkdf2] WebCrypto path failed → falling back to JS implementation', err)
|
|
39
|
-
/* fall through */
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// ----- slow-path: old JavaScript implementation
|
|
43
|
-
return sdk_1.Hash.pbkdf2(passwordBytes, salt, iterations, keyLen, hash);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Unique Identifier for the default profile (16 zero bytes).
|
|
47
|
-
*/
|
|
48
|
-
exports.DEFAULT_PROFILE_ID = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
49
|
-
/**
|
|
50
|
-
* @class OverlayUMPTokenInteractor
|
|
51
|
-
*
|
|
52
|
-
* A concrete implementation of the UMPTokenInteractor interface that interacts
|
|
53
|
-
* with Overlay Services and the UMP (User Management Protocol) topic. This class
|
|
54
|
-
* is responsible for:
|
|
55
|
-
*
|
|
56
|
-
* 1) Locating UMP tokens via overlay lookups (ls_users).
|
|
57
|
-
* 2) Creating and publishing new or updated UMP token outputs on-chain under
|
|
58
|
-
* the "tm_users" topic.
|
|
59
|
-
* 3) Consuming (spending) an old token if provided.
|
|
60
|
-
*/
|
|
61
|
-
class OverlayUMPTokenInteractor {
|
|
62
|
-
/**
|
|
63
|
-
* Construct a new OverlayUMPTokenInteractor.
|
|
64
|
-
*
|
|
65
|
-
* @param resolver A LookupResolver instance for performing overlay queries (ls_users).
|
|
66
|
-
* @param broadcaster A SHIPBroadcaster instance for sharing new or updated tokens across the `tm_users` overlay.
|
|
67
|
-
*/
|
|
68
|
-
constructor(resolver = new sdk_1.LookupResolver(), broadcaster = new sdk_1.SHIPBroadcaster(['tm_users'])) {
|
|
69
|
-
this.resolver = resolver;
|
|
70
|
-
this.broadcaster = broadcaster;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Finds a UMP token on-chain by the given presentation key hash, if it exists.
|
|
74
|
-
* Uses the ls_users overlay service to perform the lookup.
|
|
75
|
-
*
|
|
76
|
-
* @param hash The 32-byte SHA-256 hash of the presentation key.
|
|
77
|
-
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
78
|
-
*/
|
|
79
|
-
async findByPresentationKeyHash(hash) {
|
|
80
|
-
// Query ls_users for the given presentationHash
|
|
81
|
-
const question = {
|
|
82
|
-
service: 'ls_users',
|
|
83
|
-
query: { presentationHash: sdk_1.Utils.toHex(hash) }
|
|
84
|
-
};
|
|
85
|
-
const answer = await this.resolver.query(question);
|
|
86
|
-
return this.parseLookupAnswer(answer);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Finds a UMP token on-chain by the given recovery key hash, if it exists.
|
|
90
|
-
* Uses the ls_users overlay service to perform the lookup.
|
|
91
|
-
*
|
|
92
|
-
* @param hash The 32-byte SHA-256 hash of the recovery key.
|
|
93
|
-
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
94
|
-
*/
|
|
95
|
-
async findByRecoveryKeyHash(hash) {
|
|
96
|
-
const question = {
|
|
97
|
-
service: 'ls_users',
|
|
98
|
-
query: { recoveryHash: sdk_1.Utils.toHex(hash) }
|
|
99
|
-
};
|
|
100
|
-
const answer = await this.resolver.query(question);
|
|
101
|
-
return this.parseLookupAnswer(answer);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Creates or updates (replaces) a UMP token on-chain. If `oldTokenToConsume` is provided,
|
|
105
|
-
* it is spent in the same transaction that creates the new token output. The new token is
|
|
106
|
-
* then broadcast and published under the `tm_users` topic using a SHIP broadcast, ensuring
|
|
107
|
-
* overlay participants see the updated token.
|
|
108
|
-
*
|
|
109
|
-
* @param wallet The wallet used to build and sign the transaction (MUST be operating under the DEFAULT profile).
|
|
110
|
-
* @param adminOriginator The domain/FQDN of the administrative originator (wallet operator).
|
|
111
|
-
* @param token The new UMPToken to create on-chain.
|
|
112
|
-
* @param oldTokenToConsume Optionally, an existing token to consume/spend in the same transaction.
|
|
113
|
-
* @returns The outpoint of the newly created UMP token (e.g. "abcd1234...ef.0").
|
|
114
|
-
*/
|
|
115
|
-
async buildAndSend(wallet, // This wallet MUST be the one built for the default profile
|
|
116
|
-
adminOriginator, token, oldTokenToConsume) {
|
|
117
|
-
// 1) Construct the data fields for the new UMP token.
|
|
118
|
-
const fields = [];
|
|
119
|
-
fields[0] = token.passwordSalt;
|
|
120
|
-
fields[1] = token.passwordPresentationPrimary;
|
|
121
|
-
fields[2] = token.passwordRecoveryPrimary;
|
|
122
|
-
fields[3] = token.presentationRecoveryPrimary;
|
|
123
|
-
fields[4] = token.passwordPrimaryPrivileged;
|
|
124
|
-
fields[5] = token.presentationRecoveryPrivileged;
|
|
125
|
-
fields[6] = token.presentationHash;
|
|
126
|
-
fields[7] = token.recoveryHash;
|
|
127
|
-
fields[8] = token.presentationKeyEncrypted;
|
|
128
|
-
fields[9] = token.passwordKeyEncrypted;
|
|
129
|
-
fields[10] = token.recoveryKeyEncrypted;
|
|
130
|
-
// Optional field (11) for encrypted profiles
|
|
131
|
-
if (token.profilesEncrypted) {
|
|
132
|
-
fields[11] = token.profilesEncrypted;
|
|
133
|
-
}
|
|
134
|
-
// 2) Create a PushDrop script referencing these fields, locked with the admin key.
|
|
135
|
-
const script = await new sdk_1.PushDrop(wallet, adminOriginator).lock(fields, [2, 'admin user management token'], // protocolID
|
|
136
|
-
'1', // keyID
|
|
137
|
-
'self', // counterparty
|
|
138
|
-
/*forSelf=*/ true,
|
|
139
|
-
/*includeSignature=*/ true);
|
|
140
|
-
// 3) Prepare the createAction call. If oldTokenToConsume is provided, gather the outpoint.
|
|
141
|
-
const inputs = [];
|
|
142
|
-
let inputToken;
|
|
143
|
-
if (oldTokenToConsume === null || oldTokenToConsume === void 0 ? void 0 : oldTokenToConsume.currentOutpoint) {
|
|
144
|
-
inputToken = await this.findByOutpoint(oldTokenToConsume.currentOutpoint);
|
|
145
|
-
// If there is no token on the overlay, we can't consume it. Just start over with a new token.
|
|
146
|
-
if (!inputToken) {
|
|
147
|
-
oldTokenToConsume = undefined;
|
|
148
|
-
// Otherwise, add the input
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
inputs.push({
|
|
152
|
-
outpoint: oldTokenToConsume.currentOutpoint,
|
|
153
|
-
unlockingScriptLength: 73, // typical signature length
|
|
154
|
-
inputDescription: 'Consume old UMP token'
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
const outputs = [
|
|
159
|
-
{
|
|
160
|
-
lockingScript: script.toHex(),
|
|
161
|
-
satoshis: 1,
|
|
162
|
-
outputDescription: 'New UMP token output'
|
|
163
|
-
}
|
|
164
|
-
];
|
|
165
|
-
// 4) Build the partial transaction via createAction.
|
|
166
|
-
let createResult;
|
|
167
|
-
try {
|
|
168
|
-
createResult = await wallet.createAction({
|
|
169
|
-
description: oldTokenToConsume ? 'Renew UMP token (consume old, create new)' : 'Create new UMP token',
|
|
170
|
-
inputs,
|
|
171
|
-
outputs,
|
|
172
|
-
inputBEEF: inputToken === null || inputToken === void 0 ? void 0 : inputToken.beef,
|
|
173
|
-
options: {
|
|
174
|
-
randomizeOutputs: false,
|
|
175
|
-
acceptDelayedBroadcast: false
|
|
176
|
-
}
|
|
177
|
-
}, adminOriginator);
|
|
178
|
-
}
|
|
179
|
-
catch (e) {
|
|
180
|
-
console.error('Error with UMP token update. Attempting a last-ditch effort to get a new one', e);
|
|
181
|
-
createResult = await wallet.createAction({
|
|
182
|
-
description: 'Recover UMP token',
|
|
183
|
-
outputs,
|
|
184
|
-
options: {
|
|
185
|
-
randomizeOutputs: false,
|
|
186
|
-
acceptDelayedBroadcast: false
|
|
187
|
-
}
|
|
188
|
-
}, adminOriginator);
|
|
189
|
-
}
|
|
190
|
-
// If the transaction is fully processed by the wallet
|
|
191
|
-
if (!createResult.signableTransaction) {
|
|
192
|
-
const finalTxid = createResult.txid || (createResult.tx ? sdk_1.Transaction.fromAtomicBEEF(createResult.tx).id('hex') : undefined);
|
|
193
|
-
if (!finalTxid) {
|
|
194
|
-
throw new Error('No signableTransaction and no final TX found.');
|
|
195
|
-
}
|
|
196
|
-
// Now broadcast to `tm_users` using SHIP
|
|
197
|
-
const broadcastTx = sdk_1.Transaction.fromAtomicBEEF(createResult.tx);
|
|
198
|
-
const result = await this.broadcaster.broadcast(broadcastTx);
|
|
199
|
-
console.log('BROADCAST RESULT', result);
|
|
200
|
-
return `${finalTxid}.0`;
|
|
201
|
-
}
|
|
202
|
-
// 5) If oldTokenToConsume is present, we must sign the input referencing it.
|
|
203
|
-
// (If there's no old token, there's nothing to sign for the input.)
|
|
204
|
-
let finalTxid = '';
|
|
205
|
-
const reference = createResult.signableTransaction.reference;
|
|
206
|
-
const partialTx = sdk_1.Transaction.fromBEEF(createResult.signableTransaction.tx);
|
|
207
|
-
if (oldTokenToConsume === null || oldTokenToConsume === void 0 ? void 0 : oldTokenToConsume.currentOutpoint) {
|
|
208
|
-
// Unlock the old token with a matching PushDrop unlocker
|
|
209
|
-
const unlocker = new sdk_1.PushDrop(wallet, adminOriginator).unlock([2, 'admin user management token'], '1', 'self');
|
|
210
|
-
const unlockingScript = await unlocker.sign(partialTx, 0);
|
|
211
|
-
// Provide it to the wallet
|
|
212
|
-
const signResult = await wallet.signAction({
|
|
213
|
-
reference,
|
|
214
|
-
spends: {
|
|
215
|
-
0: {
|
|
216
|
-
unlockingScript: unlockingScript.toHex()
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}, adminOriginator);
|
|
220
|
-
finalTxid = signResult.txid || (signResult.tx ? sdk_1.Transaction.fromAtomicBEEF(signResult.tx).id('hex') : '');
|
|
221
|
-
if (!finalTxid) {
|
|
222
|
-
throw new Error('Could not finalize transaction for renewed UMP token.');
|
|
223
|
-
}
|
|
224
|
-
// 6) Broadcast to `tm_users`
|
|
225
|
-
const finalAtomicTx = signResult.tx;
|
|
226
|
-
if (!finalAtomicTx) {
|
|
227
|
-
throw new Error('Final transaction data missing after signing renewed UMP token.');
|
|
228
|
-
}
|
|
229
|
-
const broadcastTx = sdk_1.Transaction.fromAtomicBEEF(finalAtomicTx);
|
|
230
|
-
const result = await this.broadcaster.broadcast(broadcastTx);
|
|
231
|
-
console.log('BROADCAST RESULT', result);
|
|
232
|
-
return `${finalTxid}.0`;
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
// Fallback for creating a new token (no input spending)
|
|
236
|
-
const signResult = await wallet.signAction({ reference, spends: {} }, adminOriginator);
|
|
237
|
-
finalTxid = signResult.txid || (signResult.tx ? sdk_1.Transaction.fromAtomicBEEF(signResult.tx).id('hex') : '');
|
|
238
|
-
if (!finalTxid) {
|
|
239
|
-
throw new Error('Failed to finalize new UMP token transaction.');
|
|
240
|
-
}
|
|
241
|
-
const finalAtomicTx = signResult.tx;
|
|
242
|
-
if (!finalAtomicTx) {
|
|
243
|
-
throw new Error('Final transaction data missing after signing new UMP token.');
|
|
244
|
-
}
|
|
245
|
-
const broadcastTx = sdk_1.Transaction.fromAtomicBEEF(finalAtomicTx);
|
|
246
|
-
const result = await this.broadcaster.broadcast(broadcastTx);
|
|
247
|
-
console.log('BROADCAST RESULT', result);
|
|
248
|
-
return `${finalTxid}.0`;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Attempts to parse a LookupAnswer from the UMP lookup service. If successful,
|
|
253
|
-
* extracts the token fields from the resulting transaction and constructs
|
|
254
|
-
* a UMPToken object.
|
|
255
|
-
*
|
|
256
|
-
* @param answer The LookupAnswer returned by a query to ls_users.
|
|
257
|
-
* @returns The parsed UMPToken or `undefined` if none found/decodable.
|
|
258
|
-
*/
|
|
259
|
-
parseLookupAnswer(answer) {
|
|
260
|
-
var _a;
|
|
261
|
-
if (answer.type !== 'output-list') {
|
|
262
|
-
return undefined;
|
|
263
|
-
}
|
|
264
|
-
if (!answer.outputs || answer.outputs.length === 0) {
|
|
265
|
-
return undefined;
|
|
266
|
-
}
|
|
267
|
-
const { beef, outputIndex } = answer.outputs[0];
|
|
268
|
-
try {
|
|
269
|
-
const tx = sdk_1.Transaction.fromBEEF(beef);
|
|
270
|
-
const outpoint = `${tx.id('hex')}.${outputIndex}`;
|
|
271
|
-
const decoded = sdk_1.PushDrop.decode(tx.outputs[outputIndex].lockingScript);
|
|
272
|
-
// Expecting 11 or more fields for UMP
|
|
273
|
-
if (!decoded.fields || decoded.fields.length < 11) {
|
|
274
|
-
console.warn(`Unexpected number of fields in UMP token: ${(_a = decoded.fields) === null || _a === void 0 ? void 0 : _a.length}`);
|
|
275
|
-
return undefined;
|
|
276
|
-
}
|
|
277
|
-
// Build the UMP token from these fields, preserving outpoint
|
|
278
|
-
const t = {
|
|
279
|
-
// Order matches buildAndSend and serialize/deserialize
|
|
280
|
-
passwordSalt: decoded.fields[0],
|
|
281
|
-
passwordPresentationPrimary: decoded.fields[1],
|
|
282
|
-
passwordRecoveryPrimary: decoded.fields[2],
|
|
283
|
-
presentationRecoveryPrimary: decoded.fields[3],
|
|
284
|
-
passwordPrimaryPrivileged: decoded.fields[4],
|
|
285
|
-
presentationRecoveryPrivileged: decoded.fields[5],
|
|
286
|
-
presentationHash: decoded.fields[6],
|
|
287
|
-
recoveryHash: decoded.fields[7],
|
|
288
|
-
presentationKeyEncrypted: decoded.fields[8],
|
|
289
|
-
passwordKeyEncrypted: decoded.fields[9],
|
|
290
|
-
recoveryKeyEncrypted: decoded.fields[10],
|
|
291
|
-
profilesEncrypted: decoded.fields[12] ? decoded.fields[11] : undefined, // If there's a signature in field 12, use field 11
|
|
292
|
-
currentOutpoint: outpoint
|
|
293
|
-
};
|
|
294
|
-
return t;
|
|
295
|
-
}
|
|
296
|
-
catch (e) {
|
|
297
|
-
console.error('Failed to parse or decode UMP token:', e);
|
|
298
|
-
return undefined;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Finds by outpoint for unlocking / spending previous tokens.
|
|
303
|
-
* @param outpoint The outpoint we are searching by
|
|
304
|
-
* @returns The result so that we can use it to unlock the transaction
|
|
305
|
-
*/
|
|
306
|
-
async findByOutpoint(outpoint) {
|
|
307
|
-
const results = await this.resolver.query({
|
|
308
|
-
service: 'ls_users',
|
|
309
|
-
query: {
|
|
310
|
-
outpoint
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
if (results.type !== 'output-list') {
|
|
314
|
-
return undefined;
|
|
315
|
-
}
|
|
316
|
-
if (!results.outputs || !results.outputs.length) {
|
|
317
|
-
return undefined;
|
|
318
|
-
}
|
|
319
|
-
return results.outputs[0];
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
exports.OverlayUMPTokenInteractor = OverlayUMPTokenInteractor;
|
|
323
|
-
/**
|
|
324
|
-
* Manages a "CWI-style" wallet that uses a UMP token and a
|
|
325
|
-
* multi-key authentication scheme (password, presentation key, and recovery key),
|
|
326
|
-
* supporting multiple user profiles under a single account.
|
|
327
|
-
*/
|
|
328
|
-
class CWIStyleWalletManager {
|
|
329
|
-
/**
|
|
330
|
-
* Constructs a new CWIStyleWalletManager.
|
|
331
|
-
*
|
|
332
|
-
* @param adminOriginator The domain name of the administrative originator.
|
|
333
|
-
* @param walletBuilder A function that can build an underlying wallet instance for a profile.
|
|
334
|
-
* @param interactor An instance of UMPTokenInteractor.
|
|
335
|
-
* @param recoveryKeySaver A function to persist a new recovery key.
|
|
336
|
-
* @param passwordRetriever A function to request the user's password.
|
|
337
|
-
* @param newWalletFunder Optional function to fund a new wallet.
|
|
338
|
-
* @param stateSnapshot Optional previously saved state snapshot.
|
|
339
|
-
*/
|
|
340
|
-
constructor(adminOriginator, walletBuilder, interactor = new OverlayUMPTokenInteractor(), recoveryKeySaver, passwordRetriever, newWalletFunder, stateSnapshot) {
|
|
341
|
-
/**
|
|
342
|
-
* Current mode of authentication.
|
|
343
|
-
*/
|
|
344
|
-
this.authenticationMode = 'presentation-key-and-password';
|
|
345
|
-
/**
|
|
346
|
-
* Indicates new user or existing user flow.
|
|
347
|
-
*/
|
|
348
|
-
this.authenticationFlow = 'new-user';
|
|
349
|
-
/**
|
|
350
|
-
* The currently active profile ID (null or DEFAULT_PROFILE_ID means default profile).
|
|
351
|
-
*/
|
|
352
|
-
this.activeProfileId = exports.DEFAULT_PROFILE_ID;
|
|
353
|
-
/**
|
|
354
|
-
* List of loaded non-default profiles.
|
|
355
|
-
*/
|
|
356
|
-
this.profiles = [];
|
|
357
|
-
this.adminOriginator = adminOriginator;
|
|
358
|
-
this.walletBuilder = walletBuilder;
|
|
359
|
-
this.UMPTokenInteractor = interactor;
|
|
360
|
-
this.recoveryKeySaver = recoveryKeySaver;
|
|
361
|
-
this.passwordRetriever = passwordRetriever;
|
|
362
|
-
this.authenticated = false;
|
|
363
|
-
this.newWalletFunder = newWalletFunder;
|
|
364
|
-
// If a saved snapshot is provided, attempt to load it.
|
|
365
|
-
// Note: loadSnapshot now returns a promise. We don't await it here,
|
|
366
|
-
// as the constructor must be synchronous. The caller should check
|
|
367
|
-
// `this.authenticated` after construction if a snapshot was provided.
|
|
368
|
-
if (stateSnapshot) {
|
|
369
|
-
this.loadSnapshot(stateSnapshot).catch(err => {
|
|
370
|
-
console.error('Failed to load snapshot during construction:', err);
|
|
371
|
-
// Clear potentially partially loaded state
|
|
372
|
-
this.destroy();
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
// --- Authentication Methods ---
|
|
377
|
-
/**
|
|
378
|
-
* Provides the presentation key.
|
|
379
|
-
*/
|
|
380
|
-
async providePresentationKey(key) {
|
|
381
|
-
if (this.authenticated) {
|
|
382
|
-
throw new Error('User is already authenticated');
|
|
383
|
-
}
|
|
384
|
-
if (this.authenticationMode === 'recovery-key-and-password') {
|
|
385
|
-
throw new Error('Presentation key is not needed in this mode');
|
|
386
|
-
}
|
|
387
|
-
const hash = sdk_1.Hash.sha256(key);
|
|
388
|
-
const token = await this.UMPTokenInteractor.findByPresentationKeyHash(hash);
|
|
389
|
-
if (!token) {
|
|
390
|
-
// No token found -> New user
|
|
391
|
-
this.authenticationFlow = 'new-user';
|
|
392
|
-
this.presentationKey = key;
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
// Found token -> existing user
|
|
396
|
-
this.authenticationFlow = 'existing-user';
|
|
397
|
-
this.presentationKey = key;
|
|
398
|
-
this.currentUMPToken = token;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Provides the password.
|
|
403
|
-
*/
|
|
404
|
-
async providePassword(password) {
|
|
405
|
-
if (this.authenticated) {
|
|
406
|
-
throw new Error('User is already authenticated');
|
|
407
|
-
}
|
|
408
|
-
if (this.authenticationMode === 'presentation-key-and-recovery-key') {
|
|
409
|
-
throw new Error('Password is not needed in this mode');
|
|
410
|
-
}
|
|
411
|
-
if (this.authenticationFlow === 'existing-user') {
|
|
412
|
-
// Existing user flow
|
|
413
|
-
if (!this.currentUMPToken) {
|
|
414
|
-
throw new Error('Provide presentation or recovery key first.');
|
|
415
|
-
}
|
|
416
|
-
const derivedPasswordKey = await pbkdf2NativeOrJs(sdk_1.Utils.toArray(password, 'utf8'), this.currentUMPToken.passwordSalt, exports.PBKDF2_NUM_ROUNDS, 32, 'sha512');
|
|
417
|
-
let rootPrimaryKey;
|
|
418
|
-
let rootPrivilegedKey; // Only needed for recovery mode
|
|
419
|
-
if (this.authenticationMode === 'presentation-key-and-password') {
|
|
420
|
-
if (!this.presentationKey)
|
|
421
|
-
throw new Error('No presentation key found!');
|
|
422
|
-
const xorKey = this.XOR(this.presentationKey, derivedPasswordKey);
|
|
423
|
-
rootPrimaryKey = new sdk_1.SymmetricKey(xorKey).decrypt(this.currentUMPToken.passwordPresentationPrimary);
|
|
424
|
-
}
|
|
425
|
-
else {
|
|
426
|
-
// 'recovery-key-and-password'
|
|
427
|
-
if (!this.recoveryKey)
|
|
428
|
-
throw new Error('No recovery key found!');
|
|
429
|
-
const primaryDecryptionKey = this.XOR(this.recoveryKey, derivedPasswordKey);
|
|
430
|
-
rootPrimaryKey = new sdk_1.SymmetricKey(primaryDecryptionKey).decrypt(this.currentUMPToken.passwordRecoveryPrimary);
|
|
431
|
-
const privilegedDecryptionKey = this.XOR(rootPrimaryKey, derivedPasswordKey);
|
|
432
|
-
rootPrivilegedKey = new sdk_1.SymmetricKey(privilegedDecryptionKey).decrypt(this.currentUMPToken.passwordPrimaryPrivileged);
|
|
433
|
-
}
|
|
434
|
-
// Build root infrastructure, load profiles, and switch to default profile initially
|
|
435
|
-
await this.setupRootInfrastructure(rootPrimaryKey, rootPrivilegedKey);
|
|
436
|
-
await this.switchProfile(this.activeProfileId);
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
// New user flow (only 'presentation-key-and-password')
|
|
440
|
-
if (this.authenticationMode !== 'presentation-key-and-password') {
|
|
441
|
-
throw new Error('New-user flow requires presentation key and password mode.');
|
|
442
|
-
}
|
|
443
|
-
if (!this.presentationKey) {
|
|
444
|
-
throw new Error('No presentation key provided for new-user flow.');
|
|
445
|
-
}
|
|
446
|
-
// Generate new keys/salt
|
|
447
|
-
const recoveryKey = (0, sdk_1.Random)(32);
|
|
448
|
-
await this.recoveryKeySaver(recoveryKey);
|
|
449
|
-
const passwordSalt = (0, sdk_1.Random)(32);
|
|
450
|
-
const passwordKey = await pbkdf2NativeOrJs(sdk_1.Utils.toArray(password, 'utf8'), passwordSalt, exports.PBKDF2_NUM_ROUNDS, 32, 'sha512');
|
|
451
|
-
const rootPrimaryKey = (0, sdk_1.Random)(32);
|
|
452
|
-
const rootPrivilegedKey = (0, sdk_1.Random)(32);
|
|
453
|
-
// Build XOR keys
|
|
454
|
-
const presentationPassword = new sdk_1.SymmetricKey(this.XOR(this.presentationKey, passwordKey));
|
|
455
|
-
const presentationRecovery = new sdk_1.SymmetricKey(this.XOR(this.presentationKey, recoveryKey));
|
|
456
|
-
const recoveryPassword = new sdk_1.SymmetricKey(this.XOR(recoveryKey, passwordKey));
|
|
457
|
-
const primaryPassword = new sdk_1.SymmetricKey(this.XOR(rootPrimaryKey, passwordKey));
|
|
458
|
-
// Temp manager for encryption
|
|
459
|
-
const tempPrivilegedKeyManager = new PrivilegedKeyManager_1.PrivilegedKeyManager(async () => new sdk_1.PrivateKey(rootPrivilegedKey));
|
|
460
|
-
// Build new UMP token (no profiles initially)
|
|
461
|
-
const newToken = {
|
|
462
|
-
passwordSalt,
|
|
463
|
-
passwordPresentationPrimary: presentationPassword.encrypt(rootPrimaryKey),
|
|
464
|
-
passwordRecoveryPrimary: recoveryPassword.encrypt(rootPrimaryKey),
|
|
465
|
-
presentationRecoveryPrimary: presentationRecovery.encrypt(rootPrimaryKey),
|
|
466
|
-
passwordPrimaryPrivileged: primaryPassword.encrypt(rootPrivilegedKey),
|
|
467
|
-
presentationRecoveryPrivileged: presentationRecovery.encrypt(rootPrivilegedKey),
|
|
468
|
-
presentationHash: sdk_1.Hash.sha256(this.presentationKey),
|
|
469
|
-
recoveryHash: sdk_1.Hash.sha256(recoveryKey),
|
|
470
|
-
presentationKeyEncrypted: (await tempPrivilegedKeyManager.encrypt({
|
|
471
|
-
plaintext: this.presentationKey,
|
|
472
|
-
protocolID: [2, 'admin key wrapping'],
|
|
473
|
-
keyID: '1'
|
|
474
|
-
})).ciphertext,
|
|
475
|
-
passwordKeyEncrypted: (await tempPrivilegedKeyManager.encrypt({
|
|
476
|
-
plaintext: passwordKey,
|
|
477
|
-
protocolID: [2, 'admin key wrapping'],
|
|
478
|
-
keyID: '1'
|
|
479
|
-
})).ciphertext,
|
|
480
|
-
recoveryKeyEncrypted: (await tempPrivilegedKeyManager.encrypt({
|
|
481
|
-
plaintext: recoveryKey,
|
|
482
|
-
protocolID: [2, 'admin key wrapping'],
|
|
483
|
-
keyID: '1'
|
|
484
|
-
})).ciphertext,
|
|
485
|
-
profilesEncrypted: undefined // No profiles yet
|
|
486
|
-
};
|
|
487
|
-
this.currentUMPToken = newToken;
|
|
488
|
-
// Setup root infrastructure and switch to default profile
|
|
489
|
-
await this.setupRootInfrastructure(rootPrimaryKey);
|
|
490
|
-
await this.switchProfile(exports.DEFAULT_PROFILE_ID);
|
|
491
|
-
// Fund the *default* wallet if funder provided
|
|
492
|
-
if (this.newWalletFunder && this.underlying) {
|
|
493
|
-
try {
|
|
494
|
-
await this.newWalletFunder(this.presentationKey, this.underlying, this.adminOriginator);
|
|
495
|
-
}
|
|
496
|
-
catch (e) {
|
|
497
|
-
console.error('Error funding new wallet:', e);
|
|
498
|
-
// Decide if this should halt the process or just log
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
// Publish the new UMP token *after* potentially funding
|
|
502
|
-
// We need the default profile wallet to sign the UMP creation TX
|
|
503
|
-
if (!this.underlying) {
|
|
504
|
-
throw new Error('Default profile wallet not built before attempting to publish UMP token.');
|
|
505
|
-
}
|
|
506
|
-
this.currentUMPToken.currentOutpoint = await this.UMPTokenInteractor.buildAndSend(this.underlying, // Use the default profile wallet
|
|
507
|
-
this.adminOriginator, newToken);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Provides the recovery key.
|
|
512
|
-
*/
|
|
513
|
-
async provideRecoveryKey(recoveryKey) {
|
|
514
|
-
if (this.authenticated) {
|
|
515
|
-
throw new Error('Already authenticated');
|
|
516
|
-
}
|
|
517
|
-
if (this.authenticationFlow === 'new-user') {
|
|
518
|
-
throw new Error('Do not submit recovery key in new-user flow');
|
|
519
|
-
}
|
|
520
|
-
if (this.authenticationMode === 'presentation-key-and-password') {
|
|
521
|
-
throw new Error('No recovery key required in this mode');
|
|
522
|
-
}
|
|
523
|
-
else if (this.authenticationMode === 'recovery-key-and-password') {
|
|
524
|
-
// Wait for password
|
|
525
|
-
const hash = sdk_1.Hash.sha256(recoveryKey);
|
|
526
|
-
const token = await this.UMPTokenInteractor.findByRecoveryKeyHash(hash);
|
|
527
|
-
if (!token)
|
|
528
|
-
throw new Error('No user found with this recovery key');
|
|
529
|
-
this.recoveryKey = recoveryKey;
|
|
530
|
-
this.currentUMPToken = token;
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
// 'presentation-key-and-recovery-key'
|
|
534
|
-
if (!this.presentationKey)
|
|
535
|
-
throw new Error('Provide the presentation key first');
|
|
536
|
-
if (!this.currentUMPToken)
|
|
537
|
-
throw new Error('Current UMP token not found');
|
|
538
|
-
const xorKey = this.XOR(this.presentationKey, recoveryKey);
|
|
539
|
-
const rootPrimaryKey = new sdk_1.SymmetricKey(xorKey).decrypt(this.currentUMPToken.presentationRecoveryPrimary);
|
|
540
|
-
const rootPrivilegedKey = new sdk_1.SymmetricKey(xorKey).decrypt(this.currentUMPToken.presentationRecoveryPrivileged);
|
|
541
|
-
// Build root infrastructure, load profiles, switch to default
|
|
542
|
-
await this.setupRootInfrastructure(rootPrimaryKey, rootPrivilegedKey);
|
|
543
|
-
await this.switchProfile(this.activeProfileId);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
// --- State Management Methods ---
|
|
547
|
-
/**
|
|
548
|
-
* Saves the current wallet state (root key, UMP token, active profile) into an encrypted snapshot.
|
|
549
|
-
* Version 2 format: [1 byte version=2] + [32 byte snapshot key] + [16 byte activeProfileId] + [encrypted payload]
|
|
550
|
-
* Encrypted Payload: [32 byte rootPrimaryKey] + [varint token length + serialized UMP token]
|
|
551
|
-
*
|
|
552
|
-
* @returns Encrypted snapshot bytes.
|
|
553
|
-
*/
|
|
554
|
-
saveSnapshot() {
|
|
555
|
-
if (!this.rootPrimaryKey || !this.currentUMPToken) {
|
|
556
|
-
throw new Error('No root primary key or current UMP token set');
|
|
557
|
-
}
|
|
558
|
-
const snapshotKey = (0, sdk_1.Random)(32);
|
|
559
|
-
const snapshotPreimageWriter = new sdk_1.Utils.Writer();
|
|
560
|
-
// Write root primary key
|
|
561
|
-
snapshotPreimageWriter.write(this.rootPrimaryKey);
|
|
562
|
-
// Write serialized UMP token (must have outpoint)
|
|
563
|
-
if (!this.currentUMPToken.currentOutpoint) {
|
|
564
|
-
throw new Error('UMP token cannot be saved without a current outpoint.');
|
|
565
|
-
}
|
|
566
|
-
const serializedToken = this.serializeUMPToken(this.currentUMPToken);
|
|
567
|
-
snapshotPreimageWriter.writeVarIntNum(serializedToken.length);
|
|
568
|
-
snapshotPreimageWriter.write(serializedToken);
|
|
569
|
-
// Encrypt the payload
|
|
570
|
-
const snapshotPreimage = snapshotPreimageWriter.toArray();
|
|
571
|
-
const snapshotPayload = new sdk_1.SymmetricKey(snapshotKey).encrypt(snapshotPreimage);
|
|
572
|
-
// Build final snapshot (Version 2)
|
|
573
|
-
const snapshotWriter = new sdk_1.Utils.Writer();
|
|
574
|
-
snapshotWriter.writeUInt8(2); // Version
|
|
575
|
-
snapshotWriter.write(snapshotKey);
|
|
576
|
-
snapshotWriter.write(this.activeProfileId); // Active profile ID
|
|
577
|
-
snapshotWriter.write(snapshotPayload); // Encrypted data
|
|
578
|
-
return snapshotWriter.toArray();
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Loads a previously saved state snapshot. Restores root key, UMP token, profiles, and active profile.
|
|
582
|
-
* Handles Version 1 (legacy) and Version 2 formats.
|
|
583
|
-
*
|
|
584
|
-
* @param snapshot Encrypted snapshot bytes.
|
|
585
|
-
*/
|
|
586
|
-
async loadSnapshot(snapshot) {
|
|
587
|
-
try {
|
|
588
|
-
const reader = new sdk_1.Utils.Reader(snapshot);
|
|
589
|
-
const version = reader.readUInt8();
|
|
590
|
-
let snapshotKey;
|
|
591
|
-
let encryptedPayload;
|
|
592
|
-
let activeProfileId = exports.DEFAULT_PROFILE_ID; // Default for V1
|
|
593
|
-
if (version === 1) {
|
|
594
|
-
snapshotKey = reader.read(32);
|
|
595
|
-
encryptedPayload = reader.read();
|
|
596
|
-
}
|
|
597
|
-
else if (version === 2) {
|
|
598
|
-
snapshotKey = reader.read(32);
|
|
599
|
-
activeProfileId = reader.read(16); // Read active profile ID
|
|
600
|
-
encryptedPayload = reader.read();
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
throw new Error(`Unsupported snapshot version: ${version}`);
|
|
604
|
-
}
|
|
605
|
-
// Decrypt payload
|
|
606
|
-
const decryptedPayload = new sdk_1.SymmetricKey(snapshotKey).decrypt(encryptedPayload);
|
|
607
|
-
const payloadReader = new sdk_1.Utils.Reader(decryptedPayload);
|
|
608
|
-
// Read root primary key
|
|
609
|
-
const rootPrimaryKey = payloadReader.read(32);
|
|
610
|
-
// Read serialized UMP token
|
|
611
|
-
const tokenLen = payloadReader.readVarIntNum();
|
|
612
|
-
const tokenBytes = payloadReader.read(tokenLen);
|
|
613
|
-
const token = this.deserializeUMPToken(tokenBytes);
|
|
614
|
-
// Assign loaded data
|
|
615
|
-
this.currentUMPToken = token;
|
|
616
|
-
// Setup root infrastructure, load profiles, and switch to the loaded active profile
|
|
617
|
-
await this.setupRootInfrastructure(rootPrimaryKey); // Will automatically load profiles
|
|
618
|
-
await this.switchProfile(activeProfileId); // Switch to the profile saved in the snapshot
|
|
619
|
-
this.authenticationFlow = 'existing-user'; // Loading implies existing user
|
|
620
|
-
}
|
|
621
|
-
catch (error) {
|
|
622
|
-
this.destroy(); // Clear state on error
|
|
623
|
-
throw new Error(`Failed to load snapshot: ${error.message}`);
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
async syncUMPToken() {
|
|
627
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrimaryKey) {
|
|
628
|
-
throw new Error('Wallet not authenticated or missing UMP token.');
|
|
629
|
-
}
|
|
630
|
-
const currentToken = this.currentUMPToken;
|
|
631
|
-
let refreshed;
|
|
632
|
-
if (currentToken.presentationHash && currentToken.presentationHash.length) {
|
|
633
|
-
refreshed = await this.UMPTokenInteractor.findByPresentationKeyHash(currentToken.presentationHash);
|
|
634
|
-
}
|
|
635
|
-
if (!refreshed && currentToken.recoveryHash && currentToken.recoveryHash.length) {
|
|
636
|
-
refreshed = await this.UMPTokenInteractor.findByRecoveryKeyHash(currentToken.recoveryHash);
|
|
637
|
-
}
|
|
638
|
-
if (!refreshed) {
|
|
639
|
-
return false;
|
|
640
|
-
}
|
|
641
|
-
if (refreshed.currentOutpoint &&
|
|
642
|
-
currentToken.currentOutpoint &&
|
|
643
|
-
refreshed.currentOutpoint === currentToken.currentOutpoint) {
|
|
644
|
-
return false;
|
|
645
|
-
}
|
|
646
|
-
this.currentUMPToken = refreshed;
|
|
647
|
-
await this.setupRootInfrastructure(this.rootPrimaryKey);
|
|
648
|
-
this.saveSnapshot();
|
|
649
|
-
return true;
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* Destroys the wallet state, clearing keys, tokens, and profiles.
|
|
653
|
-
*/
|
|
654
|
-
destroy() {
|
|
655
|
-
this.underlying = undefined;
|
|
656
|
-
this.rootPrivilegedKeyManager = undefined;
|
|
657
|
-
this.authenticated = false;
|
|
658
|
-
this.rootPrimaryKey = undefined;
|
|
659
|
-
this.currentUMPToken = undefined;
|
|
660
|
-
this.presentationKey = undefined;
|
|
661
|
-
this.recoveryKey = undefined;
|
|
662
|
-
this.profiles = [];
|
|
663
|
-
this.activeProfileId = exports.DEFAULT_PROFILE_ID;
|
|
664
|
-
this.authenticationMode = 'presentation-key-and-password';
|
|
665
|
-
this.authenticationFlow = 'new-user';
|
|
666
|
-
}
|
|
667
|
-
// --- Profile Management Methods ---
|
|
668
|
-
/**
|
|
669
|
-
* Lists all available profiles, including the default profile.
|
|
670
|
-
* @returns Array of profile info objects, including an 'active' flag.
|
|
671
|
-
*/
|
|
672
|
-
listProfiles() {
|
|
673
|
-
if (!this.authenticated) {
|
|
674
|
-
throw new Error('Not authenticated.');
|
|
675
|
-
}
|
|
676
|
-
const profileList = [
|
|
677
|
-
// Default profile
|
|
678
|
-
{
|
|
679
|
-
id: exports.DEFAULT_PROFILE_ID,
|
|
680
|
-
name: 'default',
|
|
681
|
-
createdAt: null, // Default profile doesn't have a creation timestamp in the same way
|
|
682
|
-
active: this.activeProfileId.every(x => x === 0),
|
|
683
|
-
identityKey: new sdk_1.PrivateKey(this.rootPrimaryKey).toPublicKey().toString()
|
|
684
|
-
},
|
|
685
|
-
// Other profiles
|
|
686
|
-
...this.profiles.map(p => ({
|
|
687
|
-
id: p.id,
|
|
688
|
-
name: p.name,
|
|
689
|
-
createdAt: p.createdAt,
|
|
690
|
-
active: this.activeProfileId.every((x, i) => x === p.id[i]),
|
|
691
|
-
identityKey: new sdk_1.PrivateKey(this.XOR(this.rootPrimaryKey, p.primaryPad)).toPublicKey().toString()
|
|
692
|
-
}))
|
|
693
|
-
];
|
|
694
|
-
return profileList;
|
|
695
|
-
}
|
|
696
|
-
/**
|
|
697
|
-
* Adds a new profile with the given name.
|
|
698
|
-
* Generates necessary pads and updates the UMP token.
|
|
699
|
-
* Does not switch to the new profile automatically.
|
|
700
|
-
*
|
|
701
|
-
* @param name The desired name for the new profile.
|
|
702
|
-
* @returns The ID of the newly created profile.
|
|
703
|
-
*/
|
|
704
|
-
async addProfile(name) {
|
|
705
|
-
if (!this.authenticated || !this.rootPrimaryKey || !this.currentUMPToken || !this.rootPrivilegedKeyManager) {
|
|
706
|
-
throw new Error('Wallet not fully initialized or authenticated.');
|
|
707
|
-
}
|
|
708
|
-
// Ensure name is unique (including 'default')
|
|
709
|
-
if (name === 'default' || this.profiles.some(p => p.name.toLowerCase() === name.toLowerCase())) {
|
|
710
|
-
throw new Error(`Profile name "${name}" is already in use.`);
|
|
711
|
-
}
|
|
712
|
-
const newProfile = {
|
|
713
|
-
name,
|
|
714
|
-
id: (0, sdk_1.Random)(16),
|
|
715
|
-
primaryPad: (0, sdk_1.Random)(32),
|
|
716
|
-
privilegedPad: (0, sdk_1.Random)(32),
|
|
717
|
-
createdAt: Math.floor(Date.now() / 1000)
|
|
718
|
-
};
|
|
719
|
-
this.profiles.push(newProfile);
|
|
720
|
-
// Update the UMP token with the new profile list
|
|
721
|
-
await this.updateAuthFactors(this.currentUMPToken.passwordSalt,
|
|
722
|
-
// Need to re-derive/decrypt factors needed for re-encryption
|
|
723
|
-
await this.getFactor('passwordKey'), await this.getFactor('presentationKey'), await this.getFactor('recoveryKey'), this.rootPrimaryKey, await this.getFactor('privilegedKey'), // Get ROOT privileged key
|
|
724
|
-
this.profiles // Pass the updated profile list
|
|
725
|
-
);
|
|
726
|
-
return newProfile.id;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Deletes a profile by its ID.
|
|
730
|
-
* Cannot delete the default profile. If the active profile is deleted,
|
|
731
|
-
* it switches back to the default profile.
|
|
732
|
-
*
|
|
733
|
-
* @param profileId The 16-byte ID of the profile to delete.
|
|
734
|
-
*/
|
|
735
|
-
async deleteProfile(profileId) {
|
|
736
|
-
if (!this.authenticated || !this.rootPrimaryKey || !this.currentUMPToken || !this.rootPrivilegedKeyManager) {
|
|
737
|
-
throw new Error('Wallet not fully initialized or authenticated.');
|
|
738
|
-
}
|
|
739
|
-
if (profileId.every(x => x === 0)) {
|
|
740
|
-
throw new Error('Cannot delete the default profile.');
|
|
741
|
-
}
|
|
742
|
-
const profileIndex = this.profiles.findIndex(p => p.id.every((x, i) => x === profileId[i]));
|
|
743
|
-
if (profileIndex === -1) {
|
|
744
|
-
throw new Error('Profile not found.');
|
|
745
|
-
}
|
|
746
|
-
// Remove the profile
|
|
747
|
-
this.profiles.splice(profileIndex, 1);
|
|
748
|
-
// If the deleted profile was active, switch to default
|
|
749
|
-
if (this.activeProfileId.every((x, i) => x === profileId[i])) {
|
|
750
|
-
await this.switchProfile(exports.DEFAULT_PROFILE_ID); // This rebuilds the wallet
|
|
751
|
-
}
|
|
752
|
-
// Update the UMP token
|
|
753
|
-
await this.updateAuthFactors(this.currentUMPToken.passwordSalt, await this.getFactor('passwordKey'), await this.getFactor('presentationKey'), await this.getFactor('recoveryKey'), this.rootPrimaryKey, await this.getFactor('privilegedKey'), // Get ROOT privileged key
|
|
754
|
-
this.profiles // Pass updated list
|
|
755
|
-
);
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Switches the active profile. This re-derives keys and rebuilds the underlying wallet.
|
|
759
|
-
*
|
|
760
|
-
* @param profileId The 16-byte ID of the profile to switch to (use DEFAULT_PROFILE_ID for default).
|
|
761
|
-
*/
|
|
762
|
-
async switchProfile(profileId) {
|
|
763
|
-
if (!this.authenticated || !this.rootPrimaryKey || !this.rootPrivilegedKeyManager) {
|
|
764
|
-
throw new Error('Cannot switch profile: Wallet not authenticated or root keys missing.');
|
|
765
|
-
}
|
|
766
|
-
let profilePrimaryKey;
|
|
767
|
-
let profilePrivilegedPad; // Pad for the target profile
|
|
768
|
-
if (profileId.every(x => x === 0)) {
|
|
769
|
-
// Switching to default profile
|
|
770
|
-
profilePrimaryKey = this.rootPrimaryKey;
|
|
771
|
-
profilePrivilegedPad = undefined; // No pad for default
|
|
772
|
-
this.activeProfileId = exports.DEFAULT_PROFILE_ID;
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
// Switching to a non-default profile
|
|
776
|
-
const profile = this.profiles.find(p => p.id.every((x, i) => x === profileId[i]));
|
|
777
|
-
if (!profile) {
|
|
778
|
-
throw new Error('Profile not found.');
|
|
779
|
-
}
|
|
780
|
-
profilePrimaryKey = this.XOR(this.rootPrimaryKey, profile.primaryPad);
|
|
781
|
-
profilePrivilegedPad = profile.privilegedPad;
|
|
782
|
-
this.activeProfileId = profileId;
|
|
783
|
-
}
|
|
784
|
-
// Create a *profile-specific* PrivilegedKeyManager.
|
|
785
|
-
// It uses the ROOT manager internally but applies the profile's pad.
|
|
786
|
-
const profilePrivilegedKeyManager = new PrivilegedKeyManager_1.PrivilegedKeyManager(async (reason) => {
|
|
787
|
-
// Request the ROOT privileged key using the root manager
|
|
788
|
-
const rootPrivileged = await this.rootPrivilegedKeyManager.getPrivilegedKey(reason);
|
|
789
|
-
const rootPrivilegedBytes = rootPrivileged.toArray();
|
|
790
|
-
// Apply the profile's pad if applicable
|
|
791
|
-
const profilePrivilegedBytes = profilePrivilegedPad
|
|
792
|
-
? this.XOR(rootPrivilegedBytes, profilePrivilegedPad)
|
|
793
|
-
: rootPrivilegedBytes;
|
|
794
|
-
return new sdk_1.PrivateKey(profilePrivilegedBytes);
|
|
795
|
-
});
|
|
796
|
-
// Build the underlying wallet for the specific profile
|
|
797
|
-
this.underlying = await this.walletBuilder(profilePrimaryKey, profilePrivilegedKeyManager, // Pass the profile-specific manager
|
|
798
|
-
this.activeProfileId // Pass the ID of the profile being activated
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
// --- Key Management Methods ---
|
|
802
|
-
/**
|
|
803
|
-
* Changes the user's password. Re-wraps keys and updates the UMP token.
|
|
804
|
-
*/
|
|
805
|
-
async changePassword(newPassword) {
|
|
806
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrimaryKey || !this.rootPrivilegedKeyManager) {
|
|
807
|
-
throw new Error('Not authenticated or missing required data.');
|
|
808
|
-
}
|
|
809
|
-
const passwordSalt = (0, sdk_1.Random)(32);
|
|
810
|
-
const newPasswordKey = await pbkdf2NativeOrJs(sdk_1.Utils.toArray(newPassword, 'utf8'), passwordSalt, exports.PBKDF2_NUM_ROUNDS, 32, 'sha512');
|
|
811
|
-
// Decrypt existing factors needed for re-encryption, using the *root* privileged key manager
|
|
812
|
-
const recoveryKey = await this.getFactor('recoveryKey');
|
|
813
|
-
const presentationKey = await this.getFactor('presentationKey');
|
|
814
|
-
const rootPrivilegedKey = await this.getFactor('privilegedKey'); // Get ROOT privileged key
|
|
815
|
-
await this.updateAuthFactors(passwordSalt, newPasswordKey, presentationKey, recoveryKey, this.rootPrimaryKey, rootPrivilegedKey, // Pass the explicitly fetched root key
|
|
816
|
-
this.profiles // Preserve existing profiles
|
|
817
|
-
);
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* Retrieves the current recovery key. Requires privileged access.
|
|
821
|
-
*/
|
|
822
|
-
async getRecoveryKey() {
|
|
823
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrivilegedKeyManager) {
|
|
824
|
-
throw new Error('Not authenticated or missing required data.');
|
|
825
|
-
}
|
|
826
|
-
return this.getFactor('recoveryKey');
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Changes the user's recovery key. Prompts user to save the new key.
|
|
830
|
-
*/
|
|
831
|
-
async changeRecoveryKey() {
|
|
832
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrimaryKey || !this.rootPrivilegedKeyManager) {
|
|
833
|
-
throw new Error('Not authenticated or missing required data.');
|
|
834
|
-
}
|
|
835
|
-
// Decrypt existing factors needed
|
|
836
|
-
const passwordKey = await this.getFactor('passwordKey');
|
|
837
|
-
const presentationKey = await this.getFactor('presentationKey');
|
|
838
|
-
const rootPrivilegedKey = await this.getFactor('privilegedKey'); // Get ROOT privileged key
|
|
839
|
-
// Generate and save new recovery key
|
|
840
|
-
const newRecoveryKey = (0, sdk_1.Random)(32);
|
|
841
|
-
await this.recoveryKeySaver(newRecoveryKey);
|
|
842
|
-
await this.updateAuthFactors(this.currentUMPToken.passwordSalt, passwordKey, presentationKey, newRecoveryKey, // Use the new key
|
|
843
|
-
this.rootPrimaryKey, rootPrivilegedKey, this.profiles // Preserve profiles
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
/**
|
|
847
|
-
* Changes the user's presentation key.
|
|
848
|
-
*/
|
|
849
|
-
async changePresentationKey(newPresentationKey) {
|
|
850
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrimaryKey || !this.rootPrivilegedKeyManager) {
|
|
851
|
-
throw new Error('Not authenticated or missing required data.');
|
|
852
|
-
}
|
|
853
|
-
if (newPresentationKey.length !== 32) {
|
|
854
|
-
throw new Error('Presentation key must be 32 bytes.');
|
|
855
|
-
}
|
|
856
|
-
// Decrypt existing factors
|
|
857
|
-
const recoveryKey = await this.getFactor('recoveryKey');
|
|
858
|
-
const passwordKey = await this.getFactor('passwordKey');
|
|
859
|
-
const rootPrivilegedKey = await this.getFactor('privilegedKey'); // Get ROOT privileged key
|
|
860
|
-
await this.updateAuthFactors(this.currentUMPToken.passwordSalt, passwordKey, newPresentationKey, // Use the new key
|
|
861
|
-
recoveryKey, this.rootPrimaryKey, rootPrivilegedKey, this.profiles // Preserve profiles
|
|
862
|
-
);
|
|
863
|
-
// Update the temporarily stored key if it was set
|
|
864
|
-
if (this.presentationKey) {
|
|
865
|
-
this.presentationKey = newPresentationKey;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
// --- Internal Helper Methods ---
|
|
869
|
-
/**
|
|
870
|
-
* Performs XOR operation on two byte arrays.
|
|
871
|
-
*/
|
|
872
|
-
XOR(n1, n2) {
|
|
873
|
-
if (n1.length !== n2.length) {
|
|
874
|
-
// Provide more context in error
|
|
875
|
-
throw new Error(`XOR length mismatch: ${n1.length} vs ${n2.length}`);
|
|
876
|
-
}
|
|
877
|
-
const r = new Array(n1.length);
|
|
878
|
-
for (let i = 0; i < n1.length; i++) {
|
|
879
|
-
r[i] = n1[i] ^ n2[i];
|
|
880
|
-
}
|
|
881
|
-
return r;
|
|
882
|
-
}
|
|
883
|
-
/**
|
|
884
|
-
* Helper to decrypt a specific factor (key) stored encrypted in the UMP token.
|
|
885
|
-
* Requires the root privileged key manager.
|
|
886
|
-
* @param factorName Name of the factor to decrypt ('passwordKey', 'presentationKey', 'recoveryKey', 'privilegedKey').
|
|
887
|
-
* @param getRoot If true and factorName is 'privilegedKey', returns the root privileged key bytes directly.
|
|
888
|
-
* @returns The decrypted key bytes.
|
|
889
|
-
*/
|
|
890
|
-
async getFactor(factorName) {
|
|
891
|
-
if (!this.authenticated || !this.currentUMPToken || !this.rootPrivilegedKeyManager) {
|
|
892
|
-
throw new Error(`Cannot get factor "${factorName}": Wallet not ready.`);
|
|
893
|
-
}
|
|
894
|
-
const protocolID = [2, 'admin key wrapping']; // Protocol used for encrypting factors
|
|
895
|
-
const keyID = '1'; // Key ID used
|
|
896
|
-
try {
|
|
897
|
-
switch (factorName) {
|
|
898
|
-
case 'passwordKey':
|
|
899
|
-
return (await this.rootPrivilegedKeyManager.decrypt({
|
|
900
|
-
ciphertext: this.currentUMPToken.passwordKeyEncrypted,
|
|
901
|
-
protocolID,
|
|
902
|
-
keyID
|
|
903
|
-
})).plaintext;
|
|
904
|
-
case 'presentationKey':
|
|
905
|
-
return (await this.rootPrivilegedKeyManager.decrypt({
|
|
906
|
-
ciphertext: this.currentUMPToken.presentationKeyEncrypted,
|
|
907
|
-
protocolID,
|
|
908
|
-
keyID
|
|
909
|
-
})).plaintext;
|
|
910
|
-
case 'recoveryKey':
|
|
911
|
-
return (await this.rootPrivilegedKeyManager.decrypt({
|
|
912
|
-
ciphertext: this.currentUMPToken.recoveryKeyEncrypted,
|
|
913
|
-
protocolID,
|
|
914
|
-
keyID
|
|
915
|
-
})).plaintext;
|
|
916
|
-
case 'privilegedKey': {
|
|
917
|
-
// This needs careful handling based on whether the ROOT or PROFILE key is needed.
|
|
918
|
-
// This helper is mostly used for UMP updates, which need the ROOT key.
|
|
919
|
-
// We retrieve the PrivateKey object first.
|
|
920
|
-
const pk = await this.rootPrivilegedKeyManager.getPrivilegedKey('UMP token update', true); // Force retrieval of root key
|
|
921
|
-
return pk.toArray(); // Return bytes
|
|
922
|
-
}
|
|
923
|
-
default:
|
|
924
|
-
throw new Error(`Unknown factor name: ${factorName}`);
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
catch (error) {
|
|
928
|
-
console.error(`Error decrypting factor ${factorName}:`, error);
|
|
929
|
-
throw new Error(`Failed to decrypt factor "${factorName}": ${error.message}`);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
* Recomputes UMP token fields with updated factors and profiles, then publishes the update.
|
|
934
|
-
* This operation requires the *root* privileged key and the *default* profile wallet.
|
|
935
|
-
*/
|
|
936
|
-
async updateAuthFactors(passwordSalt, passwordKey, presentationKey, recoveryKey, rootPrimaryKey, rootPrivilegedKey, // Explicitly pass the root key bytes
|
|
937
|
-
profiles // Pass current/new profiles list
|
|
938
|
-
) {
|
|
939
|
-
if (!this.authenticated || !this.rootPrimaryKey || !this.currentUMPToken) {
|
|
940
|
-
throw new Error('Wallet is not properly authenticated or missing data for update.');
|
|
941
|
-
}
|
|
942
|
-
// Ensure we have the OLD token to consume
|
|
943
|
-
const oldTokenToConsume = { ...this.currentUMPToken };
|
|
944
|
-
if (!oldTokenToConsume.currentOutpoint) {
|
|
945
|
-
throw new Error('Cannot update UMP token: Old token has no outpoint.');
|
|
946
|
-
}
|
|
947
|
-
// Derive symmetrical encryption keys using XOR for the *root* keys
|
|
948
|
-
const presentationPassword = new sdk_1.SymmetricKey(this.XOR(presentationKey, passwordKey));
|
|
949
|
-
const presentationRecovery = new sdk_1.SymmetricKey(this.XOR(presentationKey, recoveryKey));
|
|
950
|
-
const recoveryPassword = new sdk_1.SymmetricKey(this.XOR(recoveryKey, passwordKey));
|
|
951
|
-
const primaryPassword = new sdk_1.SymmetricKey(this.XOR(rootPrimaryKey, passwordKey)); // Use rootPrimaryKey
|
|
952
|
-
// Build a temporary privileged key manager using the explicit ROOT privileged key
|
|
953
|
-
const tempRootPrivilegedKeyManager = new PrivilegedKeyManager_1.PrivilegedKeyManager(async () => new sdk_1.PrivateKey(rootPrivilegedKey));
|
|
954
|
-
// Encrypt profiles if provided
|
|
955
|
-
let profilesEncrypted;
|
|
956
|
-
if (profiles && profiles.length > 0) {
|
|
957
|
-
const profilesJson = JSON.stringify(profiles);
|
|
958
|
-
const profilesBytes = sdk_1.Utils.toArray(profilesJson, 'utf8');
|
|
959
|
-
profilesEncrypted = new sdk_1.SymmetricKey(rootPrimaryKey).encrypt(profilesBytes);
|
|
960
|
-
}
|
|
961
|
-
// Construct the new UMP token data
|
|
962
|
-
const newTokenData = {
|
|
963
|
-
passwordSalt,
|
|
964
|
-
passwordPresentationPrimary: presentationPassword.encrypt(rootPrimaryKey),
|
|
965
|
-
passwordRecoveryPrimary: recoveryPassword.encrypt(rootPrimaryKey),
|
|
966
|
-
presentationRecoveryPrimary: presentationRecovery.encrypt(rootPrimaryKey),
|
|
967
|
-
passwordPrimaryPrivileged: primaryPassword.encrypt(rootPrivilegedKey),
|
|
968
|
-
presentationRecoveryPrivileged: presentationRecovery.encrypt(rootPrivilegedKey),
|
|
969
|
-
presentationHash: sdk_1.Hash.sha256(presentationKey),
|
|
970
|
-
recoveryHash: sdk_1.Hash.sha256(recoveryKey),
|
|
971
|
-
presentationKeyEncrypted: (await tempRootPrivilegedKeyManager.encrypt({
|
|
972
|
-
plaintext: presentationKey,
|
|
973
|
-
protocolID: [2, 'admin key wrapping'],
|
|
974
|
-
keyID: '1'
|
|
975
|
-
})).ciphertext,
|
|
976
|
-
passwordKeyEncrypted: (await tempRootPrivilegedKeyManager.encrypt({
|
|
977
|
-
plaintext: passwordKey,
|
|
978
|
-
protocolID: [2, 'admin key wrapping'],
|
|
979
|
-
keyID: '1'
|
|
980
|
-
})).ciphertext,
|
|
981
|
-
recoveryKeyEncrypted: (await tempRootPrivilegedKeyManager.encrypt({
|
|
982
|
-
plaintext: recoveryKey,
|
|
983
|
-
protocolID: [2, 'admin key wrapping'],
|
|
984
|
-
keyID: '1'
|
|
985
|
-
})).ciphertext,
|
|
986
|
-
profilesEncrypted // Add encrypted profiles
|
|
987
|
-
// currentOutpoint will be set after publishing
|
|
988
|
-
};
|
|
989
|
-
// We need the wallet built for the DEFAULT profile to publish the UMP token.
|
|
990
|
-
// If the current active profile is not default, temporarily switch, publish, then switch back.
|
|
991
|
-
const currentActiveId = this.activeProfileId;
|
|
992
|
-
let walletToUse = this.underlying;
|
|
993
|
-
if (!currentActiveId.every(x => x === 0)) {
|
|
994
|
-
console.log('Temporarily switching to default profile to update UMP token...');
|
|
995
|
-
await this.switchProfile(exports.DEFAULT_PROFILE_ID); // This rebuilds this.underlying
|
|
996
|
-
walletToUse = this.underlying;
|
|
997
|
-
}
|
|
998
|
-
if (!walletToUse) {
|
|
999
|
-
throw new Error('Default profile wallet could not be activated for UMP token update.');
|
|
1000
|
-
}
|
|
1001
|
-
// Publish the new token on-chain, consuming the old one
|
|
1002
|
-
try {
|
|
1003
|
-
newTokenData.currentOutpoint = await this.UMPTokenInteractor.buildAndSend(walletToUse, this.adminOriginator, newTokenData, oldTokenToConsume // Consume the previous token
|
|
1004
|
-
);
|
|
1005
|
-
// Update the manager's state
|
|
1006
|
-
this.currentUMPToken = newTokenData;
|
|
1007
|
-
// Profiles are already updated in this.profiles if they were passed in
|
|
1008
|
-
}
|
|
1009
|
-
finally {
|
|
1010
|
-
// Switch back if we temporarily switched
|
|
1011
|
-
if (!currentActiveId.every(x => x === 0)) {
|
|
1012
|
-
console.log('Switching back to original profile...');
|
|
1013
|
-
await this.switchProfile(currentActiveId);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* Serializes a UMP token to binary format (Version 2 with optional profiles).
|
|
1019
|
-
* Layout: [1 byte version=2] + [11 * (varint len + bytes) for standard fields] + [1 byte profile_flag] + [IF flag=1 THEN varint len + profile bytes] + [varint len + outpoint bytes]
|
|
1020
|
-
*/
|
|
1021
|
-
serializeUMPToken(token) {
|
|
1022
|
-
if (!token.currentOutpoint) {
|
|
1023
|
-
throw new Error('Token must have outpoint for serialization');
|
|
1024
|
-
}
|
|
1025
|
-
const writer = new sdk_1.Utils.Writer();
|
|
1026
|
-
writer.writeUInt8(2); // Version 2
|
|
1027
|
-
const writeArray = (arr) => {
|
|
1028
|
-
writer.writeVarIntNum(arr.length);
|
|
1029
|
-
writer.write(arr);
|
|
1030
|
-
};
|
|
1031
|
-
// Write standard fields in specific order
|
|
1032
|
-
writeArray(token.passwordSalt); // 0
|
|
1033
|
-
writeArray(token.passwordPresentationPrimary); // 1
|
|
1034
|
-
writeArray(token.passwordRecoveryPrimary); // 2
|
|
1035
|
-
writeArray(token.presentationRecoveryPrimary); // 3
|
|
1036
|
-
writeArray(token.passwordPrimaryPrivileged); // 4
|
|
1037
|
-
writeArray(token.presentationRecoveryPrivileged); // 5
|
|
1038
|
-
writeArray(token.presentationHash); // 6
|
|
1039
|
-
writeArray(token.recoveryHash); // 7
|
|
1040
|
-
writeArray(token.presentationKeyEncrypted); // 8
|
|
1041
|
-
writeArray(token.passwordKeyEncrypted); // 9 - Swapped order vs original doc comment
|
|
1042
|
-
writeArray(token.recoveryKeyEncrypted); // 10
|
|
1043
|
-
// Write optional profiles field
|
|
1044
|
-
if (token.profilesEncrypted && token.profilesEncrypted.length > 0) {
|
|
1045
|
-
writer.writeUInt8(1); // Flag indicating profiles present
|
|
1046
|
-
writeArray(token.profilesEncrypted);
|
|
1047
|
-
}
|
|
1048
|
-
else {
|
|
1049
|
-
writer.writeUInt8(0); // Flag indicating no profiles
|
|
1050
|
-
}
|
|
1051
|
-
// Write outpoint string
|
|
1052
|
-
const outpointBytes = sdk_1.Utils.toArray(token.currentOutpoint, 'utf8');
|
|
1053
|
-
writer.writeVarIntNum(outpointBytes.length);
|
|
1054
|
-
writer.write(outpointBytes);
|
|
1055
|
-
return writer.toArray();
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* Deserializes a UMP token from binary format (Handles Version 1 and 2).
|
|
1059
|
-
*/
|
|
1060
|
-
deserializeUMPToken(bin) {
|
|
1061
|
-
const reader = new sdk_1.Utils.Reader(bin);
|
|
1062
|
-
const version = reader.readUInt8();
|
|
1063
|
-
if (version !== 1 && version !== 2) {
|
|
1064
|
-
throw new Error(`Unsupported UMP token serialization version: ${version}`);
|
|
1065
|
-
}
|
|
1066
|
-
const readArray = () => {
|
|
1067
|
-
const length = reader.readVarIntNum();
|
|
1068
|
-
return reader.read(length);
|
|
1069
|
-
};
|
|
1070
|
-
// Read standard fields (order matches serialization V2)
|
|
1071
|
-
const passwordSalt = readArray(); // 0
|
|
1072
|
-
const passwordPresentationPrimary = readArray(); // 1
|
|
1073
|
-
const passwordRecoveryPrimary = readArray(); // 2
|
|
1074
|
-
const presentationRecoveryPrimary = readArray(); // 3
|
|
1075
|
-
const passwordPrimaryPrivileged = readArray(); // 4
|
|
1076
|
-
const presentationRecoveryPrivileged = readArray(); // 5
|
|
1077
|
-
const presentationHash = readArray(); // 6
|
|
1078
|
-
const recoveryHash = readArray(); // 7
|
|
1079
|
-
const presentationKeyEncrypted = readArray(); // 8
|
|
1080
|
-
const passwordKeyEncrypted = readArray(); // 9
|
|
1081
|
-
const recoveryKeyEncrypted = readArray(); // 10
|
|
1082
|
-
// Read optional profiles (only in V2)
|
|
1083
|
-
let profilesEncrypted;
|
|
1084
|
-
if (version === 2) {
|
|
1085
|
-
const profilesFlag = reader.readUInt8();
|
|
1086
|
-
if (profilesFlag === 1) {
|
|
1087
|
-
profilesEncrypted = readArray();
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
// Read outpoint string
|
|
1091
|
-
const outpointLen = reader.readVarIntNum();
|
|
1092
|
-
const outpointBytes = reader.read(outpointLen);
|
|
1093
|
-
const currentOutpoint = sdk_1.Utils.toUTF8(outpointBytes);
|
|
1094
|
-
const token = {
|
|
1095
|
-
passwordSalt,
|
|
1096
|
-
passwordPresentationPrimary,
|
|
1097
|
-
passwordRecoveryPrimary,
|
|
1098
|
-
presentationRecoveryPrimary,
|
|
1099
|
-
passwordPrimaryPrivileged,
|
|
1100
|
-
presentationRecoveryPrivileged,
|
|
1101
|
-
presentationHash,
|
|
1102
|
-
recoveryHash,
|
|
1103
|
-
presentationKeyEncrypted,
|
|
1104
|
-
passwordKeyEncrypted, // Corrected order
|
|
1105
|
-
recoveryKeyEncrypted,
|
|
1106
|
-
profilesEncrypted, // May be undefined
|
|
1107
|
-
currentOutpoint
|
|
1108
|
-
};
|
|
1109
|
-
return token;
|
|
1110
|
-
}
|
|
1111
|
-
/**
|
|
1112
|
-
* Sets up the root key infrastructure after authentication or loading from snapshot.
|
|
1113
|
-
* Initializes the root primary key, root privileged key manager, loads profiles,
|
|
1114
|
-
* and sets the authenticated flag. Does NOT switch profile initially.
|
|
1115
|
-
*
|
|
1116
|
-
* @param rootPrimaryKey The user's root primary key (32 bytes).
|
|
1117
|
-
* @param ephemeralRootPrivilegedKey Optional root privileged key (e.g., during recovery flows).
|
|
1118
|
-
*/
|
|
1119
|
-
async setupRootInfrastructure(rootPrimaryKey, ephemeralRootPrivilegedKey) {
|
|
1120
|
-
if (!this.currentUMPToken) {
|
|
1121
|
-
throw new Error('A UMP token must exist before setting up root infrastructure!');
|
|
1122
|
-
}
|
|
1123
|
-
this.rootPrimaryKey = rootPrimaryKey;
|
|
1124
|
-
// Store ephemeral key if provided, for one-time use by the manager
|
|
1125
|
-
let oneTimePrivilegedKey = ephemeralRootPrivilegedKey
|
|
1126
|
-
? new sdk_1.PrivateKey(ephemeralRootPrivilegedKey)
|
|
1127
|
-
: undefined;
|
|
1128
|
-
// Create the ROOT PrivilegedKeyManager
|
|
1129
|
-
this.rootPrivilegedKeyManager = new PrivilegedKeyManager_1.PrivilegedKeyManager(async (reason) => {
|
|
1130
|
-
// 1. Use one-time key if available (for recovery)
|
|
1131
|
-
if (oneTimePrivilegedKey) {
|
|
1132
|
-
const tempKey = oneTimePrivilegedKey;
|
|
1133
|
-
oneTimePrivilegedKey = undefined; // Consume it
|
|
1134
|
-
return tempKey;
|
|
1135
|
-
}
|
|
1136
|
-
// 2. Otherwise, derive from password
|
|
1137
|
-
const password = await this.passwordRetriever(reason, (passwordCandidate) => {
|
|
1138
|
-
try {
|
|
1139
|
-
const derivedPasswordKey = sdk_1.Hash.pbkdf2(sdk_1.Utils.toArray(passwordCandidate, 'utf8'), this.currentUMPToken.passwordSalt, exports.PBKDF2_NUM_ROUNDS, 32, 'sha512');
|
|
1140
|
-
const privilegedDecryptor = this.XOR(this.rootPrimaryKey, derivedPasswordKey);
|
|
1141
|
-
const decryptedPrivileged = new sdk_1.SymmetricKey(privilegedDecryptor).decrypt(this.currentUMPToken.passwordPrimaryPrivileged);
|
|
1142
|
-
return !!decryptedPrivileged; // Test passes if decryption works
|
|
1143
|
-
}
|
|
1144
|
-
catch (e) {
|
|
1145
|
-
return false;
|
|
1146
|
-
}
|
|
1147
|
-
});
|
|
1148
|
-
// Decrypt the root privileged key using the confirmed password
|
|
1149
|
-
const derivedPasswordKey = await pbkdf2NativeOrJs(sdk_1.Utils.toArray(password, 'utf8'), this.currentUMPToken.passwordSalt, exports.PBKDF2_NUM_ROUNDS, 32, 'sha512');
|
|
1150
|
-
const privilegedDecryptor = this.XOR(this.rootPrimaryKey, derivedPasswordKey);
|
|
1151
|
-
const rootPrivilegedBytes = new sdk_1.SymmetricKey(privilegedDecryptor).decrypt(this.currentUMPToken.passwordPrimaryPrivileged);
|
|
1152
|
-
return new sdk_1.PrivateKey(rootPrivilegedBytes); // Return the ROOT key object
|
|
1153
|
-
});
|
|
1154
|
-
// Decrypt and load profiles if present in the token
|
|
1155
|
-
this.profiles = []; // Clear existing profiles before loading
|
|
1156
|
-
if (this.currentUMPToken.profilesEncrypted && this.currentUMPToken.profilesEncrypted.length > 0) {
|
|
1157
|
-
try {
|
|
1158
|
-
const decryptedProfileBytes = new sdk_1.SymmetricKey(rootPrimaryKey).decrypt(this.currentUMPToken.profilesEncrypted);
|
|
1159
|
-
const profilesJson = sdk_1.Utils.toUTF8(decryptedProfileBytes);
|
|
1160
|
-
this.profiles = JSON.parse(profilesJson);
|
|
1161
|
-
}
|
|
1162
|
-
catch (error) {
|
|
1163
|
-
console.error('Failed to decrypt or parse profiles:', error);
|
|
1164
|
-
// Decide if this should be fatal or just log and continue without profiles
|
|
1165
|
-
this.profiles = []; // Ensure profiles are empty on error
|
|
1166
|
-
// Optionally re-throw or handle more gracefully
|
|
1167
|
-
throw new Error(`Failed to load profiles: ${error.message}`);
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
this.authenticated = true;
|
|
1171
|
-
// Note: We don't call switchProfile here anymore.
|
|
1172
|
-
// It's called by the auth methods (providePassword/provideRecoveryKey) or loadSnapshot after this.
|
|
1173
|
-
}
|
|
1174
|
-
/*
|
|
1175
|
-
* ---------------------------------------------------------------------------------------
|
|
1176
|
-
* Standard WalletInterface methods proxying to the *active* underlying wallet.
|
|
1177
|
-
* Includes authentication checks and admin originator protection.
|
|
1178
|
-
* ---------------------------------------------------------------------------------------
|
|
1179
|
-
*/
|
|
1180
|
-
checkAuthAndUnderlying(originator) {
|
|
1181
|
-
if (!this.authenticated) {
|
|
1182
|
-
throw new Error('User is not authenticated.');
|
|
1183
|
-
}
|
|
1184
|
-
if (!this.underlying) {
|
|
1185
|
-
// This might happen if authentication succeeded but profile switching failed
|
|
1186
|
-
throw new Error('Underlying wallet for the active profile is not initialized.');
|
|
1187
|
-
}
|
|
1188
|
-
if (originator === this.adminOriginator) {
|
|
1189
|
-
throw new Error('External applications are not allowed to use the admin originator.');
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
// Example proxy method (repeat pattern for all others)
|
|
1193
|
-
async getPublicKey(args, originator) {
|
|
1194
|
-
this.checkAuthAndUnderlying(originator);
|
|
1195
|
-
return this.underlying.getPublicKey(args, originator);
|
|
1196
|
-
}
|
|
1197
|
-
async revealCounterpartyKeyLinkage(args, originator) {
|
|
1198
|
-
this.checkAuthAndUnderlying(originator);
|
|
1199
|
-
return this.underlying.revealCounterpartyKeyLinkage(args, originator);
|
|
1200
|
-
}
|
|
1201
|
-
async revealSpecificKeyLinkage(args, originator) {
|
|
1202
|
-
this.checkAuthAndUnderlying(originator);
|
|
1203
|
-
return this.underlying.revealSpecificKeyLinkage(args, originator);
|
|
1204
|
-
}
|
|
1205
|
-
async encrypt(args, originator) {
|
|
1206
|
-
this.checkAuthAndUnderlying(originator);
|
|
1207
|
-
return this.underlying.encrypt(args, originator);
|
|
1208
|
-
}
|
|
1209
|
-
async decrypt(args, originator) {
|
|
1210
|
-
this.checkAuthAndUnderlying(originator);
|
|
1211
|
-
return this.underlying.decrypt(args, originator);
|
|
1212
|
-
}
|
|
1213
|
-
async createHmac(args, originator) {
|
|
1214
|
-
this.checkAuthAndUnderlying(originator);
|
|
1215
|
-
return this.underlying.createHmac(args, originator);
|
|
1216
|
-
}
|
|
1217
|
-
async verifyHmac(args, originator) {
|
|
1218
|
-
this.checkAuthAndUnderlying(originator);
|
|
1219
|
-
return this.underlying.verifyHmac(args, originator);
|
|
1220
|
-
}
|
|
1221
|
-
async createSignature(args, originator) {
|
|
1222
|
-
this.checkAuthAndUnderlying(originator);
|
|
1223
|
-
return this.underlying.createSignature(args, originator);
|
|
1224
|
-
}
|
|
1225
|
-
async verifySignature(args, originator) {
|
|
1226
|
-
this.checkAuthAndUnderlying(originator);
|
|
1227
|
-
return this.underlying.verifySignature(args, originator);
|
|
1228
|
-
}
|
|
1229
|
-
async createAction(args, originator) {
|
|
1230
|
-
this.checkAuthAndUnderlying(originator);
|
|
1231
|
-
return this.underlying.createAction(args, originator);
|
|
1232
|
-
}
|
|
1233
|
-
async signAction(args, originator) {
|
|
1234
|
-
this.checkAuthAndUnderlying(originator);
|
|
1235
|
-
return this.underlying.signAction(args, originator);
|
|
1236
|
-
}
|
|
1237
|
-
async abortAction(args, originator) {
|
|
1238
|
-
this.checkAuthAndUnderlying(originator);
|
|
1239
|
-
return this.underlying.abortAction(args, originator);
|
|
1240
|
-
}
|
|
1241
|
-
async listActions(args, originator) {
|
|
1242
|
-
this.checkAuthAndUnderlying(originator);
|
|
1243
|
-
return this.underlying.listActions(args, originator);
|
|
1244
|
-
}
|
|
1245
|
-
async internalizeAction(args, originator) {
|
|
1246
|
-
this.checkAuthAndUnderlying(originator);
|
|
1247
|
-
return this.underlying.internalizeAction(args, originator);
|
|
1248
|
-
}
|
|
1249
|
-
async listOutputs(args, originator) {
|
|
1250
|
-
this.checkAuthAndUnderlying(originator);
|
|
1251
|
-
return this.underlying.listOutputs(args, originator);
|
|
1252
|
-
}
|
|
1253
|
-
async relinquishOutput(args, originator) {
|
|
1254
|
-
this.checkAuthAndUnderlying(originator);
|
|
1255
|
-
return this.underlying.relinquishOutput(args, originator);
|
|
1256
|
-
}
|
|
1257
|
-
async acquireCertificate(args, originator) {
|
|
1258
|
-
this.checkAuthAndUnderlying(originator);
|
|
1259
|
-
return this.underlying.acquireCertificate(args, originator);
|
|
1260
|
-
}
|
|
1261
|
-
async listCertificates(args, originator) {
|
|
1262
|
-
this.checkAuthAndUnderlying(originator);
|
|
1263
|
-
return this.underlying.listCertificates(args, originator);
|
|
1264
|
-
}
|
|
1265
|
-
async proveCertificate(args, originator) {
|
|
1266
|
-
this.checkAuthAndUnderlying(originator);
|
|
1267
|
-
return this.underlying.proveCertificate(args, originator);
|
|
1268
|
-
}
|
|
1269
|
-
async relinquishCertificate(args, originator) {
|
|
1270
|
-
this.checkAuthAndUnderlying(originator);
|
|
1271
|
-
return this.underlying.relinquishCertificate(args, originator);
|
|
1272
|
-
}
|
|
1273
|
-
async discoverByIdentityKey(args, originator) {
|
|
1274
|
-
this.checkAuthAndUnderlying(originator);
|
|
1275
|
-
return this.underlying.discoverByIdentityKey(args, originator);
|
|
1276
|
-
}
|
|
1277
|
-
async discoverByAttributes(args, originator) {
|
|
1278
|
-
this.checkAuthAndUnderlying(originator);
|
|
1279
|
-
return this.underlying.discoverByAttributes(args, originator);
|
|
1280
|
-
}
|
|
1281
|
-
async isAuthenticated(_, originator) {
|
|
1282
|
-
if (!this.authenticated) {
|
|
1283
|
-
throw new Error('User is not authenticated.');
|
|
1284
|
-
}
|
|
1285
|
-
if (originator === this.adminOriginator) {
|
|
1286
|
-
throw new Error('External applications are not allowed to use the admin originator.');
|
|
1287
|
-
}
|
|
1288
|
-
return { authenticated: true };
|
|
1289
|
-
}
|
|
1290
|
-
async waitForAuthentication(_, originator) {
|
|
1291
|
-
if (originator === this.adminOriginator) {
|
|
1292
|
-
throw new Error('External applications are not allowed to use the admin originator.');
|
|
1293
|
-
}
|
|
1294
|
-
while (!this.authenticated || !this.underlying) {
|
|
1295
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
1296
|
-
}
|
|
1297
|
-
return await this.underlying.waitForAuthentication({}, originator);
|
|
1298
|
-
}
|
|
1299
|
-
async getHeight(_, originator) {
|
|
1300
|
-
this.checkAuthAndUnderlying(originator);
|
|
1301
|
-
return this.underlying.getHeight({}, originator);
|
|
1302
|
-
}
|
|
1303
|
-
async getHeaderForHeight(args, originator) {
|
|
1304
|
-
this.checkAuthAndUnderlying(originator);
|
|
1305
|
-
return this.underlying.getHeaderForHeight(args, originator);
|
|
1306
|
-
}
|
|
1307
|
-
async getNetwork(_, originator) {
|
|
1308
|
-
this.checkAuthAndUnderlying(originator);
|
|
1309
|
-
return this.underlying.getNetwork({}, originator);
|
|
1310
|
-
}
|
|
1311
|
-
async getVersion(_, originator) {
|
|
1312
|
-
this.checkAuthAndUnderlying(originator);
|
|
1313
|
-
return this.underlying.getVersion({}, originator);
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
exports.CWIStyleWalletManager = CWIStyleWalletManager;
|
|
1317
|
-
//# sourceMappingURL=CWIStyleWalletManager.js.map
|