@bsv/wallet-toolbox 2.1.10 → 2.1.12
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/CHANGELOG.md +11 -0
- package/docs/client.md +378 -124
- package/docs/setup.md +16 -4
- package/docs/wallet.md +378 -124
- package/out/src/CWIStyleWalletManager.d.ts +57 -5
- package/out/src/CWIStyleWalletManager.d.ts.map +1 -1
- package/out/src/CWIStyleWalletManager.js +282 -46
- package/out/src/CWIStyleWalletManager.js.map +1 -1
- package/out/src/Setup.d.ts +6 -1
- package/out/src/Setup.d.ts.map +1 -1
- package/out/src/Setup.js +2 -1
- package/out/src/Setup.js.map +1 -1
- package/out/src/SetupClient.d.ts +6 -1
- package/out/src/SetupClient.d.ts.map +1 -1
- package/out/src/SetupClient.js +2 -1
- package/out/src/SetupClient.js.map +1 -1
- package/out/src/WalletAuthenticationManager.d.ts +1 -1
- package/out/src/WalletAuthenticationManager.d.ts.map +1 -1
- package/out/src/WalletAuthenticationManager.js +41 -31
- package/out/src/WalletAuthenticationManager.js.map +1 -1
- package/out/src/__tests/CWIStyleWalletManager.test.js +219 -10
- package/out/src/__tests/CWIStyleWalletManager.test.js.map +1 -1
- package/out/src/fundWalletP2PKH.d.ts +48 -0
- package/out/src/fundWalletP2PKH.d.ts.map +1 -0
- package/out/src/fundWalletP2PKH.js +239 -0
- package/out/src/fundWalletP2PKH.js.map +1 -0
- package/package.json +2 -1
package/docs/client.md
CHANGED
|
@@ -6,27 +6,27 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
6
6
|
|
|
7
7
|
| | | |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| [AdminStatsResult](#interface-adminstatsresult) | [
|
|
10
|
-
| [ArcConfig](#interface-arcconfig) | [
|
|
11
|
-
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [
|
|
12
|
-
| [ArcSSEClientOptions](#interface-arcsseclientoptions) | [
|
|
13
|
-
| [ArcSSEEvent](#interface-arcsseevent) | [
|
|
14
|
-
| [AuthId](#interface-authid) | [
|
|
15
|
-
| [AuthPayload](#interface-authpayload) | [
|
|
16
|
-
| [BaseBlockHeader](#interface-baseblockheader) | [
|
|
17
|
-
| [BitailsConfig](#interface-bitailsconfig) | [
|
|
18
|
-
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [
|
|
19
|
-
| [BlockHeader](#interface-blockheader) | [
|
|
20
|
-
| [BsvExchangeRate](#interface-bsvexchangerate) | [
|
|
21
|
-
| [BulkFileDataManagerMergeResult](#interface-bulkfiledatamanagermergeresult) | [
|
|
22
|
-
| [BulkFileDataManagerOptions](#interface-bulkfiledatamanageroptions) | [
|
|
23
|
-
| [BulkHeaderFileInfo](#interface-bulkheaderfileinfo) | [
|
|
24
|
-
| [BulkHeaderFilesInfo](#interface-bulkheaderfilesinfo) | [
|
|
25
|
-
| [BulkIngestorApi](#interface-bulkingestorapi) | [
|
|
26
|
-
| [BulkIngestorBaseOptions](#interface-bulkingestorbaseoptions) | [
|
|
27
|
-
| [BulkIngestorCDNOptions](#interface-bulkingestorcdnoptions) | [
|
|
28
|
-
| [BulkIngestorWhatsOnChainOptions](#interface-bulkingestorwhatsonchainoptions) | [
|
|
29
|
-
| [BulkStorageApi](#interface-bulkstorageapi) | [
|
|
9
|
+
| [AdminStatsResult](#interface-adminstatsresult) | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [SetupWalletIdbArgs](#interface-setupwalletidbargs) |
|
|
10
|
+
| [ArcConfig](#interface-arcconfig) | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [SignActionResultX](#interface-signactionresultx) |
|
|
11
|
+
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StartAuthResponse](#interface-startauthresponse) |
|
|
12
|
+
| [ArcSSEClientOptions](#interface-arcsseclientoptions) | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StatusForTxidResult](#interface-statusfortxidresult) |
|
|
13
|
+
| [ArcSSEEvent](#interface-arcsseevent) | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageAdminStats](#interface-storageadminstats) |
|
|
14
|
+
| [AuthId](#interface-authid) | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageCreateActionResult](#interface-storagecreateactionresult) |
|
|
15
|
+
| [AuthPayload](#interface-authpayload) | [GetHeaderByteFileLinksResult](#interface-getheaderbytefilelinksresult) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) |
|
|
16
|
+
| [BaseBlockHeader](#interface-baseblockheader) | [GetMerklePathResult](#interface-getmerklepathresult) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) |
|
|
17
|
+
| [BitailsConfig](#interface-bitailsconfig) | [GetRawTxResult](#interface-getrawtxresult) | [StorageFeeModel](#interface-storagefeemodel) |
|
|
18
|
+
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) |
|
|
19
|
+
| [BlockHeader](#interface-blockheader) | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [StorageIdbOptions](#interface-storageidboptions) |
|
|
20
|
+
| [BsvExchangeRate](#interface-bsvexchangerate) | [GetScriptHashHistory](#interface-getscripthashhistory) | [StorageIdbSchema](#interface-storageidbschema) |
|
|
21
|
+
| [BulkFileDataManagerMergeResult](#interface-bulkfiledatamanagermergeresult) | [GetScriptHashHistoryResult](#interface-getscripthashhistoryresult) | [StorageIdentity](#interface-storageidentity) |
|
|
22
|
+
| [BulkFileDataManagerOptions](#interface-bulkfiledatamanageroptions) | [GetStatusForTxidsResult](#interface-getstatusfortxidsresult) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) |
|
|
23
|
+
| [BulkHeaderFileInfo](#interface-bulkheaderfileinfo) | [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [StorageProcessActionArgs](#interface-storageprocessactionargs) |
|
|
24
|
+
| [BulkHeaderFilesInfo](#interface-bulkheaderfilesinfo) | [GetUtxoStatusResult](#interface-getutxostatusresult) | [StorageProcessActionResults](#interface-storageprocessactionresults) |
|
|
25
|
+
| [BulkIngestorApi](#interface-bulkingestorapi) | [GroupedPermissionRequest](#interface-groupedpermissionrequest) | [StorageProvenOrReq](#interface-storageprovenorreq) |
|
|
26
|
+
| [BulkIngestorBaseOptions](#interface-bulkingestorbaseoptions) | [GroupedPermissions](#interface-groupedpermissions) | [StorageProviderOptions](#interface-storageprovideroptions) |
|
|
27
|
+
| [BulkIngestorCDNOptions](#interface-bulkingestorcdnoptions) | [HeightRangeApi](#interface-heightrangeapi) | [StorageReaderOptions](#interface-storagereaderoptions) |
|
|
28
|
+
| [BulkIngestorWhatsOnChainOptions](#interface-bulkingestorwhatsonchainoptions) | [HeightRanges](#interface-heightranges) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) |
|
|
29
|
+
| [BulkStorageApi](#interface-bulkstorageapi) | [KdfConfig](#interface-kdfconfig) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) |
|
|
30
30
|
| [BulkStorageBaseOptions](#interface-bulkstoragebaseoptions) | [KeyPair](#interface-keypair) | [SyncChunk](#interface-syncchunk) |
|
|
31
31
|
| [BulkSyncResult](#interface-bulksyncresult) | [KeyPairAddress](#interface-keypairaddress) | [SyncError](#interface-syncerror) |
|
|
32
32
|
| [CertOpsWallet](#interface-certopswallet) | [ListActionsSpecOp](#interface-listactionsspecop) | [SyncMap](#interface-syncmap) |
|
|
@@ -41,48 +41,49 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
41
41
|
| [ChaintracksIngestorParams](#interface-chaintracksingestorparams) | [MonitorOptions](#interface-monitoroptions) | [TableOutputTagMap](#interface-tableoutputtagmap) |
|
|
42
42
|
| [ChaintracksManagementApi](#interface-chaintracksmanagementapi) | [OutPoint](#interface-outpoint) | [TableOutputX](#interface-tableoutputx) |
|
|
43
43
|
| [ChaintracksOptions](#interface-chaintracksoptions) | [Paged](#interface-paged) | [TableProvenTx](#interface-tableproventx) |
|
|
44
|
-
| [ChaintracksPackageInfoApi](#interface-chaintrackspackageinfoapi) | [
|
|
45
|
-
| [ChaintracksReadableFileApi](#interface-chaintracksreadablefileapi) | [
|
|
46
|
-
| [ChaintracksServiceClientOptions](#interface-chaintracksserviceclientoptions) | [
|
|
47
|
-
| [ChaintracksStorageApi](#interface-chaintracksstorageapi) | [
|
|
48
|
-
| [ChaintracksStorageBaseOptions](#interface-chaintracksstoragebaseoptions) | [
|
|
49
|
-
| [ChaintracksStorageBulkFileApi](#interface-chaintracksstoragebulkfileapi) | [
|
|
50
|
-
| [ChaintracksStorageIdbOptions](#interface-chaintracksstorageidboptions) | [
|
|
51
|
-
| [ChaintracksStorageIdbSchema](#interface-chaintracksstorageidbschema) | [
|
|
52
|
-
| [ChaintracksStorageIngestApi](#interface-chaintracksstorageingestapi) | [
|
|
53
|
-
| [ChaintracksStorageNoDbOptions](#interface-chaintracksstoragenodboptions) | [
|
|
54
|
-
| [ChaintracksStorageQueryApi](#interface-chaintracksstoragequeryapi) | [
|
|
55
|
-
| [ChaintracksWritableFileApi](#interface-chaintrackswritablefileapi) | [
|
|
56
|
-
| [CommitNewTxResults](#interface-commitnewtxresults) | [
|
|
57
|
-
| [CompleteAuthResponse](#interface-completeauthresponse) | [
|
|
58
|
-
| [CounterpartyPermissionRequest](#interface-counterpartypermissionrequest) | [
|
|
59
|
-
| [CounterpartyPermissions](#interface-counterpartypermissions) | [
|
|
60
|
-
| [CreateActionResultX](#interface-createactionresultx) | [
|
|
61
|
-
| [DeactivedHeader](#interface-deactivedheader) | [
|
|
62
|
-
| [EntitySyncMap](#interface-entitysyncmap) | [
|
|
63
|
-
| [EntityTimeStamp](#interface-entitytimestamp) | [
|
|
64
|
-
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [
|
|
65
|
-
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [
|
|
66
|
-
| [FiatExchangeRates](#interface-fiatexchangerates) | [
|
|
67
|
-
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [
|
|
68
|
-
| [FindCertificatesArgs](#interface-findcertificatesargs) | [
|
|
69
|
-
| [FindCommissionsArgs](#interface-findcommissionsargs) | [
|
|
70
|
-
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [
|
|
71
|
-
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [
|
|
72
|
-
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [
|
|
73
|
-
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [
|
|
74
|
-
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [
|
|
75
|
-
| [FindOutputsArgs](#interface-findoutputsargs) | [
|
|
76
|
-
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [
|
|
44
|
+
| [ChaintracksPackageInfoApi](#interface-chaintrackspackageinfoapi) | [ParsedOutpoint](#interface-parsedoutpoint) | [TableProvenTxReq](#interface-tableproventxreq) |
|
|
45
|
+
| [ChaintracksReadableFileApi](#interface-chaintracksreadablefileapi) | [PendingSignAction](#interface-pendingsignaction) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
|
|
46
|
+
| [ChaintracksServiceClientOptions](#interface-chaintracksserviceclientoptions) | [PendingStorageInput](#interface-pendingstorageinput) | [TableSettings](#interface-tablesettings) |
|
|
47
|
+
| [ChaintracksStorageApi](#interface-chaintracksstorageapi) | [PermissionRequest](#interface-permissionrequest) | [TableSyncState](#interface-tablesyncstate) |
|
|
48
|
+
| [ChaintracksStorageBaseOptions](#interface-chaintracksstoragebaseoptions) | [PermissionToken](#interface-permissiontoken) | [TableTransaction](#interface-tabletransaction) |
|
|
49
|
+
| [ChaintracksStorageBulkFileApi](#interface-chaintracksstoragebulkfileapi) | [PermissionsManagerConfig](#interface-permissionsmanagerconfig) | [TableTxLabel](#interface-tabletxlabel) |
|
|
50
|
+
| [ChaintracksStorageIdbOptions](#interface-chaintracksstorageidboptions) | [PermissionsModule](#interface-permissionsmodule) | [TableTxLabelMap](#interface-tabletxlabelmap) |
|
|
51
|
+
| [ChaintracksStorageIdbSchema](#interface-chaintracksstorageidbschema) | [PostBeefResult](#interface-postbeefresult) | [TableUser](#interface-tableuser) |
|
|
52
|
+
| [ChaintracksStorageIngestApi](#interface-chaintracksstorageingestapi) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TaskPurgeParams](#interface-taskpurgeparams) |
|
|
53
|
+
| [ChaintracksStorageNoDbOptions](#interface-chaintracksstoragenodboptions) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TrustSettings](#interface-trustsettings) |
|
|
54
|
+
| [ChaintracksStorageQueryApi](#interface-chaintracksstoragequeryapi) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TrxToken](#interface-trxtoken) |
|
|
55
|
+
| [ChaintracksWritableFileApi](#interface-chaintrackswritablefileapi) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
|
|
56
|
+
| [CommitNewTxResults](#interface-commitnewtxresults) | [PostTxResultForTxidError](#interface-posttxresultfortxiderror) | [TxScriptOffsets](#interface-txscriptoffsets) |
|
|
57
|
+
| [CompleteAuthResponse](#interface-completeauthresponse) | [PostTxsResult](#interface-posttxsresult) | [UMPToken](#interface-umptoken) |
|
|
58
|
+
| [CounterpartyPermissionRequest](#interface-counterpartypermissionrequest) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [UMPTokenInteractor](#interface-umptokeninteractor) |
|
|
59
|
+
| [CounterpartyPermissions](#interface-counterpartypermissions) | [Profile](#interface-profile) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
|
|
60
|
+
| [CreateActionResultX](#interface-createactionresultx) | [ProvenOrRawTx](#interface-provenorrawtx) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
|
|
61
|
+
| [DeactivedHeader](#interface-deactivedheader) | [ProvenTransactionStatus](#interface-proventransactionstatus) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
|
|
62
|
+
| [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [VerifyAndRepairBeefResult](#interface-verifyandrepairbeefresult) |
|
|
63
|
+
| [EntityTimeStamp](#interface-entitytimestamp) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [WalletArgs](#interface-walletargs) |
|
|
64
|
+
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [WalletBalance](#interface-walletbalance) |
|
|
65
|
+
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [WalletLoggerArgs](#interface-walletloggerargs) |
|
|
66
|
+
| [FiatExchangeRates](#interface-fiatexchangerates) | [ProviderCallHistory](#interface-providercallhistory) | [WalletPermissionsManagerCallbacks](#interface-walletpermissionsmanagercallbacks) |
|
|
67
|
+
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [PurgeParams](#interface-purgeparams) | [WalletServices](#interface-walletservices) |
|
|
68
|
+
| [FindCertificatesArgs](#interface-findcertificatesargs) | [PurgeResults](#interface-purgeresults) | [WalletServicesOptions](#interface-walletservicesoptions) |
|
|
69
|
+
| [FindCommissionsArgs](#interface-findcommissionsargs) | [ReorgResult](#interface-reorgresult) | [WalletSettings](#interface-walletsettings) |
|
|
70
|
+
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [ReproveHeaderResult](#interface-reproveheaderresult) | [WalletSettingsManagerConfig](#interface-walletsettingsmanagerconfig) |
|
|
71
|
+
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [ReproveProvenResult](#interface-reproveprovenresult) | [WalletSigner](#interface-walletsigner) |
|
|
72
|
+
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [WalletStorage](#interface-walletstorage) |
|
|
73
|
+
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [ReviewActionResult](#interface-reviewactionresult) | [WalletStorageInfo](#interface-walletstorageinfo) |
|
|
74
|
+
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [ReviewHeightRangeResult](#interface-reviewheightrangeresult) | [WalletStorageProvider](#interface-walletstorageprovider) |
|
|
75
|
+
| [FindOutputsArgs](#interface-findoutputsargs) | [ScriptTemplateParamsBRC29](#interface-scripttemplateparamsbrc29) | [WalletStorageReader](#interface-walletstoragereader) |
|
|
76
|
+
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [WalletStorageSync](#interface-walletstoragesync) |
|
|
77
77
|
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageSyncReader](#interface-walletstoragesyncreader) |
|
|
78
|
-
| [FindProvenTxsArgs](#interface-findproventxsargs) | [
|
|
79
|
-
| [FindSincePagedArgs](#interface-findsincepagedargs) | [
|
|
80
|
-
| [FindStaleMerkleRootsArgs](#interface-findstalemerklerootsargs) | [
|
|
81
|
-
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [
|
|
82
|
-
| [FindTransactionsArgs](#interface-findtransactionsargs) | [
|
|
83
|
-
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [
|
|
84
|
-
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [
|
|
85
|
-
| [FindUsersArgs](#interface-findusersargs) | [
|
|
78
|
+
| [FindProvenTxsArgs](#interface-findproventxsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageWriter](#interface-walletstoragewriter) |
|
|
79
|
+
| [FindSincePagedArgs](#interface-findsincepagedargs) | [ServiceCallHistory](#interface-servicecallhistory) | [WalletTheme](#interface-wallettheme) |
|
|
80
|
+
| [FindStaleMerkleRootsArgs](#interface-findstalemerklerootsargs) | [ServiceCallHistoryCounts](#interface-servicecallhistorycounts) | [WhatsOnChainServicesOptions](#interface-whatsonchainservicesoptions) |
|
|
81
|
+
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [ServiceToCall](#interface-servicetocall) | [WocChainInfo](#interface-wocchaininfo) |
|
|
82
|
+
| [FindTransactionsArgs](#interface-findtransactionsargs) | [SetupClientWalletArgs](#interface-setupclientwalletargs) | [WocGetHeaderByteFileLinks](#interface-wocgetheaderbytefilelinks) |
|
|
83
|
+
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [SetupClientWalletClientArgs](#interface-setupclientwalletclientargs) | [WocGetHeadersHeader](#interface-wocgetheadersheader) |
|
|
84
|
+
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [SetupWallet](#interface-setupwallet) | [WocHeader](#interface-wocheader) |
|
|
85
|
+
| [FindUsersArgs](#interface-findusersargs) | [SetupWalletClient](#interface-setupwalletclient) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
86
|
+
| [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [SetupWalletIdb](#interface-setupwalletidb) | |
|
|
86
87
|
|
|
87
88
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
88
89
|
|
|
@@ -3500,6 +3501,63 @@ See also: [HeightRange](./services.md#class-heightrange)
|
|
|
3500
3501
|
|
|
3501
3502
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3502
3503
|
|
|
3504
|
+
---
|
|
3505
|
+
##### Interface: KdfConfig
|
|
3506
|
+
|
|
3507
|
+
Configuration options for KDF (Key Derivation Function) used in UMP tokens.
|
|
3508
|
+
|
|
3509
|
+
```ts
|
|
3510
|
+
export interface KdfConfig {
|
|
3511
|
+
algorithm?: "pbkdf2-sha512" | "argon2id";
|
|
3512
|
+
iterations?: number;
|
|
3513
|
+
memoryKiB?: number;
|
|
3514
|
+
parallelism?: number;
|
|
3515
|
+
hashLength?: number;
|
|
3516
|
+
}
|
|
3517
|
+
```
|
|
3518
|
+
|
|
3519
|
+
###### Property algorithm
|
|
3520
|
+
|
|
3521
|
+
Algorithm to use for new UMP tokens.
|
|
3522
|
+
|
|
3523
|
+
```ts
|
|
3524
|
+
algorithm?: "pbkdf2-sha512" | "argon2id"
|
|
3525
|
+
```
|
|
3526
|
+
|
|
3527
|
+
###### Property hashLength
|
|
3528
|
+
|
|
3529
|
+
Hash output length in bytes.
|
|
3530
|
+
|
|
3531
|
+
```ts
|
|
3532
|
+
hashLength?: number
|
|
3533
|
+
```
|
|
3534
|
+
|
|
3535
|
+
###### Property iterations
|
|
3536
|
+
|
|
3537
|
+
Number of iterations/rounds.
|
|
3538
|
+
|
|
3539
|
+
```ts
|
|
3540
|
+
iterations?: number
|
|
3541
|
+
```
|
|
3542
|
+
|
|
3543
|
+
###### Property memoryKiB
|
|
3544
|
+
|
|
3545
|
+
Memory size in KiB (Argon2id only).
|
|
3546
|
+
|
|
3547
|
+
```ts
|
|
3548
|
+
memoryKiB?: number
|
|
3549
|
+
```
|
|
3550
|
+
|
|
3551
|
+
###### Property parallelism
|
|
3552
|
+
|
|
3553
|
+
Degree of parallelism (Argon2id only).
|
|
3554
|
+
|
|
3555
|
+
```ts
|
|
3556
|
+
parallelism?: number
|
|
3557
|
+
```
|
|
3558
|
+
|
|
3559
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3560
|
+
|
|
3503
3561
|
---
|
|
3504
3562
|
##### Interface: KeyPair
|
|
3505
3563
|
|
|
@@ -3982,6 +4040,19 @@ export interface Paged {
|
|
|
3982
4040
|
|
|
3983
4041
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3984
4042
|
|
|
4043
|
+
---
|
|
4044
|
+
##### Interface: ParsedOutpoint
|
|
4045
|
+
|
|
4046
|
+
```ts
|
|
4047
|
+
export interface ParsedOutpoint {
|
|
4048
|
+
outpoint: string;
|
|
4049
|
+
txid: string;
|
|
4050
|
+
vout: number;
|
|
4051
|
+
}
|
|
4052
|
+
```
|
|
4053
|
+
|
|
4054
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4055
|
+
|
|
3985
4056
|
---
|
|
3986
4057
|
##### Interface: PendingSignAction
|
|
3987
4058
|
|
|
@@ -7223,6 +7294,14 @@ export interface UMPToken {
|
|
|
7223
7294
|
recoveryKeyEncrypted: number[];
|
|
7224
7295
|
passwordKeyEncrypted: number[];
|
|
7225
7296
|
profilesEncrypted?: number[];
|
|
7297
|
+
umpVersion?: number;
|
|
7298
|
+
passwordKdf?: {
|
|
7299
|
+
algorithm: "pbkdf2-sha512" | "argon2id";
|
|
7300
|
+
iterations: number;
|
|
7301
|
+
memoryKiB?: number;
|
|
7302
|
+
parallelism?: number;
|
|
7303
|
+
hashLength?: number;
|
|
7304
|
+
};
|
|
7226
7305
|
currentOutpoint?: OutpointString;
|
|
7227
7306
|
}
|
|
7228
7307
|
```
|
|
@@ -7235,6 +7314,21 @@ Describes the token's location on-chain, if it's already been published.
|
|
|
7235
7314
|
currentOutpoint?: OutpointString
|
|
7236
7315
|
```
|
|
7237
7316
|
|
|
7317
|
+
###### Property passwordKdf
|
|
7318
|
+
|
|
7319
|
+
Password-based key derivation function metadata.
|
|
7320
|
+
Present for UMP v3 tokens; absent for legacy tokens.
|
|
7321
|
+
|
|
7322
|
+
```ts
|
|
7323
|
+
passwordKdf?: {
|
|
7324
|
+
algorithm: "pbkdf2-sha512" | "argon2id";
|
|
7325
|
+
iterations: number;
|
|
7326
|
+
memoryKiB?: number;
|
|
7327
|
+
parallelism?: number;
|
|
7328
|
+
hashLength?: number;
|
|
7329
|
+
}
|
|
7330
|
+
```
|
|
7331
|
+
|
|
7238
7332
|
###### Property passwordKeyEncrypted
|
|
7239
7333
|
|
|
7240
7334
|
A copy of the password key encrypted with the root privileged key.
|
|
@@ -7332,6 +7426,14 @@ A copy of the recovery key encrypted with the root privileged key.
|
|
|
7332
7426
|
recoveryKeyEncrypted: number[]
|
|
7333
7427
|
```
|
|
7334
7428
|
|
|
7429
|
+
###### Property umpVersion
|
|
7430
|
+
|
|
7431
|
+
On-chain UMP protocol version (3 for tokens with KDF metadata).
|
|
7432
|
+
|
|
7433
|
+
```ts
|
|
7434
|
+
umpVersion?: number
|
|
7435
|
+
```
|
|
7436
|
+
|
|
7335
7437
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7336
7438
|
|
|
7337
7439
|
---
|
|
@@ -9385,7 +9487,7 @@ export class CWIStyleWalletManager implements WalletInterface {
|
|
|
9385
9487
|
authenticated: boolean;
|
|
9386
9488
|
authenticationMode: "presentation-key-and-password" | "presentation-key-and-recovery-key" | "recovery-key-and-password" = "presentation-key-and-password";
|
|
9387
9489
|
authenticationFlow: "new-user" | "existing-user" = "new-user";
|
|
9388
|
-
constructor(adminOriginator: OriginatorDomainNameStringUnder250Bytes, walletBuilder: (profilePrimaryKey: number[], profilePrivilegedKeyManager: PrivilegedKeyManager, profileId: number[]) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean) => Promise<string>, newWalletFunder?: (presentationKey: number[], wallet: WalletInterface, adminOriginator: OriginatorDomainNameStringUnder250Bytes) => Promise<void>, stateSnapshot?: number[])
|
|
9490
|
+
constructor(adminOriginator: OriginatorDomainNameStringUnder250Bytes, walletBuilder: (profilePrimaryKey: number[], profilePrivilegedKeyManager: PrivilegedKeyManager, profileId: number[]) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean | Promise<boolean>) => Promise<string>, newWalletFunder?: (presentationKey: number[], wallet: WalletInterface, adminOriginator: OriginatorDomainNameStringUnder250Bytes) => Promise<void>, stateSnapshot?: number[], kdfConfig?: KdfConfig)
|
|
9389
9491
|
async providePresentationKey(key: number[]): Promise<void>
|
|
9390
9492
|
async providePassword(password: string): Promise<void>
|
|
9391
9493
|
async provideRecoveryKey(recoveryKey: number[]): Promise<void>
|
|
@@ -9438,16 +9540,16 @@ export class CWIStyleWalletManager implements WalletInterface {
|
|
|
9438
9540
|
}
|
|
9439
9541
|
```
|
|
9440
9542
|
|
|
9441
|
-
See also: [OverlayUMPTokenInteractor](./client.md#class-overlayumptokeninteractor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [UMPTokenInteractor](./client.md#interface-umptokeninteractor), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
9543
|
+
See also: [KdfConfig](./client.md#interface-kdfconfig), [OverlayUMPTokenInteractor](./client.md#class-overlayumptokeninteractor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [UMPTokenInteractor](./client.md#interface-umptokeninteractor), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
9442
9544
|
|
|
9443
9545
|
###### Constructor
|
|
9444
9546
|
|
|
9445
9547
|
Constructs a new CWIStyleWalletManager.
|
|
9446
9548
|
|
|
9447
9549
|
```ts
|
|
9448
|
-
constructor(adminOriginator: OriginatorDomainNameStringUnder250Bytes, walletBuilder: (profilePrimaryKey: number[], profilePrivilegedKeyManager: PrivilegedKeyManager, profileId: number[]) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean) => Promise<string>, newWalletFunder?: (presentationKey: number[], wallet: WalletInterface, adminOriginator: OriginatorDomainNameStringUnder250Bytes) => Promise<void>, stateSnapshot?: number[])
|
|
9550
|
+
constructor(adminOriginator: OriginatorDomainNameStringUnder250Bytes, walletBuilder: (profilePrimaryKey: number[], profilePrivilegedKeyManager: PrivilegedKeyManager, profileId: number[]) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean | Promise<boolean>) => Promise<string>, newWalletFunder?: (presentationKey: number[], wallet: WalletInterface, adminOriginator: OriginatorDomainNameStringUnder250Bytes) => Promise<void>, stateSnapshot?: number[], kdfConfig?: KdfConfig)
|
|
9449
9551
|
```
|
|
9450
|
-
See also: [OverlayUMPTokenInteractor](./client.md#class-overlayumptokeninteractor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [UMPTokenInteractor](./client.md#interface-umptokeninteractor)
|
|
9552
|
+
See also: [KdfConfig](./client.md#interface-kdfconfig), [OverlayUMPTokenInteractor](./client.md#class-overlayumptokeninteractor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [UMPTokenInteractor](./client.md#interface-umptokeninteractor)
|
|
9451
9553
|
|
|
9452
9554
|
Argument Details
|
|
9453
9555
|
|
|
@@ -9465,6 +9567,8 @@ Argument Details
|
|
|
9465
9567
|
+ Optional function to fund a new wallet.
|
|
9466
9568
|
+ **stateSnapshot**
|
|
9467
9569
|
+ Optional previously saved state snapshot.
|
|
9570
|
+
+ **kdfConfig**
|
|
9571
|
+
+ Optional KDF configuration for new UMP tokens.
|
|
9468
9572
|
|
|
9469
9573
|
###### Property authenticated
|
|
9470
9574
|
|
|
@@ -12387,7 +12491,13 @@ export abstract class SetupClient {
|
|
|
12387
12491
|
}
|
|
12388
12492
|
return { cr, outpoints };
|
|
12389
12493
|
}
|
|
12390
|
-
static async fundWalletFromP2PKHOutpoints(wallet: WalletInterface, outpoints: string[], p2pkhKey: KeyPairAddress, inputBEEF?: BEEF) {
|
|
12494
|
+
static async fundWalletFromP2PKHOutpoints(wallet: WalletInterface, outpoints: string[], p2pkhKey: KeyPairAddress, inputBEEF?: BEEF): Promise<{
|
|
12495
|
+
outpoint: string;
|
|
12496
|
+
txid?: string;
|
|
12497
|
+
success: boolean;
|
|
12498
|
+
error?: string;
|
|
12499
|
+
}[]> {
|
|
12500
|
+
return _fundWalletFromP2PKHOutpoints(wallet, outpoints, p2pkhKey, SetupClient.getUnlockP2PKH.bind(SetupClient), inputBEEF);
|
|
12391
12501
|
}
|
|
12392
12502
|
static async createWalletIdb(args: SetupWalletIdbArgs): Promise<SetupWalletIdb> {
|
|
12393
12503
|
const wo = await SetupClient.createWallet(args);
|
|
@@ -12406,7 +12516,7 @@ export abstract class SetupClient {
|
|
|
12406
12516
|
}
|
|
12407
12517
|
```
|
|
12408
12518
|
|
|
12409
|
-
See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupClientWalletArgs](./setup.md#interface-setupclientwalletargs), [SetupClientWalletClientArgs](./setup.md#interface-setupclientwalletclientargs), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletIdb](./setup.md#interface-setupwalletidb), [SetupWalletIdbArgs](./setup.md#interface-setupwalletidbargs), [StorageClient](./storage.md#class-storageclient), [StorageIdb](./storage.md#class-storageidb), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction)
|
|
12519
|
+
See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupClientWalletArgs](./setup.md#interface-setupclientwalletargs), [SetupClientWalletClientArgs](./setup.md#interface-setupclientwalletclientargs), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletIdb](./setup.md#interface-setupwalletidb), [SetupWalletIdbArgs](./setup.md#interface-setupwalletidbargs), [StorageClient](./storage.md#class-storageclient), [StorageIdb](./storage.md#class-storageidb), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [fundWalletFromP2PKHOutpoints](./client.md#function-fundwalletfromp2pkhoutpoints)
|
|
12410
12520
|
|
|
12411
12521
|
###### Method createStorageIdb
|
|
12412
12522
|
|
|
@@ -15387,7 +15497,7 @@ with a WABClient for user authentication flows (e.g. Twilio phone).
|
|
|
15387
15497
|
|
|
15388
15498
|
```ts
|
|
15389
15499
|
export class WalletAuthenticationManager extends CWIStyleWalletManager {
|
|
15390
|
-
constructor(adminOriginator: string, walletBuilder: (primaryKey: number[], privilegedKeyManager: PrivilegedKeyManager) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean) => Promise<string>, wabClient: WABClient, authMethod?: AuthMethodInteractor, stateSnapshot?: number[])
|
|
15500
|
+
constructor(adminOriginator: string, walletBuilder: (primaryKey: number[], privilegedKeyManager: PrivilegedKeyManager) => Promise<WalletInterface>, interactor: UMPTokenInteractor = new OverlayUMPTokenInteractor(), recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean | Promise<boolean>) => Promise<string>, wabClient: WABClient, authMethod?: AuthMethodInteractor, stateSnapshot?: number[])
|
|
15391
15501
|
public setAuthMethod(method: AuthMethodInteractor)
|
|
15392
15502
|
public async startAuth(payload: any): Promise<void>
|
|
15393
15503
|
public async completeAuth(payload: any): Promise<void>
|
|
@@ -16683,54 +16793,57 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16683
16793
|
|
|
16684
16794
|
| | | |
|
|
16685
16795
|
| --- | --- | --- |
|
|
16686
|
-
| [WalletErrorFromJson](#function-walleterrorfromjson) | [
|
|
16687
|
-
| [WocHeadersBulkListener](#function-wocheadersbulklistener) | [
|
|
16688
|
-
| [WocHeadersBulkListener_test](#function-wocheadersbulklistener_test) | [
|
|
16689
|
-
| [WocHeadersLiveListener](#function-wocheaderslivelistener) | [
|
|
16690
|
-
| [WocHeadersLiveListener_test](#function-wocheaderslivelistener_test) | [
|
|
16691
|
-
| [acquireDirectCertificate](#function-acquiredirectcertificate) | [
|
|
16692
|
-
| [addWork](#function-addwork) | [
|
|
16693
|
-
| [arcDefaultUrl](#function-arcdefaulturl) | [
|
|
16694
|
-
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [
|
|
16695
|
-
| [arraysEqual](#function-arraysequal) | [
|
|
16696
|
-
| [asArray](#function-asarray) | [internalizeAction](#function-internalizeaction) | [
|
|
16697
|
-
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [internalizeAction](#function-internalizeaction) | [
|
|
16698
|
-
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [isBaseBlockHeader](#function-isbaseblockheader) | [
|
|
16699
|
-
| [asBsvSdkScript](#function-asbsvsdkscript) | [isBlockHeader](#function-isblockheader) | [
|
|
16700
|
-
| [asBsvSdkTx](#function-asbsvsdktx) | [isCreateActionSpecOp](#function-iscreateactionspecop) | [
|
|
16701
|
-
| [asString](#function-asstring) | [isKnownValidBulkHeaderFile](#function-isknownvalidbulkheaderfile) | [
|
|
16702
|
-
| [asUint8Array](#function-asuint8array) | [isListActionsSpecOp](#function-islistactionsspecop) | [
|
|
16703
|
-
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [isListOutputsSpecOp](#function-islistoutputsspecop) | [
|
|
16704
|
-
| [blockHash](#function-blockhash) | [isLive](#function-islive) | [
|
|
16705
|
-
| [
|
|
16706
|
-
| [
|
|
16707
|
-
| [
|
|
16708
|
-
| [
|
|
16709
|
-
| [
|
|
16710
|
-
| [
|
|
16711
|
-
| [
|
|
16712
|
-
| [
|
|
16713
|
-
| [
|
|
16714
|
-
| [
|
|
16715
|
-
| [
|
|
16716
|
-
| [
|
|
16717
|
-
| [createAction](#function-createaction) | [maxDate](#function-maxdate) | [
|
|
16718
|
-
| [
|
|
16719
|
-
| [
|
|
16720
|
-
| [
|
|
16721
|
-
| [
|
|
16722
|
-
| [
|
|
16723
|
-
| [
|
|
16796
|
+
| [WalletErrorFromJson](#function-walleterrorfromjson) | [genesisHeader](#function-genesisheader) | [selectBulkHeaderFiles](#function-selectbulkheaderfiles) |
|
|
16797
|
+
| [WocHeadersBulkListener](#function-wocheadersbulklistener) | [getBeefForTransaction](#function-getbeeffortransaction) | [serializeBaseBlockHeader](#function-serializebaseblockheader) |
|
|
16798
|
+
| [WocHeadersBulkListener_test](#function-wocheadersbulklistener_test) | [getBeefForTxid](#function-getbeeffortxid) | [serializeBaseBlockHeaders](#function-serializebaseblockheaders) |
|
|
16799
|
+
| [WocHeadersLiveListener](#function-wocheaderslivelistener) | [getExchangeRatesIo](#function-getexchangeratesio) | [setDisableDoubleSpendCheckForTest](#function-setdisabledoublespendcheckfortest) |
|
|
16800
|
+
| [WocHeadersLiveListener_test](#function-wocheaderslivelistener_test) | [getIdentityKey](#function-getidentitykey) | [sha256Hash](#function-sha256hash) |
|
|
16801
|
+
| [acquireDirectCertificate](#function-acquiredirectcertificate) | [getListOutputsSpecOp](#function-getlistoutputsspecop) | [sha256HashOfBinaryFile](#function-sha256hashofbinaryfile) |
|
|
16802
|
+
| [addWork](#function-addwork) | [getProofs](#function-getproofs) | [shareReqsWithWorld](#function-sharereqswithworld) |
|
|
16803
|
+
| [arcDefaultUrl](#function-arcdefaulturl) | [getSyncChunk](#function-getsyncchunk) | [signAction](#function-signaction) |
|
|
16804
|
+
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [getWhatsOnChainBlockHeaderByHash](#function-getwhatsonchainblockheaderbyhash) | [signAndComplete](#function-signandcomplete) |
|
|
16805
|
+
| [arraysEqual](#function-arraysequal) | [importSingleOutpoint](#function-importsingleoutpoint) | [stampLog](#function-stamplog) |
|
|
16806
|
+
| [asArray](#function-asarray) | [internalizeAction](#function-internalizeaction) | [stampLogFormat](#function-stamplogformat) |
|
|
16807
|
+
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [internalizeAction](#function-internalizeaction) | [subWork](#function-subwork) |
|
|
16808
|
+
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [isBaseBlockHeader](#function-isbaseblockheader) | [swapByteOrder](#function-swapbyteorder) |
|
|
16809
|
+
| [asBsvSdkScript](#function-asbsvsdkscript) | [isBlockHeader](#function-isblockheader) | [throwDummyReviewActions](#function-throwdummyreviewactions) |
|
|
16810
|
+
| [asBsvSdkTx](#function-asbsvsdktx) | [isCreateActionSpecOp](#function-iscreateactionspecop) | [toBinaryBaseBlockHeader](#function-tobinarybaseblockheader) |
|
|
16811
|
+
| [asString](#function-asstring) | [isKnownValidBulkHeaderFile](#function-isknownvalidbulkheaderfile) | [toLookupNetworkPreset](#function-tolookupnetworkpreset) |
|
|
16812
|
+
| [asUint8Array](#function-asuint8array) | [isListActionsSpecOp](#function-islistactionsspecop) | [toWalletNetwork](#function-towalletnetwork) |
|
|
16813
|
+
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [isListOutputsSpecOp](#function-islistoutputsspecop) | [transactionInputSize](#function-transactioninputsize) |
|
|
16814
|
+
| [blockHash](#function-blockhash) | [isLive](#function-islive) | [transactionOutputSize](#function-transactionoutputsize) |
|
|
16815
|
+
| [buildBeefForOutpoints](#function-buildbeefforoutpoints) | [isLiveBlockHeader](#function-isliveblockheader) | [transactionSize](#function-transactionsize) |
|
|
16816
|
+
| [buildChaintracksOptionsWithIngestors](#function-buildchaintracksoptionswithingestors) | [isMoreWork](#function-ismorework) | [updateChaintracksFiatExchangeRates](#function-updatechaintracksfiatexchangerates) |
|
|
16817
|
+
| [buildSignableTransaction](#function-buildsignabletransaction) | [keyOffsetToHashedSecret](#function-keyoffsettohashedsecret) | [updateExchangeratesapi](#function-updateexchangeratesapi) |
|
|
16818
|
+
| [completeSignedTransaction](#function-completesignedtransaction) | [listActionsIdb](#function-listactionsidb) | [validBulkHeaderFilesByFileHash](#function-validbulkheaderfilesbyfilehash) |
|
|
16819
|
+
| [computeMerklePath](#function-computemerklepath) | [listCertificates](#function-listcertificates) | [validateAgainstDirtyHashes](#function-validateagainstdirtyhashes) |
|
|
16820
|
+
| [computeMerkleRoot](#function-computemerkleroot) | [listOutputsIdb](#function-listoutputsidb) | [validateBufferOfHeaders](#function-validatebufferofheaders) |
|
|
16821
|
+
| [convertBitsToTarget](#function-convertbitstotarget) | [lockScriptWithKeyOffsetFromPubKey](#function-lockscriptwithkeyoffsetfrompubkey) | [validateBulkFileData](#function-validatebulkfiledata) |
|
|
16822
|
+
| [convertBitsToWork](#function-convertbitstowork) | [logCreateActionArgs](#function-logcreateactionargs) | [validateGenerateChangeSdkParams](#function-validategeneratechangesdkparams) |
|
|
16823
|
+
| [convertBufferToUint32](#function-convertbuffertouint32) | [logWalletError](#function-logwalleterror) | [validateGenerateChangeSdkResult](#function-validategeneratechangesdkresult) |
|
|
16824
|
+
| [convertProofToMerklePath](#function-convertprooftomerklepath) | [makeAtomicBeef](#function-makeatomicbeef) | [validateGenesisHeader](#function-validategenesisheader) |
|
|
16825
|
+
| [convertUint32ToBuffer](#function-convertuint32tobuffer) | [makeBrc114ActionTimeLabel](#function-makebrc114actiontimelabel) | [validateHeaderDifficulty](#function-validateheaderdifficulty) |
|
|
16826
|
+
| [convertWocToBlockHeaderHex](#function-convertwoctoblockheaderhex) | [makeChangeLock](#function-makechangelock) | [validateHeaderFormat](#function-validateheaderformat) |
|
|
16827
|
+
| [createAction](#function-createaction) | [maxDate](#function-maxdate) | [validateScriptHash](#function-validatescripthash) |
|
|
16828
|
+
| [createAction](#function-createaction) | [offsetPrivKey](#function-offsetprivkey) | [validateSecondsSinceEpoch](#function-validatesecondssinceepoch) |
|
|
16829
|
+
| [createCoinbaseTransaction](#function-createcoinbasetransaction) | [offsetPubKey](#function-offsetpubkey) | [validateStorageFeeModel](#function-validatestoragefeemodel) |
|
|
16830
|
+
| [createDefaultIdbChaintracksOptions](#function-createdefaultidbchaintracksoptions) | [optionalArraysEqual](#function-optionalarraysequal) | [varUintSize](#function-varuintsize) |
|
|
16831
|
+
| [createDefaultNoDbChaintracksOptions](#function-createdefaultnodbchaintracksoptions) | [parseBrc114ActionTimeLabels](#function-parsebrc114actiontimelabels) | [verifyHexString](#function-verifyhexstring) |
|
|
16832
|
+
| [createDefaultWalletServicesOptions](#function-createdefaultwalletservicesoptions) | [parseOutpoint](#function-parseoutpoint) | [verifyId](#function-verifyid) |
|
|
16833
|
+
| [createIdbChaintracks](#function-createidbchaintracks) | [parseTxAndAssertId](#function-parsetxandassertid) | [verifyInteger](#function-verifyinteger) |
|
|
16834
|
+
| [createNoDbChaintracks](#function-createnodbchaintracks) | [parseTxScriptOffsets](#function-parsetxscriptoffsets) | [verifyNumber](#function-verifynumber) |
|
|
16724
16835
|
| [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [processAction](#function-processaction) | [verifyOne](#function-verifyone) |
|
|
16725
|
-
| [createSyncMap](#function-createsyncmap) | [
|
|
16726
|
-
| [deserializeBaseBlockHeader](#function-deserializebaseblockheader) | [
|
|
16727
|
-
| [deserializeBaseBlockHeaders](#function-deserializebaseblockheaders) | [
|
|
16728
|
-
| [deserializeBlockHeader](#function-deserializeblockheader) | [
|
|
16729
|
-
| [deserializeBlockHeaders](#function-deserializeblockheaders) | [
|
|
16730
|
-
| [doubleSha256BE](#function-doublesha256be) | [
|
|
16731
|
-
| [doubleSha256LE](#function-doublesha256le) | [
|
|
16836
|
+
| [createSyncMap](#function-createsyncmap) | [processAction](#function-processaction) | [verifyOneOrNone](#function-verifyoneornone) |
|
|
16837
|
+
| [deserializeBaseBlockHeader](#function-deserializebaseblockheader) | [proveCertificate](#function-provecertificate) | [verifyOptionalHexString](#function-verifyoptionalhexstring) |
|
|
16838
|
+
| [deserializeBaseBlockHeaders](#function-deserializebaseblockheaders) | [purgeDataIdb](#function-purgedataidb) | [verifyP2PKHOwnership](#function-verifyp2pkhownership) |
|
|
16839
|
+
| [deserializeBlockHeader](#function-deserializeblockheader) | [randomBytes](#function-randombytes) | [verifyTruthy](#function-verifytruthy) |
|
|
16840
|
+
| [deserializeBlockHeaders](#function-deserializeblockheaders) | [randomBytesBase64](#function-randombytesbase64) | [verifyUnlockScripts](#function-verifyunlockscripts) |
|
|
16841
|
+
| [doubleSha256BE](#function-doublesha256be) | [randomBytesHex](#function-randombyteshex) | [wait](#function-wait) |
|
|
16842
|
+
| [doubleSha256LE](#function-doublesha256le) | [readUInt32BE](#function-readuint32be) | [wocGetHeadersHeaderToBlockHeader](#function-wocgetheadersheadertoblockheader) |
|
|
16843
|
+
| [fundWalletFromP2PKHOutpoints](#function-fundwalletfromp2pkhoutpoints) | [readUInt32LE](#function-readuint32le) | [workBNtoBuffer](#function-workbntobuffer) |
|
|
16732
16844
|
| [generateChangeSdk](#function-generatechangesdk) | [redeemServiceCharges](#function-redeemservicecharges) | [writeUInt32BE](#function-writeuint32be) |
|
|
16733
|
-
| [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [
|
|
16845
|
+
| [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [resolveAutoSigned](#function-resolveautosigned) | [writeUInt32LE](#function-writeuint32le) |
|
|
16846
|
+
| [genesisBuffer](#function-genesisbuffer) | [reviewStatusIdb](#function-reviewstatusidb) | |
|
|
16734
16847
|
|
|
16735
16848
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16736
16849
|
|
|
@@ -17118,6 +17231,23 @@ doule sha256 hash of header bytes reversed
|
|
|
17118
17231
|
|
|
17119
17232
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17120
17233
|
|
|
17234
|
+
---
|
|
17235
|
+
##### Function: buildBeefForOutpoints
|
|
17236
|
+
|
|
17237
|
+
Builds a valid BEEF for the given outpoints by recursively fetching
|
|
17238
|
+
parent transactions until all paths lead to confirmed ancestors
|
|
17239
|
+
with merkle proofs.
|
|
17240
|
+
|
|
17241
|
+
This solves the common case where legacy wallets (HandCash, ElectrumSV)
|
|
17242
|
+
create chains of unconfirmed transactions — standard BEEF construction
|
|
17243
|
+
fails because the proof chain is incomplete.
|
|
17244
|
+
|
|
17245
|
+
```ts
|
|
17246
|
+
export async function buildBeefForOutpoints(outpoints: string[], maxDepth = 10): Promise<BEEF>
|
|
17247
|
+
```
|
|
17248
|
+
|
|
17249
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17250
|
+
|
|
17121
17251
|
---
|
|
17122
17252
|
##### Function: buildChaintracksOptionsWithIngestors
|
|
17123
17253
|
|
|
@@ -17536,6 +17666,27 @@ Argument Details
|
|
|
17536
17666
|
|
|
17537
17667
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17538
17668
|
|
|
17669
|
+
---
|
|
17670
|
+
##### Function: fundWalletFromP2PKHOutpoints
|
|
17671
|
+
|
|
17672
|
+
Funds a BRC-100 wallet by importing P2PKH UTXOs.
|
|
17673
|
+
|
|
17674
|
+
Accepts outpoints + a P2PKH key pair, optionally with a pre-built BEEF.
|
|
17675
|
+
If no BEEF is provided, one is built via buildBeefForOutpoints.
|
|
17676
|
+
|
|
17677
|
+
```ts
|
|
17678
|
+
export async function fundWalletFromP2PKHOutpoints(wallet: WalletInterface, outpoints: string[], p2pkhKey: KeyPairAddress, getUnlockP2PKH: (priv: KeyPairAddress["privateKey"], satoshis: number) => ScriptTemplateUnlock, inputBEEF?: BEEF): Promise<{
|
|
17679
|
+
outpoint: string;
|
|
17680
|
+
txid?: string;
|
|
17681
|
+
success: boolean;
|
|
17682
|
+
error?: string;
|
|
17683
|
+
}[]>
|
|
17684
|
+
```
|
|
17685
|
+
|
|
17686
|
+
See also: [KeyPairAddress](./setup.md#interface-keypairaddress), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock)
|
|
17687
|
+
|
|
17688
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17689
|
+
|
|
17539
17690
|
---
|
|
17540
17691
|
##### Function: generateChangeSdk
|
|
17541
17692
|
|
|
@@ -17759,6 +17910,17 @@ See also: [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#
|
|
|
17759
17910
|
|
|
17760
17911
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17761
17912
|
|
|
17913
|
+
---
|
|
17914
|
+
##### Function: importSingleOutpoint
|
|
17915
|
+
|
|
17916
|
+
```ts
|
|
17917
|
+
export async function importSingleOutpoint(wallet: WalletInterface, beef: Beef, beefBin: BEEF, parsed: ParsedOutpoint, p2pkhKey: KeyPairAddress, getUnlockP2PKH: (priv: KeyPairAddress["privateKey"], satoshis: number) => ScriptTemplateUnlock): Promise<string>
|
|
17918
|
+
```
|
|
17919
|
+
|
|
17920
|
+
See also: [KeyPairAddress](./setup.md#interface-keypairaddress), [ParsedOutpoint](./client.md#interface-parsedoutpoint), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock)
|
|
17921
|
+
|
|
17922
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17923
|
+
|
|
17762
17924
|
---
|
|
17763
17925
|
##### Function: internalizeAction
|
|
17764
17926
|
|
|
@@ -18165,6 +18327,30 @@ See also: [ParsedBrc114ActionTimeLabels](./client.md#type-parsedbrc114actiontime
|
|
|
18165
18327
|
|
|
18166
18328
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18167
18329
|
|
|
18330
|
+
---
|
|
18331
|
+
##### Function: parseOutpoint
|
|
18332
|
+
|
|
18333
|
+
Strictly parse an outpoint string into txid and vout components.
|
|
18334
|
+
|
|
18335
|
+
```ts
|
|
18336
|
+
export function parseOutpoint(s: string): ParsedOutpoint
|
|
18337
|
+
```
|
|
18338
|
+
|
|
18339
|
+
See also: [ParsedOutpoint](./client.md#interface-parsedoutpoint)
|
|
18340
|
+
|
|
18341
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18342
|
+
|
|
18343
|
+
---
|
|
18344
|
+
##### Function: parseTxAndAssertId
|
|
18345
|
+
|
|
18346
|
+
Parse raw hex into a Transaction and assert its hash matches the expected txid.
|
|
18347
|
+
|
|
18348
|
+
```ts
|
|
18349
|
+
export function parseTxAndAssertId(rawHex: string, expectedTxid: string): Transaction
|
|
18350
|
+
```
|
|
18351
|
+
|
|
18352
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18353
|
+
|
|
18168
18354
|
---
|
|
18169
18355
|
##### Function: parseTxScriptOffsets
|
|
18170
18356
|
|
|
@@ -18288,6 +18474,15 @@ See also: [TableCommission](./storage.md#interface-tablecommission)
|
|
|
18288
18474
|
|
|
18289
18475
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18290
18476
|
|
|
18477
|
+
---
|
|
18478
|
+
##### Function: resolveAutoSigned
|
|
18479
|
+
|
|
18480
|
+
```ts
|
|
18481
|
+
export function resolveAutoSigned(car: CreateActionResult, txid: string, vout: number): string
|
|
18482
|
+
```
|
|
18483
|
+
|
|
18484
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18485
|
+
|
|
18291
18486
|
---
|
|
18292
18487
|
##### Function: reviewStatusIdb
|
|
18293
18488
|
|
|
@@ -18464,6 +18659,17 @@ See also: [AuthId](./client.md#interface-authid), [SignActionResultX](./client.m
|
|
|
18464
18659
|
|
|
18465
18660
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18466
18661
|
|
|
18662
|
+
---
|
|
18663
|
+
##### Function: signAndComplete
|
|
18664
|
+
|
|
18665
|
+
```ts
|
|
18666
|
+
export async function signAndComplete(wallet: WalletInterface, st: SignableTransaction, txid: string, vout: number, satoshis: number, p2pkhKey: KeyPairAddress, getUnlockP2PKH: (priv: KeyPairAddress["privateKey"], satoshis: number) => ScriptTemplateUnlock): Promise<string>
|
|
18667
|
+
```
|
|
18668
|
+
|
|
18669
|
+
See also: [KeyPairAddress](./setup.md#interface-keypairaddress), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock)
|
|
18670
|
+
|
|
18671
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18672
|
+
|
|
18467
18673
|
---
|
|
18468
18674
|
##### Function: stampLog
|
|
18469
18675
|
|
|
@@ -19013,6 +19219,17 @@ export function verifyOptionalHexString(v?: string | null): string | undefined
|
|
|
19013
19219
|
|
|
19014
19220
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19015
19221
|
|
|
19222
|
+
---
|
|
19223
|
+
##### Function: verifyP2PKHOwnership
|
|
19224
|
+
|
|
19225
|
+
Verify that a locking script is standard P2PKH and its hash160 matches the given public key.
|
|
19226
|
+
|
|
19227
|
+
```ts
|
|
19228
|
+
export function verifyP2PKHOwnership(lockingScript: LockingScript, publicKey: PublicKey): void
|
|
19229
|
+
```
|
|
19230
|
+
|
|
19231
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19232
|
+
|
|
19016
19233
|
---
|
|
19017
19234
|
##### Function: verifyTruthy
|
|
19018
19235
|
|
|
@@ -19615,20 +19832,57 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
19615
19832
|
|
|
19616
19833
|
| | | |
|
|
19617
19834
|
| --- | --- | --- |
|
|
19618
|
-
| [
|
|
19619
|
-
| [
|
|
19620
|
-
| [
|
|
19621
|
-
| [
|
|
19622
|
-
| [
|
|
19623
|
-
| [
|
|
19624
|
-
| [
|
|
19625
|
-
| [
|
|
19626
|
-
| [
|
|
19835
|
+
| [ARGON2ID_DEFAULT_HASH_LENGTH](#variable-argon2id_default_hash_length) | [aggregateActionResults](#variable-aggregateactionresults) | [specOpFailedActions](#variable-specopfailedactions) |
|
|
19836
|
+
| [ARGON2ID_DEFAULT_ITERATIONS](#variable-argon2id_default_iterations) | [brc29ProtocolID](#variable-brc29protocolid) | [specOpInvalidChange](#variable-specopinvalidchange) |
|
|
19837
|
+
| [ARGON2ID_DEFAULT_MEMORY_KIB](#variable-argon2id_default_memory_kib) | [dirtyHashes](#variable-dirtyhashes) | [specOpNoSendActions](#variable-specopnosendactions) |
|
|
19838
|
+
| [ARGON2ID_DEFAULT_PARALLELISM](#variable-argon2id_default_parallelism) | [getLabelToSpecOp](#variable-getlabeltospecop) | [specOpSetWalletChangeParams](#variable-specopsetwalletchangeparams) |
|
|
19839
|
+
| [DEFAULT_PROFILE_ID](#variable-default_profile_id) | [logger](#variable-logger) | [specOpThrowReviewActions](#variable-specopthrowreviewactions) |
|
|
19840
|
+
| [DEFAULT_SETTINGS](#variable-default_settings) | [maxChangeOutputsPerTransaction](#variable-maxchangeoutputspertransaction) | [specOpWalletBalance](#variable-specopwalletbalance) |
|
|
19841
|
+
| [PBKDF2_NUM_ROUNDS](#variable-pbkdf2_num_rounds) | [maxPossibleSatoshis](#variable-maxpossiblesatoshis) | [transactionColumnsWithoutRawTx](#variable-transactioncolumnswithoutrawtx) |
|
|
19842
|
+
| [ProvenTxReqNonTerminalStatus](#variable-proventxreqnonterminalstatus) | [outputColumnsWithoutLockingScript](#variable-outputcolumnswithoutlockingscript) | [transformVerifiableCertificatesWithTrust](#variable-transformverifiablecertificateswithtrust) |
|
|
19843
|
+
| [ProvenTxReqTerminalStatus](#variable-proventxreqterminalstatus) | [parseResults](#variable-parseresults) | [validBulkHeaderFiles](#variable-validbulkheaderfiles) |
|
|
19844
|
+
| [TESTNET_DEFAULT_SETTINGS](#variable-testnet_default_settings) | [queryOverlay](#variable-queryoverlay) | |
|
|
19845
|
+
|
|
19846
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19847
|
+
|
|
19848
|
+
---
|
|
19849
|
+
|
|
19850
|
+
##### Variable: ARGON2ID_DEFAULT_HASH_LENGTH
|
|
19851
|
+
|
|
19852
|
+
```ts
|
|
19853
|
+
ARGON2ID_DEFAULT_HASH_LENGTH = 32
|
|
19854
|
+
```
|
|
19627
19855
|
|
|
19628
19856
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19629
19857
|
|
|
19630
19858
|
---
|
|
19859
|
+
##### Variable: ARGON2ID_DEFAULT_ITERATIONS
|
|
19631
19860
|
|
|
19861
|
+
```ts
|
|
19862
|
+
ARGON2ID_DEFAULT_ITERATIONS = 7
|
|
19863
|
+
```
|
|
19864
|
+
|
|
19865
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19866
|
+
|
|
19867
|
+
---
|
|
19868
|
+
##### Variable: ARGON2ID_DEFAULT_MEMORY_KIB
|
|
19869
|
+
|
|
19870
|
+
```ts
|
|
19871
|
+
ARGON2ID_DEFAULT_MEMORY_KIB = 131072
|
|
19872
|
+
```
|
|
19873
|
+
|
|
19874
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19875
|
+
|
|
19876
|
+
---
|
|
19877
|
+
##### Variable: ARGON2ID_DEFAULT_PARALLELISM
|
|
19878
|
+
|
|
19879
|
+
```ts
|
|
19880
|
+
ARGON2ID_DEFAULT_PARALLELISM = 1
|
|
19881
|
+
```
|
|
19882
|
+
|
|
19883
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19884
|
+
|
|
19885
|
+
---
|
|
19632
19886
|
##### Variable: DEFAULT_PROFILE_ID
|
|
19633
19887
|
|
|
19634
19888
|
```ts
|