@bsv/sdk 1.3.16 → 1.3.19

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/docs/auth.md CHANGED
@@ -129,10 +129,6 @@ export class AuthFetch {
129
129
 
130
130
  See also: [RequestedCertificateSet](./auth.md#interface-requestedcertificateset), [SessionManager](./auth.md#class-sessionmanager), [VerifiableCertificate](./auth.md#class-verifiablecertificate), [WalletInterface](./wallet.md#interface-walletinterface)
131
131
 
132
- <details>
133
-
134
- <summary>Class AuthFetch Details</summary>
135
-
136
132
  #### Constructor
137
133
 
138
134
  Constructs a new AuthFetch instance.
@@ -194,8 +190,6 @@ async sendCertificateRequest(baseUrl: string, certificatesToRequest: RequestedCe
194
190
  ```
195
191
  See also: [RequestedCertificateSet](./auth.md#interface-requestedcertificateset), [VerifiableCertificate](./auth.md#class-verifiablecertificate)
196
192
 
197
- </details>
198
-
199
193
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
200
194
 
201
195
  ---
@@ -228,10 +222,6 @@ export default class Certificate {
228
222
 
229
223
  See also: [Base64String](./wallet.md#type-base64string), [CertificateFieldNameUnder50Bytes](./wallet.md#type-certificatefieldnameunder50bytes), [HexString](./wallet.md#type-hexstring), [OutpointString](./wallet.md#type-outpointstring), [ProtoWallet](./wallet.md#class-protowallet), [PubKeyHex](./wallet.md#type-pubkeyhex), [WalletProtocol](./wallet.md#type-walletprotocol), [sign](./compat.md#variable-sign), [verify](./compat.md#variable-verify)
230
224
 
231
- <details>
232
-
233
- <summary>Class Certificate Details</summary>
234
-
235
225
  #### Constructor
236
226
 
237
227
  Constructs a new Certificate.
@@ -407,8 +397,6 @@ Returns
407
397
 
408
398
  - A promise that resolves to true if the signature is valid.
409
399
 
410
- </details>
411
-
412
400
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
413
401
 
414
402
  ---
@@ -483,10 +471,6 @@ export class MasterCertificate extends Certificate {
483
471
 
484
472
  See also: [Base64String](./wallet.md#type-base64string), [Certificate](./auth.md#class-certificate), [CertificateFieldNameUnder50Bytes](./wallet.md#type-certificatefieldnameunder50bytes), [HexString](./wallet.md#type-hexstring), [OutpointString](./wallet.md#type-outpointstring), [ProtoWallet](./wallet.md#class-protowallet), [PubKeyHex](./wallet.md#type-pubkeyhex), [WalletCounterparty](./wallet.md#type-walletcounterparty)
485
473
 
486
- <details>
487
-
488
- <summary>Class MasterCertificate Details</summary>
489
-
490
474
  #### Method createCertificateFields
491
475
 
492
476
  Encrypts certificate fields for a subject and generates a master keyring.
@@ -624,8 +608,6 @@ Throws
624
608
 
625
609
  Throws an error if any operation (e.g., encryption, signing) fails during certificate issuance.
626
610
 
627
- </details>
628
-
629
611
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
630
612
 
631
613
  ---
@@ -656,10 +638,6 @@ export class Peer {
656
638
 
657
639
  See also: [AuthMessage](./auth.md#interface-authmessage), [PeerSession](./auth.md#interface-peersession), [RequestedCertificateSet](./auth.md#interface-requestedcertificateset), [SessionManager](./auth.md#class-sessionmanager), [Transport](./auth.md#interface-transport), [VerifiableCertificate](./auth.md#class-verifiablecertificate), [WalletInterface](./wallet.md#interface-walletinterface)
658
640
 
659
- <details>
660
-
661
- <summary>Class Peer Details</summary>
662
-
663
641
  #### Constructor
664
642
 
665
643
  Creates a new Peer instance
@@ -886,8 +864,6 @@ Throws
886
864
 
887
865
  Will throw an error if the message fails to send.
888
866
 
889
- </details>
890
-
891
867
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
892
868
 
893
869
  ---
@@ -909,10 +885,6 @@ export class SessionManager {
909
885
 
910
886
  See also: [PeerSession](./auth.md#interface-peersession)
911
887
 
912
- <details>
913
-
914
- <summary>Class SessionManager Details</summary>
915
-
916
888
  #### Method addSession
917
889
 
918
890
  Adds a session to the manager, associating it with relevant identifiers for retrieval.
@@ -990,8 +962,6 @@ Argument Details
990
962
  + **session**
991
963
  + The peer session to update.
992
964
 
993
- </details>
994
-
995
965
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
996
966
 
997
967
  ---
@@ -1019,10 +989,6 @@ export class SimplifiedFetchTransport implements Transport {
1019
989
 
1020
990
  See also: [AuthMessage](./auth.md#interface-authmessage), [Transport](./auth.md#interface-transport)
1021
991
 
1022
- <details>
1023
-
1024
- <summary>Class SimplifiedFetchTransport Details</summary>
1025
-
1026
992
  #### Constructor
1027
993
 
1028
994
  Constructs a new instance of SimplifiedFetchTransport.
@@ -1106,8 +1072,6 @@ Throws
1106
1072
 
1107
1073
  Will throw an error if no listener has been registered via `onData`.
1108
1074
 
1109
- </details>
1110
-
1111
1075
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
1112
1076
 
1113
1077
  ---
@@ -1134,10 +1098,6 @@ export class VerifiableCertificate extends Certificate {
1134
1098
 
1135
1099
  See also: [Base64String](./wallet.md#type-base64string), [Certificate](./auth.md#class-certificate), [CertificateFieldNameUnder50Bytes](./wallet.md#type-certificatefieldnameunder50bytes), [HexString](./wallet.md#type-hexstring), [OutpointString](./wallet.md#type-outpointstring), [ProtoWallet](./wallet.md#class-protowallet), [PubKeyHex](./wallet.md#type-pubkeyhex)
1136
1100
 
1137
- <details>
1138
-
1139
- <summary>Class VerifiableCertificate Details</summary>
1140
-
1141
1101
  #### Method decryptFields
1142
1102
 
1143
1103
  Decrypts selectively revealed certificate fields using the provided keyring and verifier wallet
@@ -1160,8 +1120,6 @@ Throws
1160
1120
 
1161
1121
  Throws an error if any of the decryption operations fail, with a message indicating the failure context.
1162
1122
 
1163
- </details>
1164
-
1165
1123
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
1166
1124
 
1167
1125
  ---
@@ -1186,10 +1144,6 @@ export async function createNonce(wallet: WalletInterface, counterparty: WalletC
1186
1144
 
1187
1145
  See also: [WalletCounterparty](./wallet.md#type-walletcounterparty), [WalletInterface](./wallet.md#interface-walletinterface)
1188
1146
 
1189
- <details>
1190
-
1191
- <summary>Function createNonce Details</summary>
1192
-
1193
1147
  Returns
1194
1148
 
1195
1149
  A random nonce derived with a wallet
@@ -1199,8 +1153,6 @@ Argument Details
1199
1153
  + **counterparty**
1200
1154
  + The counterparty to the nonce creation. Defaults to 'self'.
1201
1155
 
1202
- </details>
1203
-
1204
1156
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
1205
1157
 
1206
1158
  ---
@@ -1214,10 +1166,6 @@ export async function verifyNonce(nonce: string, wallet: WalletInterface, counte
1214
1166
 
1215
1167
  See also: [WalletCounterparty](./wallet.md#type-walletcounterparty), [WalletInterface](./wallet.md#interface-walletinterface)
1216
1168
 
1217
- <details>
1218
-
1219
- <summary>Function verifyNonce Details</summary>
1220
-
1221
1169
  Returns
1222
1170
 
1223
1171
  The status of the validation
@@ -1229,8 +1177,6 @@ Argument Details
1229
1177
  + **counterparty**
1230
1178
  + The counterparty to the nonce creation. Defaults to 'self'.
1231
1179
 
1232
- </details>
1233
-
1234
1180
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
1235
1181
 
1236
1182
  ---
package/docs/compat.md CHANGED
@@ -34,10 +34,6 @@ export default class ECIES {
34
34
 
35
35
  See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
36
36
 
37
- <details>
38
-
39
- <summary>Class ECIES Details</summary>
40
-
41
37
  #### Method bitcoreDecrypt
42
38
 
43
39
  Decrypts a message encrypted using the Bitcore variant of ECIES.
@@ -153,8 +149,6 @@ Argument Details
153
149
  + **pubKey**
154
150
  + The receiver's public key.
155
151
 
156
- </details>
157
-
158
152
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
159
153
 
160
154
  ---
@@ -193,10 +187,6 @@ export default class HD {
193
187
 
194
188
  See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
195
189
 
196
- <details>
197
-
198
- <summary>Class HD Details</summary>
199
-
200
190
  #### Constructor
201
191
 
202
192
  Constructor for the BIP32 HD wallet.
@@ -455,8 +445,6 @@ Returns
455
445
 
456
446
  A base58 encoded string of the HD wallet.
457
447
 
458
- </details>
459
-
460
448
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
461
449
 
462
450
  ---
@@ -491,10 +479,6 @@ export default class Mnemonic {
491
479
 
492
480
  See also: [wordList](./compat.md#variable-wordlist)
493
481
 
494
- <details>
495
-
496
- <summary>Class Mnemonic Details</summary>
497
-
498
482
  #### Constructor
499
483
 
500
484
  Constructs a Mnemonic object.
@@ -794,8 +778,6 @@ Returns
794
778
 
795
779
  The mnemonic phrase as a string.
796
780
 
797
- </details>
798
-
799
781
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
800
782
 
801
783
  ---
@@ -825,10 +807,6 @@ export default function fromUtxo(utxo: jsonUtxo, unlockingScriptTemplate: {
825
807
 
826
808
  See also: [Transaction](./transaction.md#class-transaction), [TransactionInput](./transaction.md#interface-transactioninput), [UnlockingScript](./script.md#class-unlockingscript), [sign](./compat.md#variable-sign)
827
809
 
828
- <details>
829
-
830
- <summary>Function fromUtxo Details</summary>
831
-
832
810
  Argument Details
833
811
 
834
812
  + **utxo**
@@ -836,8 +814,6 @@ Argument Details
836
814
  + **unlockingScriptTemplate**
837
815
  + : { sign: (tx: Transaction, inputIndex: number) => Promise<UnlockingScript>, estimateLength: (tx: Transaction, inputIndex: number) => Promise<number> }
838
816
 
839
- </details>
840
-
841
817
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
842
818
 
843
819
  ---
@@ -30,10 +30,6 @@ export interface AdmittanceInstructions {
30
30
  }
31
31
  ```
32
32
 
33
- <details>
34
-
35
- <summary>Interface AdmittanceInstructions Details</summary>
36
-
37
33
  #### Property coinsRemoved
38
34
 
39
35
  The indices of all inputs from the provided transaction which reference previously-admitted outputs,
@@ -59,8 +55,6 @@ The indices of all admissible outputs into the managed topic from the provided t
59
55
  outputsToAdmit: number[]
60
56
  ```
61
57
 
62
- </details>
63
-
64
58
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
65
59
 
66
60
  ---
@@ -75,10 +69,6 @@ export interface LookupQuestion {
75
69
  }
76
70
  ```
77
71
 
78
- <details>
79
-
80
- <summary>Interface LookupQuestion Details</summary>
81
-
82
72
  #### Property query
83
73
 
84
74
  The query which will be forwarded to the Lookup Service.
@@ -96,8 +86,6 @@ The identifier for a Lookup Service which the person asking the question wishes
96
86
  service: string
97
87
  ```
98
88
 
99
- </details>
100
-
101
89
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
102
90
 
103
91
  ---
@@ -116,10 +104,6 @@ export interface LookupResolverConfig {
116
104
 
117
105
  See also: [OverlayLookupFacilitator](./overlay-tools.md#interface-overlaylookupfacilitator)
118
106
 
119
- <details>
120
-
121
- <summary>Interface LookupResolverConfig Details</summary>
122
-
123
107
  #### Property additionalHosts
124
108
 
125
109
  Map of lookup service names to arrays of hosts to use in addition to resolving via SLAP.
@@ -153,8 +137,6 @@ The list of SLAP trackers queried to resolve Overlay Services hosts for a given
153
137
  slapTrackers?: string[]
154
138
  ```
155
139
 
156
- </details>
157
-
158
140
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
159
141
 
160
142
  ---
@@ -185,10 +167,6 @@ export interface OverlayLookupFacilitator {
185
167
 
186
168
  See also: [LookupAnswer](./overlay-tools.md#type-lookupanswer), [LookupQuestion](./overlay-tools.md#interface-lookupquestion)
187
169
 
188
- <details>
189
-
190
- <summary>Interface OverlayLookupFacilitator Details</summary>
191
-
192
170
  #### Property lookup
193
171
 
194
172
  Returns a lookup answer for a lookup question
@@ -198,8 +176,6 @@ lookup: (url: string, question: LookupQuestion, timeout?: number) => Promise<Loo
198
176
  ```
199
177
  See also: [LookupAnswer](./overlay-tools.md#type-lookupanswer), [LookupQuestion](./overlay-tools.md#interface-lookupquestion)
200
178
 
201
- </details>
202
-
203
179
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
204
180
 
205
181
  ---
@@ -219,10 +195,6 @@ export interface SHIPBroadcasterConfig {
219
195
 
220
196
  See also: [LookupResolver](./overlay-tools.md#class-lookupresolver), [OverlayBroadcastFacilitator](./overlay-tools.md#interface-overlaybroadcastfacilitator)
221
197
 
222
- <details>
223
-
224
- <summary>Interface SHIPBroadcasterConfig Details</summary>
225
-
226
198
  #### Property facilitator
227
199
 
228
200
  The facilitator used to make requests to Overlay Services hosts.
@@ -265,8 +237,6 @@ resolver: LookupResolver
265
237
  ```
266
238
  See also: [LookupResolver](./overlay-tools.md#class-lookupresolver)
267
239
 
268
- </details>
269
-
270
240
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
271
241
 
272
242
  ---
@@ -341,10 +311,6 @@ export default class LookupResolver {
341
311
 
342
312
  See also: [LookupAnswer](./overlay-tools.md#type-lookupanswer), [LookupQuestion](./overlay-tools.md#interface-lookupquestion), [LookupResolverConfig](./overlay-tools.md#interface-lookupresolverconfig)
343
313
 
344
- <details>
345
-
346
- <summary>Class LookupResolver Details</summary>
347
-
348
314
  #### Method query
349
315
 
350
316
  Given a LookupQuestion, returns a LookupAnswer. Aggregates across multiple services and supports resiliency.
@@ -354,8 +320,6 @@ async query(question: LookupQuestion, timeout?: number): Promise<LookupAnswer>
354
320
  ```
355
321
  See also: [LookupAnswer](./overlay-tools.md#type-lookupanswer), [LookupQuestion](./overlay-tools.md#interface-lookupquestion)
356
322
 
357
- </details>
358
-
359
323
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
360
324
 
361
325
  ---
@@ -383,10 +347,6 @@ export default class OverlayAdminTokenTemplate implements ScriptTemplate {
383
347
 
384
348
  See also: [LockingScript](./script.md#class-lockingscript), [PushDrop](./script.md#class-pushdrop), [ScriptTemplate](./script.md#interface-scripttemplate), [Transaction](./transaction.md#class-transaction), [UnlockingScript](./script.md#class-unlockingscript), [WalletInterface](./wallet.md#interface-walletinterface), [sign](./compat.md#variable-sign)
385
349
 
386
- <details>
387
-
388
- <summary>Class OverlayAdminTokenTemplate Details</summary>
389
-
390
350
  #### Constructor
391
351
 
392
352
  Constructs a new Overlay Admin template instance
@@ -467,8 +427,6 @@ Argument Details
467
427
  + **protocol**
468
428
  + SHIP or SLAP, depending on the token to unlock
469
429
 
470
- </details>
471
-
472
430
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
473
431
 
474
432
  ---
@@ -485,10 +443,6 @@ export default class SHIPCast implements Broadcaster {
485
443
 
486
444
  See also: [BroadcastFailure](./transaction.md#interface-broadcastfailure), [BroadcastResponse](./transaction.md#interface-broadcastresponse), [Broadcaster](./transaction.md#interface-broadcaster), [SHIPBroadcasterConfig](./overlay-tools.md#interface-shipbroadcasterconfig), [Transaction](./transaction.md#class-transaction)
487
445
 
488
- <details>
489
-
490
- <summary>Class SHIPCast Details</summary>
491
-
492
446
  #### Constructor
493
447
 
494
448
  Constructs an instance of the SHIP broadcaster.
@@ -523,8 +477,6 @@ Argument Details
523
477
  + **tx**
524
478
  + The transaction to be sent.
525
479
 
526
- </details>
527
-
528
480
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
529
481
 
530
482
  ---