@bsv/wallet-toolbox 1.3.21 → 1.3.22
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/mobile/out/src/CWIStyleWalletManager.d.ts +437 -0
- package/mobile/out/src/CWIStyleWalletManager.d.ts.map +1 -0
- package/mobile/out/src/CWIStyleWalletManager.js +1255 -0
- package/mobile/out/src/CWIStyleWalletManager.js.map +1 -0
- package/mobile/out/src/SetupClient.d.ts +126 -0
- package/mobile/out/src/SetupClient.d.ts.map +1 -0
- package/mobile/out/src/SetupClient.js +220 -0
- package/mobile/out/src/SetupClient.js.map +1 -0
- package/mobile/out/src/SetupWallet.d.ts +100 -0
- package/mobile/out/src/SetupWallet.d.ts.map +1 -0
- package/mobile/out/src/SetupWallet.js +3 -0
- package/mobile/out/src/SetupWallet.js.map +1 -0
- package/mobile/out/src/SimpleWalletManager.d.ts +169 -0
- package/mobile/out/src/SimpleWalletManager.d.ts.map +1 -0
- package/mobile/out/src/SimpleWalletManager.js +315 -0
- package/mobile/out/src/SimpleWalletManager.js.map +1 -0
- package/mobile/out/src/Wallet.d.ts +177 -0
- package/mobile/out/src/Wallet.d.ts.map +1 -0
- package/mobile/out/src/Wallet.js +742 -0
- package/mobile/out/src/Wallet.js.map +1 -0
- package/mobile/out/src/WalletAuthenticationManager.d.ts +33 -0
- package/mobile/out/src/WalletAuthenticationManager.d.ts.map +1 -0
- package/mobile/out/src/WalletAuthenticationManager.js +113 -0
- package/mobile/out/src/WalletAuthenticationManager.js.map +1 -0
- package/mobile/out/src/WalletPermissionsManager.d.ts +598 -0
- package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -0
- package/mobile/out/src/WalletPermissionsManager.js +1868 -0
- package/mobile/out/src/WalletPermissionsManager.js.map +1 -0
- package/mobile/out/src/WalletSettingsManager.d.ts +52 -0
- package/mobile/out/src/WalletSettingsManager.d.ts.map +1 -0
- package/mobile/out/src/WalletSettingsManager.js +82 -0
- package/mobile/out/src/WalletSettingsManager.js.map +1 -0
- package/mobile/out/src/index.client.d.ts +19 -0
- package/mobile/out/src/index.client.d.ts.map +1 -0
- package/mobile/out/src/index.client.js +58 -0
- package/mobile/out/src/index.client.js.map +1 -0
- package/mobile/out/src/index.mobile.d.ts +19 -0
- package/mobile/out/src/index.mobile.d.ts.map +1 -0
- package/mobile/out/src/index.mobile.js +58 -0
- package/mobile/out/src/index.mobile.js.map +1 -0
- package/mobile/out/src/monitor/Monitor.d.ts +91 -0
- package/mobile/out/src/monitor/Monitor.d.ts.map +1 -0
- package/mobile/out/src/monitor/Monitor.js +298 -0
- package/mobile/out/src/monitor/Monitor.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts +53 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js +194 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts +33 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js +65 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts +14 -0
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskClock.js +27 -0
- package/mobile/out/src/monitor/tasks/TaskClock.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts +20 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js +52 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts +15 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js +43 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts +45 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.js +34 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts +26 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js +43 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts +35 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js +107 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +12 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js +22 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts +41 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.js +144 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.js.map +1 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts +40 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js +37 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -0
- package/mobile/out/src/sdk/CertOpsWallet.d.ts +7 -0
- package/mobile/out/src/sdk/CertOpsWallet.d.ts.map +1 -0
- package/mobile/out/src/sdk/CertOpsWallet.js +3 -0
- package/mobile/out/src/sdk/CertOpsWallet.js.map +1 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts +125 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.js +293 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.js.map +1 -0
- package/mobile/out/src/sdk/WERR_errors.d.ts +115 -0
- package/mobile/out/src/sdk/WERR_errors.d.ts.map +1 -0
- package/mobile/out/src/sdk/WERR_errors.js +158 -0
- package/mobile/out/src/sdk/WERR_errors.js.map +1 -0
- package/mobile/out/src/sdk/WalletError.d.ts +44 -0
- package/mobile/out/src/sdk/WalletError.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletError.js +118 -0
- package/mobile/out/src/sdk/WalletError.js.map +1 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +430 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts +10 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +452 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/index.d.ts +10 -0
- package/mobile/out/src/sdk/index.d.ts.map +1 -0
- package/mobile/out/src/sdk/index.js +26 -0
- package/mobile/out/src/sdk/index.js.map +1 -0
- package/mobile/out/src/sdk/types.d.ts +158 -0
- package/mobile/out/src/sdk/types.d.ts.map +1 -0
- package/mobile/out/src/sdk/types.js +90 -0
- package/mobile/out/src/sdk/types.js.map +1 -0
- package/mobile/out/src/sdk/validationHelpers.d.ts +301 -0
- package/mobile/out/src/sdk/validationHelpers.d.ts.map +1 -0
- package/mobile/out/src/sdk/validationHelpers.js +629 -0
- package/mobile/out/src/sdk/validationHelpers.js.map +1 -0
- package/mobile/out/src/services/ServiceCollection.d.ts +25 -0
- package/mobile/out/src/services/ServiceCollection.d.ts.map +1 -0
- package/mobile/out/src/services/ServiceCollection.js +43 -0
- package/mobile/out/src/services/ServiceCollection.js.map +1 -0
- package/mobile/out/src/services/Services.d.ts +67 -0
- package/mobile/out/src/services/Services.d.ts.map +1 -0
- package/mobile/out/src/services/Services.js +391 -0
- package/mobile/out/src/services/Services.js.map +1 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +15 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js +51 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts +98 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js +38 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +36 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +128 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts +3 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.js +19 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.js.map +1 -0
- package/mobile/out/src/services/chaintracker/index.d.ts +3 -0
- package/mobile/out/src/services/chaintracker/index.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/index.js +19 -0
- package/mobile/out/src/services/chaintracker/index.js.map +1 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts +4 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js +46 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js.map +1 -0
- package/mobile/out/src/services/index.d.ts +2 -0
- package/mobile/out/src/services/index.d.ts.map +1 -0
- package/mobile/out/src/services/index.js +18 -0
- package/mobile/out/src/services/index.js.map +1 -0
- package/mobile/out/src/services/providers/ARC.d.ts +91 -0
- package/mobile/out/src/services/providers/ARC.d.ts.map +1 -0
- package/mobile/out/src/services/providers/ARC.js +267 -0
- package/mobile/out/src/services/providers/ARC.js.map +1 -0
- package/mobile/out/src/services/providers/Bitails.d.ts +49 -0
- package/mobile/out/src/services/providers/Bitails.d.ts.map +1 -0
- package/mobile/out/src/services/providers/Bitails.js +222 -0
- package/mobile/out/src/services/providers/Bitails.js.map +1 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js +67 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts +71 -0
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
- package/mobile/out/src/services/providers/WhatsOnChain.js +582 -0
- package/mobile/out/src/services/providers/WhatsOnChain.js.map +1 -0
- package/mobile/out/src/services/providers/echangeRates.d.ts +12 -0
- package/mobile/out/src/services/providers/echangeRates.d.ts.map +1 -0
- package/mobile/out/src/services/providers/echangeRates.js +237 -0
- package/mobile/out/src/services/providers/echangeRates.js.map +1 -0
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts +4 -0
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +1 -0
- package/mobile/out/src/services/providers/getBeefForTxid.js +286 -0
- package/mobile/out/src/services/providers/getBeefForTxid.js.map +1 -0
- package/mobile/out/src/signer/WalletSigner.d.ts +11 -0
- package/mobile/out/src/signer/WalletSigner.d.ts.map +1 -0
- package/mobile/out/src/signer/WalletSigner.js +13 -0
- package/mobile/out/src/signer/WalletSigner.js.map +1 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +4 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js +45 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +1 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +10 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.js +126 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +1 -0
- package/mobile/out/src/signer/methods/createAction.d.ts +20 -0
- package/mobile/out/src/signer/methods/createAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/createAction.js +160 -0
- package/mobile/out/src/signer/methods/createAction.js.map +1 -0
- package/mobile/out/src/signer/methods/internalizeAction.d.ts +31 -0
- package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/internalizeAction.js +95 -0
- package/mobile/out/src/signer/methods/internalizeAction.js.map +1 -0
- package/mobile/out/src/signer/methods/proveCertificate.d.ts +4 -0
- package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/proveCertificate.js +29 -0
- package/mobile/out/src/signer/methods/proveCertificate.js.map +1 -0
- package/mobile/out/src/signer/methods/signAction.d.ts +13 -0
- package/mobile/out/src/signer/methods/signAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/signAction.js +89 -0
- package/mobile/out/src/signer/methods/signAction.js.map +1 -0
- package/mobile/out/src/storage/StorageIdb.d.ts +208 -0
- package/mobile/out/src/storage/StorageIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageIdb.js +2296 -0
- package/mobile/out/src/storage/StorageIdb.js.map +1 -0
- package/mobile/out/src/storage/StorageProvider.d.ts +209 -0
- package/mobile/out/src/storage/StorageProvider.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageProvider.js +550 -0
- package/mobile/out/src/storage/StorageProvider.js.map +1 -0
- package/mobile/out/src/storage/StorageReader.d.ts +76 -0
- package/mobile/out/src/storage/StorageReader.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageReader.js +129 -0
- package/mobile/out/src/storage/StorageReader.js.map +1 -0
- package/mobile/out/src/storage/StorageReaderWriter.d.ts +87 -0
- package/mobile/out/src/storage/StorageReaderWriter.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageReaderWriter.js +338 -0
- package/mobile/out/src/storage/StorageReaderWriter.js.map +1 -0
- package/mobile/out/src/storage/StorageSyncReader.d.ts +17 -0
- package/mobile/out/src/storage/StorageSyncReader.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageSyncReader.js +38 -0
- package/mobile/out/src/storage/StorageSyncReader.js.map +1 -0
- package/mobile/out/src/storage/WalletStorageManager.d.ts +184 -0
- package/mobile/out/src/storage/WalletStorageManager.d.ts.map +1 -0
- package/mobile/out/src/storage/WalletStorageManager.js +665 -0
- package/mobile/out/src/storage/WalletStorageManager.js.map +1 -0
- package/mobile/out/src/storage/index.client.d.ts +8 -0
- package/mobile/out/src/storage/index.client.d.ts.map +1 -0
- package/mobile/out/src/storage/index.client.js +24 -0
- package/mobile/out/src/storage/index.client.js.map +1 -0
- package/mobile/out/src/storage/index.mobile.d.ts +7 -0
- package/mobile/out/src/storage/index.mobile.d.ts.map +1 -0
- package/mobile/out/src/storage/index.mobile.js +23 -0
- package/mobile/out/src/storage/index.mobile.js.map +1 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +16 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js +40 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +1 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +26 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js +71 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +41 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +320 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -0
- package/mobile/out/src/storage/methods/createAction.d.ts +24 -0
- package/mobile/out/src/storage/methods/createAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/createAction.js +705 -0
- package/mobile/out/src/storage/methods/createAction.js.map +1 -0
- package/mobile/out/src/storage/methods/generateChange.d.ts +119 -0
- package/mobile/out/src/storage/methods/generateChange.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/generateChange.js +448 -0
- package/mobile/out/src/storage/methods/generateChange.js.map +1 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts +22 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.js +92 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.js.map +1 -0
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts +10 -0
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/getSyncChunk.js +271 -0
- package/mobile/out/src/storage/methods/getSyncChunk.js.map +1 -0
- package/mobile/out/src/storage/methods/internalizeAction.d.ts +38 -0
- package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/internalizeAction.js +371 -0
- package/mobile/out/src/storage/methods/internalizeAction.js.map +1 -0
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts +5 -0
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listActionsIdb.js +155 -0
- package/mobile/out/src/storage/methods/listActionsIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/listCertificates.d.ts +5 -0
- package/mobile/out/src/storage/methods/listCertificates.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listCertificates.js +68 -0
- package/mobile/out/src/storage/methods/listCertificates.js.map +1 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +5 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.js +181 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/processAction.d.ts +35 -0
- package/mobile/out/src/storage/methods/processAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/processAction.js +311 -0
- package/mobile/out/src/storage/methods/processAction.js.map +1 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts +4 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.js +9 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts +20 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.js +35 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.js.map +1 -0
- package/mobile/out/src/storage/remoting/StorageClient.d.ts +283 -0
- package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +1 -0
- package/mobile/out/src/storage/remoting/StorageClient.js +477 -0
- package/mobile/out/src/storage/remoting/StorageClient.js.map +1 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts +133 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.js +3 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts +105 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.js +100 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts +43 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js +162 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts +32 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js +111 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts +37 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.js +127 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.js +264 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts +35 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js +133 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts +31 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js +104 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +28 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js +97 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts +84 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js +276 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +135 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js +522 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js +319 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js +255 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts +31 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js +104 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +28 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js +97 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts +29 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.js +98 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts +33 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.js +62 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/index.d.ts +17 -0
- package/mobile/out/src/storage/schema/entities/index.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/index.js +33 -0
- package/mobile/out/src/storage/schema/entities/index.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts +20 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts +12 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts +13 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts +36 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.js +31 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts +12 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts +10 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts +14 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts +64 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts +17 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts +18 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts +37 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.js +21 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts +10 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts +16 -0
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableUser.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableUser.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/index.d.ts +17 -0
- package/mobile/out/src/storage/schema/tables/index.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/index.js +33 -0
- package/mobile/out/src/storage/schema/tables/index.js.map +1 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts +25 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.js +48 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
- package/mobile/out/src/utility/identityUtils.d.ts +31 -0
- package/mobile/out/src/utility/identityUtils.d.ts.map +1 -0
- package/mobile/out/src/utility/identityUtils.js +116 -0
- package/mobile/out/src/utility/identityUtils.js.map +1 -0
- package/mobile/out/src/utility/index.client.d.ts +7 -0
- package/mobile/out/src/utility/index.client.d.ts.map +1 -0
- package/mobile/out/src/utility/index.client.js +23 -0
- package/mobile/out/src/utility/index.client.js.map +1 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts +14 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.js +26 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.js.map +1 -0
- package/mobile/out/src/utility/stampLog.d.ts +18 -0
- package/mobile/out/src/utility/stampLog.d.ts.map +1 -0
- package/mobile/out/src/utility/stampLog.js +72 -0
- package/mobile/out/src/utility/stampLog.js.map +1 -0
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts +8 -0
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts.map +1 -0
- package/mobile/out/src/utility/tscProofToMerklePath.js +41 -0
- package/mobile/out/src/utility/tscProofToMerklePath.js.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.d.ts +129 -0
- package/mobile/out/src/utility/utilityHelpers.d.ts.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.js +266 -0
- package/mobile/out/src/utility/utilityHelpers.js.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts +9 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js +23 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js.map +1 -0
- package/mobile/out/src/wab-client/WABClient.d.ts +49 -0
- package/mobile/out/src/wab-client/WABClient.d.ts.map +1 -0
- package/mobile/out/src/wab-client/WABClient.js +80 -0
- package/mobile/out/src/wab-client/WABClient.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +34 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +7 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +36 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +28 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +69 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -0
- package/mobile/out/tsconfig.mobile.tsbuildinfo +1 -0
- package/mobile/package-lock.json +5 -12
- package/mobile/package.json +1 -1
- package/package.json +1 -1
- package/tsconfig.json +3 -0
- package/tsconfig.mobile.json +22 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableProvenTxReq.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableProvenTxReq.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB;IAChE,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAA;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,GAAG,CAAC,eAAe;IACnE,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAA;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableProvenTxReq.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableProvenTxReq.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sdk } from '../../../index.client';
|
|
2
|
+
export interface TableSettings extends sdk.StorageIdentity, sdk.EntityTimeStamp {
|
|
3
|
+
created_at: Date;
|
|
4
|
+
updated_at: Date;
|
|
5
|
+
/**
|
|
6
|
+
* The identity key (public key) assigned to this storage
|
|
7
|
+
*/
|
|
8
|
+
storageIdentityKey: string;
|
|
9
|
+
/**
|
|
10
|
+
* The human readable name assigned to this storage.
|
|
11
|
+
*/
|
|
12
|
+
storageName: string;
|
|
13
|
+
chain: sdk.Chain;
|
|
14
|
+
dbtype: 'SQLite' | 'MySQL' | 'IndexedDB';
|
|
15
|
+
maxOutputScript: number;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=TableSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,aAAc,SAAQ,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,eAAe;IAC7E,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAA;IAChB,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAA;IACxC,eAAe,EAAE,MAAM,CAAA;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSettings.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableSettings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { sdk } from '../../../index.client';
|
|
2
|
+
export interface TableSyncState extends sdk.EntityTimeStamp {
|
|
3
|
+
created_at: Date;
|
|
4
|
+
updated_at: Date;
|
|
5
|
+
syncStateId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
storageIdentityKey: string;
|
|
8
|
+
storageName: string;
|
|
9
|
+
status: sdk.SyncStatus;
|
|
10
|
+
init: boolean;
|
|
11
|
+
refNum: string;
|
|
12
|
+
syncMap: string;
|
|
13
|
+
when?: Date;
|
|
14
|
+
satoshis?: number;
|
|
15
|
+
errorLocal?: string;
|
|
16
|
+
errorOther?: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=TableSyncState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSyncState.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableSyncState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,cAAe,SAAQ,GAAG,CAAC,eAAe;IACzD,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,GAAG,CAAC,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSyncState.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableSyncState.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Base64String } from '@bsv/sdk';
|
|
2
|
+
import { sdk } from '../../../index.client';
|
|
3
|
+
export interface TableTransaction extends sdk.EntityTimeStamp {
|
|
4
|
+
created_at: Date;
|
|
5
|
+
updated_at: Date;
|
|
6
|
+
transactionId: number;
|
|
7
|
+
userId: number;
|
|
8
|
+
provenTxId?: number;
|
|
9
|
+
status: sdk.TransactionStatus;
|
|
10
|
+
/**
|
|
11
|
+
* max length of 64, hex encoded
|
|
12
|
+
*/
|
|
13
|
+
reference: Base64String;
|
|
14
|
+
/**
|
|
15
|
+
* true if transaction originated in this wallet, change returns to it.
|
|
16
|
+
* false for a transaction created externally and handed in to this wallet.
|
|
17
|
+
*/
|
|
18
|
+
isOutgoing: boolean;
|
|
19
|
+
satoshis: number;
|
|
20
|
+
description: string;
|
|
21
|
+
/**
|
|
22
|
+
* If not undefined, must match value in associated rawTransaction.
|
|
23
|
+
*/
|
|
24
|
+
version?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Optional. Default is zero.
|
|
27
|
+
* When the transaction can be processed into a block:
|
|
28
|
+
* >= 500,000,000 values are interpreted as minimum required unix time stamps in seconds
|
|
29
|
+
* < 500,000,000 values are interpreted as minimum required block height
|
|
30
|
+
*/
|
|
31
|
+
lockTime?: number;
|
|
32
|
+
txid?: string;
|
|
33
|
+
inputBEEF?: number[];
|
|
34
|
+
rawTx?: number[];
|
|
35
|
+
}
|
|
36
|
+
export declare const transactionColumnsWithoutRawTx: string[];
|
|
37
|
+
//# sourceMappingURL=TableTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTransaction.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,GAAG,CAAC,eAAe;IAC3D,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAA;IAC7B;;OAEG;IACH,SAAS,EAAE,YAAY,CAAA;IACvB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,eAAO,MAAM,8BAA8B,UAgB1C,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transactionColumnsWithoutRawTx = void 0;
|
|
4
|
+
exports.transactionColumnsWithoutRawTx = [
|
|
5
|
+
'created_at',
|
|
6
|
+
'updated_at',
|
|
7
|
+
'transactionId',
|
|
8
|
+
'userId',
|
|
9
|
+
'provenTxId',
|
|
10
|
+
'status',
|
|
11
|
+
'reference',
|
|
12
|
+
'isOutgoing',
|
|
13
|
+
'satoshis',
|
|
14
|
+
'version',
|
|
15
|
+
'lockTime',
|
|
16
|
+
'description',
|
|
17
|
+
'txid'
|
|
18
|
+
// 'inputBEEF',
|
|
19
|
+
// 'rawTx',
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=TableTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTransaction.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTransaction.ts"],"names":[],"mappings":";;;AAqCa,QAAA,8BAA8B,GAAG;IAC5C,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,UAAU;IACV,SAAS;IACT,UAAU;IACV,aAAa;IACb,MAAM;IACN,iBAAiB;IACjB,aAAa;CACd,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { sdk } from '../../../index.client';
|
|
2
|
+
export interface TableTxLabel extends sdk.EntityTimeStamp {
|
|
3
|
+
created_at: Date;
|
|
4
|
+
updated_at: Date;
|
|
5
|
+
txLabelId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
label: string;
|
|
8
|
+
isDeleted: boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=TableTxLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTxLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTxLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,YAAa,SAAQ,GAAG,CAAC,eAAe;IACvD,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTxLabel.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTxLabel.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { sdk } from '../../../index.client';
|
|
2
|
+
export interface TableTxLabelMap extends sdk.EntityTimeStamp {
|
|
3
|
+
created_at: Date;
|
|
4
|
+
updated_at: Date;
|
|
5
|
+
txLabelId: number;
|
|
6
|
+
transactionId: number;
|
|
7
|
+
isDeleted: boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=TableTxLabelMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTxLabelMap.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTxLabelMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,eAAgB,SAAQ,GAAG,CAAC,eAAe;IAC1D,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTxLabelMap.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableTxLabelMap.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { sdk } from '../../../index.client';
|
|
2
|
+
export interface TableUser extends sdk.EntityTimeStamp {
|
|
3
|
+
created_at: Date;
|
|
4
|
+
updated_at: Date;
|
|
5
|
+
userId: number;
|
|
6
|
+
/**
|
|
7
|
+
* PubKeyHex uniquely identifying user.
|
|
8
|
+
* Typically 66 hex digits.
|
|
9
|
+
*/
|
|
10
|
+
identityKey: string;
|
|
11
|
+
/**
|
|
12
|
+
* The storageIdentityKey value of the active wallet storage.
|
|
13
|
+
*/
|
|
14
|
+
activeStorage: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=TableUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableUser.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAE3C,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,eAAe;IACpD,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableUser.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/TableUser.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './TableSettings';
|
|
2
|
+
export * from './TableProvenTx';
|
|
3
|
+
export * from './TableProvenTxReq';
|
|
4
|
+
export * from './TableUser';
|
|
5
|
+
export * from './TableCertificate';
|
|
6
|
+
export * from './TableCertificateField';
|
|
7
|
+
export * from './TableOutputBasket';
|
|
8
|
+
export * from './TableTransaction';
|
|
9
|
+
export * from './TableCommission';
|
|
10
|
+
export * from './TableOutput';
|
|
11
|
+
export * from './TableOutputTag';
|
|
12
|
+
export * from './TableOutputTagMap';
|
|
13
|
+
export * from './TableTxLabel';
|
|
14
|
+
export * from './TableTxLabelMap';
|
|
15
|
+
export * from './TableMonitorEvent';
|
|
16
|
+
export * from './TableSyncState';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./TableSettings"), exports);
|
|
18
|
+
__exportStar(require("./TableProvenTx"), exports);
|
|
19
|
+
__exportStar(require("./TableProvenTxReq"), exports);
|
|
20
|
+
__exportStar(require("./TableUser"), exports);
|
|
21
|
+
__exportStar(require("./TableCertificate"), exports);
|
|
22
|
+
__exportStar(require("./TableCertificateField"), exports);
|
|
23
|
+
__exportStar(require("./TableOutputBasket"), exports);
|
|
24
|
+
__exportStar(require("./TableTransaction"), exports);
|
|
25
|
+
__exportStar(require("./TableCommission"), exports);
|
|
26
|
+
__exportStar(require("./TableOutput"), exports);
|
|
27
|
+
__exportStar(require("./TableOutputTag"), exports);
|
|
28
|
+
__exportStar(require("./TableOutputTagMap"), exports);
|
|
29
|
+
__exportStar(require("./TableTxLabel"), exports);
|
|
30
|
+
__exportStar(require("./TableTxLabelMap"), exports);
|
|
31
|
+
__exportStar(require("./TableMonitorEvent"), exports);
|
|
32
|
+
__exportStar(require("./TableSyncState"), exports);
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/tables/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,kDAA+B;AAC/B,qDAAkC;AAClC,8CAA2B;AAC3B,qDAAkC;AAClC,0DAAuC;AACvC,sDAAmC;AACnC,qDAAkC;AAClC,oDAAiC;AACjC,gDAA6B;AAC7B,mDAAgC;AAChC,sDAAmC;AACnC,iDAA8B;AAC9B,oDAAiC;AACjC,sDAAmC;AACnC,mDAAgC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HexString, KeyDeriverApi, WalletProtocol, ScriptTemplate, ScriptTemplateUnlock, LockingScript, P2PKH, PrivateKey, Script } from '@bsv/sdk';
|
|
2
|
+
export declare const brc29ProtocolID: WalletProtocol;
|
|
3
|
+
export interface ScriptTemplateParamsBRC29 {
|
|
4
|
+
derivationPrefix?: string;
|
|
5
|
+
derivationSuffix?: string;
|
|
6
|
+
keyDeriver: KeyDeriverApi;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Simple Authenticated BSV P2PKH Payment Protocol
|
|
10
|
+
* https://brc.dev/29
|
|
11
|
+
*/
|
|
12
|
+
export declare class ScriptTemplateBRC29 implements ScriptTemplate {
|
|
13
|
+
params: ScriptTemplateParamsBRC29;
|
|
14
|
+
p2pkh: P2PKH;
|
|
15
|
+
constructor(params: ScriptTemplateParamsBRC29);
|
|
16
|
+
getKeyID(): string;
|
|
17
|
+
getKeyDeriver(privKey: PrivateKey | HexString): KeyDeriverApi;
|
|
18
|
+
lock(lockerPrivKey: string, unlockerPubKey: string): LockingScript;
|
|
19
|
+
unlock(unlockerPrivKey: string, lockerPubKey: string, sourceSatoshis?: number, lockingScript?: Script): ScriptTemplateUnlock;
|
|
20
|
+
/**
|
|
21
|
+
* P2PKH unlock estimateLength is a constant
|
|
22
|
+
*/
|
|
23
|
+
unlockLength: number;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=ScriptTemplateBRC29.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptTemplateBRC29.d.ts","sourceRoot":"","sources":["../../../../src/utility/ScriptTemplateBRC29.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAET,aAAa,EACb,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,KAAK,EACL,UAAU,EACV,MAAM,EACP,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,eAAe,EAAE,cAAoC,CAAA;AAElE,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,aAAa,CAAA;CAC1B;AAED;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,cAAc;IAGrC,MAAM,EAAE,yBAAyB;IAFpD,KAAK,EAAE,KAAK,CAAA;gBAEO,MAAM,EAAE,yBAAyB;IAOpD,QAAQ;IAIR,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,aAAa;IAO7D,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,aAAa;IAQlE,MAAM,CACJ,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,MAAM,GACrB,oBAAoB;IAQvB;;OAEG;IACH,YAAY,SAAM;CACnB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScriptTemplateBRC29 = exports.brc29ProtocolID = void 0;
|
|
4
|
+
const index_client_1 = require("./index.client");
|
|
5
|
+
const sdk_1 = require("@bsv/sdk");
|
|
6
|
+
exports.brc29ProtocolID = [2, '3241645161d8'];
|
|
7
|
+
/**
|
|
8
|
+
* Simple Authenticated BSV P2PKH Payment Protocol
|
|
9
|
+
* https://brc.dev/29
|
|
10
|
+
*/
|
|
11
|
+
class ScriptTemplateBRC29 {
|
|
12
|
+
constructor(params) {
|
|
13
|
+
this.params = params;
|
|
14
|
+
/**
|
|
15
|
+
* P2PKH unlock estimateLength is a constant
|
|
16
|
+
*/
|
|
17
|
+
this.unlockLength = 108;
|
|
18
|
+
this.p2pkh = new sdk_1.P2PKH();
|
|
19
|
+
(0, index_client_1.verifyTruthy)(params.derivationPrefix);
|
|
20
|
+
(0, index_client_1.verifyTruthy)(params.derivationSuffix);
|
|
21
|
+
}
|
|
22
|
+
getKeyID() {
|
|
23
|
+
return `${this.params.derivationPrefix} ${this.params.derivationSuffix}`;
|
|
24
|
+
}
|
|
25
|
+
getKeyDeriver(privKey) {
|
|
26
|
+
if (typeof privKey === 'string')
|
|
27
|
+
privKey = sdk_1.PrivateKey.fromHex(privKey);
|
|
28
|
+
if (!this.params.keyDeriver || this.params.keyDeriver.rootKey.toHex() !== privKey.toHex())
|
|
29
|
+
return new sdk_1.KeyDeriver(privKey);
|
|
30
|
+
return this.params.keyDeriver;
|
|
31
|
+
}
|
|
32
|
+
lock(lockerPrivKey, unlockerPubKey) {
|
|
33
|
+
const address = this.getKeyDeriver(lockerPrivKey)
|
|
34
|
+
.derivePublicKey(exports.brc29ProtocolID, this.getKeyID(), unlockerPubKey, false)
|
|
35
|
+
.toAddress();
|
|
36
|
+
const r = this.p2pkh.lock(address);
|
|
37
|
+
return r;
|
|
38
|
+
}
|
|
39
|
+
unlock(unlockerPrivKey, lockerPubKey, sourceSatoshis, lockingScript) {
|
|
40
|
+
const derivedPrivateKey = this.getKeyDeriver(unlockerPrivKey)
|
|
41
|
+
.derivePrivateKey(exports.brc29ProtocolID, this.getKeyID(), lockerPubKey)
|
|
42
|
+
.toHex();
|
|
43
|
+
const r = this.p2pkh.unlock((0, index_client_1.asBsvSdkPrivateKey)(derivedPrivateKey), 'all', false, sourceSatoshis, lockingScript);
|
|
44
|
+
return r;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ScriptTemplateBRC29 = ScriptTemplateBRC29;
|
|
48
|
+
//# sourceMappingURL=ScriptTemplateBRC29.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptTemplateBRC29.js","sourceRoot":"","sources":["../../../../src/utility/ScriptTemplateBRC29.ts"],"names":[],"mappings":";;;AAAA,iDAAiE;AACjE,kCAWiB;AAEJ,QAAA,eAAe,GAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;AAQlE;;;GAGG;AACH,MAAa,mBAAmB;IAG9B,YAAmB,MAAiC;QAAjC,WAAM,GAAN,MAAM,CAA2B;QAuCpD;;WAEG;QACH,iBAAY,GAAG,GAAG,CAAA;QAzChB,IAAI,CAAC,KAAK,GAAG,IAAI,WAAK,EAAE,CAAA;QAExB,IAAA,2BAAY,EAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACrC,IAAA,2BAAY,EAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACvC,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAA;IAC1E,CAAC;IAED,aAAa,CAAC,OAA+B;QAC3C,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,GAAG,gBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QACtE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,OAAO,CAAC,KAAK,EAAE;YACvF,OAAO,IAAI,gBAAU,CAAC,OAAO,CAAC,CAAA;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAA;IAC/B,CAAC;IAED,IAAI,CAAC,aAAqB,EAAE,cAAsB;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC;aAC9C,eAAe,CAAC,uBAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,KAAK,CAAC;aACxE,SAAS,EAAE,CAAA;QACd,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAClC,OAAO,CAAC,CAAA;IACV,CAAC;IAED,MAAM,CACJ,eAAuB,EACvB,YAAoB,EACpB,cAAuB,EACvB,aAAsB;QAEtB,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC;aAC1D,gBAAgB,CAAC,uBAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,YAAY,CAAC;aAChE,KAAK,EAAE,CAAA;QACV,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAA,iCAAkB,EAAC,iBAAiB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,CAAC,CAAA;QAC/G,OAAO,CAAC,CAAA;IACV,CAAC;CAMF;AA9CD,kDA8CC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LookupAnswer, VerifiableCertificate, LookupResolver, DiscoverCertificatesResult, IdentityCertificate, IdentityCertifier, Base64String } from '@bsv/sdk';
|
|
2
|
+
import { TrustSettings } from '../WalletSettingsManager';
|
|
3
|
+
export interface ExtendedVerifiableCertificate extends IdentityCertificate {
|
|
4
|
+
certifierInfo: IdentityCertifier;
|
|
5
|
+
publiclyRevealedKeyring: Record<string, Base64String>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Transforms an array of VerifiableCertificate instances according to the trust settings.
|
|
9
|
+
* Only certificates whose grouped total trust meets the threshold are returned,
|
|
10
|
+
* and each certificate is augmented with a certifierInfo property.
|
|
11
|
+
*
|
|
12
|
+
* @param trustSettings - the user's trust settings including trustLevel and trusted certifiers.
|
|
13
|
+
* @param certificates - an array of VerifiableCertificate objects.
|
|
14
|
+
* @returns a DiscoverCertificatesResult with totalCertificates and ordered certificates.
|
|
15
|
+
*/
|
|
16
|
+
export declare const transformVerifiableCertificatesWithTrust: (trustSettings: TrustSettings, certificates: VerifiableCertificate[]) => DiscoverCertificatesResult;
|
|
17
|
+
/**
|
|
18
|
+
* Performs an identity overlay service lookup query and returns the parsed results
|
|
19
|
+
*
|
|
20
|
+
* @param query
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const queryOverlay: (query: unknown, resolver: LookupResolver) => Promise<VerifiableCertificate[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Internal func: Parse the returned UTXOs Decrypt and verify the certificates and signatures Return the set of identity keys, certificates and decrypted certificate fields
|
|
26
|
+
*
|
|
27
|
+
* @param {Output[]} outputs
|
|
28
|
+
* @returns {Promise<VerifiableCertificate[]>}
|
|
29
|
+
*/
|
|
30
|
+
export declare const parseResults: (lookupResult: LookupAnswer) => Promise<VerifiableCertificate[]>;
|
|
31
|
+
//# sourceMappingURL=identityUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identityUtils.d.ts","sourceRoot":"","sources":["../../../../src/utility/identityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGZ,qBAAqB,EAGrB,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAa,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAKnE,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB;IACxE,aAAa,EAAE,iBAAiB,CAAA;IAChC,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CACtD;AASD;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACnD,eAAe,aAAa,EAC5B,cAAc,qBAAqB,EAAE,KACpC,0BA0DF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAU,OAAO,OAAO,EAAE,UAAU,cAAc,KAAG,OAAO,CAAC,qBAAqB,EAAE,CAO5G,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAU,cAAc,YAAY,KAAG,OAAO,CAAC,qBAAqB,EAAE,CAmC9F,CAAA"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseResults = exports.queryOverlay = exports.transformVerifiableCertificatesWithTrust = void 0;
|
|
4
|
+
const sdk_1 = require("@bsv/sdk");
|
|
5
|
+
const OUTPUT_INDEX = 0;
|
|
6
|
+
/**
|
|
7
|
+
* Transforms an array of VerifiableCertificate instances according to the trust settings.
|
|
8
|
+
* Only certificates whose grouped total trust meets the threshold are returned,
|
|
9
|
+
* and each certificate is augmented with a certifierInfo property.
|
|
10
|
+
*
|
|
11
|
+
* @param trustSettings - the user's trust settings including trustLevel and trusted certifiers.
|
|
12
|
+
* @param certificates - an array of VerifiableCertificate objects.
|
|
13
|
+
* @returns a DiscoverCertificatesResult with totalCertificates and ordered certificates.
|
|
14
|
+
*/
|
|
15
|
+
const transformVerifiableCertificatesWithTrust = (trustSettings, certificates) => {
|
|
16
|
+
// Group certificates by subject while accumulating trust.
|
|
17
|
+
const identityGroups = {};
|
|
18
|
+
// Cache certifier lookups.
|
|
19
|
+
const certifierCache = {};
|
|
20
|
+
certificates.forEach(cert => {
|
|
21
|
+
const { subject, certifier } = cert;
|
|
22
|
+
if (!subject || !certifier)
|
|
23
|
+
return;
|
|
24
|
+
// Lookup and cache certifier details from trustSettings.
|
|
25
|
+
if (!certifierCache[certifier]) {
|
|
26
|
+
const found = trustSettings.trustedCertifiers.find(x => x.identityKey === certifier);
|
|
27
|
+
if (!found)
|
|
28
|
+
return; // Skip this certificate if its certifier is not trusted.
|
|
29
|
+
certifierCache[certifier] = found;
|
|
30
|
+
}
|
|
31
|
+
// Create the IdentityCertifier object that we want to attach.
|
|
32
|
+
const certifierInfo = {
|
|
33
|
+
name: certifierCache[certifier].name,
|
|
34
|
+
iconUrl: certifierCache[certifier].iconUrl || '',
|
|
35
|
+
description: certifierCache[certifier].description,
|
|
36
|
+
trust: certifierCache[certifier].trust
|
|
37
|
+
};
|
|
38
|
+
// Create an extended certificate that includes certifierInfo.
|
|
39
|
+
// Note: We use object spread to copy over all properties from the original certificate.
|
|
40
|
+
const extendedCert = {
|
|
41
|
+
...cert,
|
|
42
|
+
signature: cert.signature, // We know it exists at this point
|
|
43
|
+
decryptedFields: cert.decryptedFields,
|
|
44
|
+
publiclyRevealedKeyring: cert.keyring,
|
|
45
|
+
certifierInfo
|
|
46
|
+
};
|
|
47
|
+
// Group certificates by subject.
|
|
48
|
+
if (!identityGroups[subject]) {
|
|
49
|
+
identityGroups[subject] = { totalTrust: 0, members: [] };
|
|
50
|
+
}
|
|
51
|
+
identityGroups[subject].totalTrust += certifierInfo.trust;
|
|
52
|
+
identityGroups[subject].members.push(extendedCert);
|
|
53
|
+
});
|
|
54
|
+
// Filter out groups that do not meet the trust threshold and flatten the results.
|
|
55
|
+
const finalResults = [];
|
|
56
|
+
Object.values(identityGroups).forEach(group => {
|
|
57
|
+
if (group.totalTrust >= trustSettings.trustLevel) {
|
|
58
|
+
finalResults.push(...group.members);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
// Sort the certificates by their certifier trust in descending order.
|
|
62
|
+
finalResults.sort((a, b) => b.certifierInfo.trust - a.certifierInfo.trust);
|
|
63
|
+
return {
|
|
64
|
+
totalCertificates: finalResults.length,
|
|
65
|
+
certificates: finalResults
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
exports.transformVerifiableCertificatesWithTrust = transformVerifiableCertificatesWithTrust;
|
|
69
|
+
/**
|
|
70
|
+
* Performs an identity overlay service lookup query and returns the parsed results
|
|
71
|
+
*
|
|
72
|
+
* @param query
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
const queryOverlay = async (query, resolver) => {
|
|
76
|
+
const results = await resolver.query({
|
|
77
|
+
service: 'ls_identity',
|
|
78
|
+
query
|
|
79
|
+
});
|
|
80
|
+
return await (0, exports.parseResults)(results);
|
|
81
|
+
};
|
|
82
|
+
exports.queryOverlay = queryOverlay;
|
|
83
|
+
/**
|
|
84
|
+
* Internal func: Parse the returned UTXOs Decrypt and verify the certificates and signatures Return the set of identity keys, certificates and decrypted certificate fields
|
|
85
|
+
*
|
|
86
|
+
* @param {Output[]} outputs
|
|
87
|
+
* @returns {Promise<VerifiableCertificate[]>}
|
|
88
|
+
*/
|
|
89
|
+
const parseResults = async (lookupResult) => {
|
|
90
|
+
if (lookupResult.type === 'output-list') {
|
|
91
|
+
const parsedResults = [];
|
|
92
|
+
for (const output of lookupResult.outputs) {
|
|
93
|
+
try {
|
|
94
|
+
const tx = sdk_1.Transaction.fromBEEF(output.beef);
|
|
95
|
+
// Decode the Identity token fields from the Bitcoin outputScript
|
|
96
|
+
const decodedOutput = sdk_1.PushDrop.decode(tx.outputs[output.outputIndex].lockingScript);
|
|
97
|
+
// Parse out the certificate and relevant data
|
|
98
|
+
const certificate = JSON.parse(sdk_1.Utils.toUTF8(decodedOutput.fields[0])); // TEST
|
|
99
|
+
const verifiableCert = new sdk_1.VerifiableCertificate(certificate.type, certificate.serialNumber, certificate.subject, certificate.certifier, certificate.revocationOutpoint, certificate.fields, certificate.keyring, certificate.signature);
|
|
100
|
+
const decryptedFields = await verifiableCert.decryptFields(new sdk_1.ProtoWallet('anyone'));
|
|
101
|
+
// Verify the certificate signature is correct
|
|
102
|
+
await verifiableCert.verify();
|
|
103
|
+
verifiableCert.decryptedFields = decryptedFields;
|
|
104
|
+
parsedResults.push(verifiableCert);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
console.error(error);
|
|
108
|
+
// do nothing
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return parsedResults;
|
|
112
|
+
}
|
|
113
|
+
return [];
|
|
114
|
+
};
|
|
115
|
+
exports.parseResults = parseResults;
|
|
116
|
+
//# sourceMappingURL=identityUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identityUtils.js","sourceRoot":"","sources":["../../../../src/utility/identityUtils.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './stampLog';
|
|
2
|
+
export * from './ScriptTemplateBRC29';
|
|
3
|
+
export * from './parseTxScriptOffsets';
|
|
4
|
+
export * from './tscProofToMerklePath';
|
|
5
|
+
export * from './utilityHelpers';
|
|
6
|
+
export * from './utilityHelpers.noBuffer';
|
|
7
|
+
//# sourceMappingURL=index.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../../src/utility/index.client.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./stampLog"), exports);
|
|
18
|
+
__exportStar(require("./ScriptTemplateBRC29"), exports);
|
|
19
|
+
__exportStar(require("./parseTxScriptOffsets"), exports);
|
|
20
|
+
__exportStar(require("./tscProofToMerklePath"), exports);
|
|
21
|
+
__exportStar(require("./utilityHelpers"), exports);
|
|
22
|
+
__exportStar(require("./utilityHelpers.noBuffer"), exports);
|
|
23
|
+
//# sourceMappingURL=index.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.client.js","sourceRoot":"","sources":["../../../../src/utility/index.client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,wDAAqC;AACrC,yDAAsC;AACtC,yDAAsC;AACtC,mDAAgC;AAEhC,4DAAyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface TxScriptOffsets {
|
|
2
|
+
inputs: {
|
|
3
|
+
vin: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
length: number;
|
|
6
|
+
}[];
|
|
7
|
+
outputs: {
|
|
8
|
+
vout: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
length: number;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export declare function parseTxScriptOffsets(rawTx: number[]): TxScriptOffsets;
|
|
14
|
+
//# sourceMappingURL=parseTxScriptOffsets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseTxScriptOffsets.d.ts","sourceRoot":"","sources":["../../../../src/utility/parseTxScriptOffsets.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzD,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC5D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,eAAe,CAqBrE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseTxScriptOffsets = parseTxScriptOffsets;
|
|
4
|
+
const sdk_1 = require("@bsv/sdk");
|
|
5
|
+
function parseTxScriptOffsets(rawTx) {
|
|
6
|
+
const br = new sdk_1.Utils.Reader(rawTx);
|
|
7
|
+
const inputs = [];
|
|
8
|
+
const outputs = [];
|
|
9
|
+
br.pos += 4; // version
|
|
10
|
+
const inputsLength = br.readVarIntNum();
|
|
11
|
+
for (let i = 0; i < inputsLength; i++) {
|
|
12
|
+
br.pos += 36; // txid and vout
|
|
13
|
+
const scriptLength = br.readVarIntNum();
|
|
14
|
+
inputs.push({ vin: i, offset: br.pos, length: scriptLength });
|
|
15
|
+
br.pos += scriptLength + 4; // script and sequence
|
|
16
|
+
}
|
|
17
|
+
const outputsLength = br.readVarIntNum();
|
|
18
|
+
for (let i = 0; i < outputsLength; i++) {
|
|
19
|
+
br.pos += 8; // satoshis
|
|
20
|
+
const scriptLength = br.readVarIntNum();
|
|
21
|
+
outputs.push({ vout: i, offset: br.pos, length: scriptLength });
|
|
22
|
+
br.pos += scriptLength;
|
|
23
|
+
}
|
|
24
|
+
return { inputs, outputs };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=parseTxScriptOffsets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseTxScriptOffsets.js","sourceRoot":"","sources":["../../../../src/utility/parseTxScriptOffsets.ts"],"names":[],"mappings":";;AAOA,oDAqBC;AA5BD,kCAA4C;AAO5C,SAAgB,oBAAoB,CAAC,KAAe;IAClD,MAAM,EAAE,GAAG,IAAI,WAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACrC,MAAM,MAAM,GAAsD,EAAE,CAAA;IACpE,MAAM,OAAO,GAAuD,EAAE,CAAA;IAEtE,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA,CAAC,UAAU;IACtB,MAAM,YAAY,GAAG,EAAE,CAAC,aAAa,EAAE,CAAA;IACvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAA,CAAC,gBAAgB;QAC7B,MAAM,YAAY,GAAG,EAAE,CAAC,aAAa,EAAE,CAAA;QACvC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAA;QAC7D,EAAE,CAAC,GAAG,IAAI,YAAY,GAAG,CAAC,CAAA,CAAC,sBAAsB;IACnD,CAAC;IACD,MAAM,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,CAAA;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA,CAAC,WAAW;QACvB,MAAM,YAAY,GAAG,EAAE,CAAC,aAAa,EAAE,CAAA;QACvC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAA;QAC/D,EAAE,CAAC,GAAG,IAAI,YAAY,CAAA;IACxB,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;AAC5B,CAAC"}
|