@bsv/sdk 1.4.24 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/wallet/WalletClient.js +12 -2
- package/dist/cjs/src/wallet/WalletClient.js.map +1 -1
- package/dist/cjs/src/wallet/substrates/ReactNativeWebView.js +165 -0
- package/dist/cjs/src/wallet/substrates/ReactNativeWebView.js.map +1 -0
- package/dist/cjs/src/wallet/substrates/index.js +3 -1
- package/dist/cjs/src/wallet/substrates/index.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/wallet/WalletClient.js +12 -2
- package/dist/esm/src/wallet/WalletClient.js.map +1 -1
- package/dist/esm/src/wallet/substrates/ReactNativeWebView.js +137 -0
- package/dist/esm/src/wallet/substrates/ReactNativeWebView.js.map +1 -0
- package/dist/esm/src/wallet/substrates/index.js +1 -0
- package/dist/esm/src/wallet/substrates/index.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/wallet/WalletClient.d.ts.map +1 -1
- package/dist/types/src/wallet/substrates/ReactNativeWebView.d.ts +412 -0
- package/dist/types/src/wallet/substrates/ReactNativeWebView.d.ts.map +1 -0
- package/dist/types/src/wallet/substrates/index.d.ts +1 -0
- package/dist/types/src/wallet/substrates/index.d.ts.map +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/docs/auth.md +47 -101
- package/docs/compat.md +24 -48
- package/docs/identity.md +8 -14
- package/docs/kvstore.md +3 -9
- package/docs/messages.md +4 -4
- package/docs/overlay-tools.md +21 -69
- package/docs/primitives.md +235 -379
- package/docs/registry.md +14 -20
- package/docs/script.md +32 -80
- package/docs/storage.md +11 -17
- package/docs/totp.md +5 -11
- package/docs/transaction.md +66 -144
- package/docs/wallet.md +586 -183
- package/package.json +1 -1
- package/src/wallet/WalletClient.ts +13 -4
- package/src/wallet/substrates/ReactNativeWebView.ts +560 -0
- package/src/wallet/substrates/index.ts +1 -0
package/docs/compat.md
CHANGED
|
@@ -32,11 +32,7 @@ export default class ECIES {
|
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
36
|
-
|
|
37
|
-
<details>
|
|
38
|
-
|
|
39
|
-
<summary>Class ECIES Details</summary>
|
|
35
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
40
36
|
|
|
41
37
|
#### Method bitcoreDecrypt
|
|
42
38
|
|
|
@@ -45,7 +41,7 @@ Decrypts a message encrypted using the Bitcore variant of ECIES.
|
|
|
45
41
|
```ts
|
|
46
42
|
public static bitcoreDecrypt(encBuf: number[], toPrivateKey: PrivateKey): number[]
|
|
47
43
|
```
|
|
48
|
-
See also: [PrivateKey](#class-privatekey)
|
|
44
|
+
See also: [PrivateKey](./primitives.md#class-privatekey)
|
|
49
45
|
|
|
50
46
|
Returns
|
|
51
47
|
|
|
@@ -65,7 +61,7 @@ Encrypts a given message using the Bitcore variant of ECIES.
|
|
|
65
61
|
```ts
|
|
66
62
|
public static bitcoreEncrypt(messageBuf: number[], toPublicKey: PublicKey, fromPrivateKey?: PrivateKey, ivBuf?: number[]): number[]
|
|
67
63
|
```
|
|
68
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
64
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
69
65
|
|
|
70
66
|
Returns
|
|
71
67
|
|
|
@@ -89,7 +85,7 @@ Decrypts a message encrypted using the Electrum ECIES method.
|
|
|
89
85
|
```ts
|
|
90
86
|
public static electrumDecrypt(encBuf: number[], toPrivateKey: PrivateKey, fromPublicKey?: PublicKey): number[]
|
|
91
87
|
```
|
|
92
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
88
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
93
89
|
|
|
94
90
|
Returns
|
|
95
91
|
|
|
@@ -111,7 +107,7 @@ Encrypts a given message using the Electrum ECIES method.
|
|
|
111
107
|
```ts
|
|
112
108
|
public static electrumEncrypt(messageBuf: number[], toPublicKey: PublicKey, fromPrivateKey?: PrivateKey, noKey = false): number[]
|
|
113
109
|
```
|
|
114
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
110
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
115
111
|
|
|
116
112
|
Returns
|
|
117
113
|
|
|
@@ -140,7 +136,7 @@ public static ivkEkM(privKey: PrivateKey, pubKey: PublicKey): {
|
|
|
140
136
|
kM: number[];
|
|
141
137
|
}
|
|
142
138
|
```
|
|
143
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
139
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
144
140
|
|
|
145
141
|
Returns
|
|
146
142
|
|
|
@@ -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
|
---
|
|
@@ -191,11 +185,7 @@ export default class HD {
|
|
|
191
185
|
}
|
|
192
186
|
```
|
|
193
187
|
|
|
194
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
195
|
-
|
|
196
|
-
<details>
|
|
197
|
-
|
|
198
|
-
<summary>Class HD Details</summary>
|
|
188
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
199
189
|
|
|
200
190
|
#### Constructor
|
|
201
191
|
|
|
@@ -205,7 +195,7 @@ Initializes an HD wallet with optional parameters for version bytes, depth, pare
|
|
|
205
195
|
```ts
|
|
206
196
|
constructor(versionBytesNum?: number, depth?: number, parentFingerPrint?: number[], childIndex?: number, chainCode?: number[], privKey?: PrivateKey, pubKey?: PublicKey)
|
|
207
197
|
```
|
|
208
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey)
|
|
198
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey)
|
|
209
199
|
|
|
210
200
|
Argument Details
|
|
211
201
|
|
|
@@ -232,7 +222,7 @@ The path specifies the hierarchy of the child key to be derived.
|
|
|
232
222
|
```ts
|
|
233
223
|
public derive(path: string): HD
|
|
234
224
|
```
|
|
235
|
-
See also: [HD](#class-hd)
|
|
225
|
+
See also: [HD](./compat.md#class-hd)
|
|
236
226
|
|
|
237
227
|
Returns
|
|
238
228
|
|
|
@@ -251,7 +241,7 @@ This method generates either a private or public child key depending on the curr
|
|
|
251
241
|
```ts
|
|
252
242
|
public deriveChild(i: number): HD
|
|
253
243
|
```
|
|
254
|
-
See also: [HD](#class-hd)
|
|
244
|
+
See also: [HD](./compat.md#class-hd)
|
|
255
245
|
|
|
256
246
|
Returns
|
|
257
247
|
|
|
@@ -270,7 +260,7 @@ Parses a binary buffer to set up the wallet's properties.
|
|
|
270
260
|
```ts
|
|
271
261
|
public static fromBinary(buf: number[]): HD
|
|
272
262
|
```
|
|
273
|
-
See also: [HD](#class-hd)
|
|
263
|
+
See also: [HD](./compat.md#class-hd)
|
|
274
264
|
|
|
275
265
|
Returns
|
|
276
266
|
|
|
@@ -320,7 +310,7 @@ This method creates a root HD wallet with randomly generated private and public
|
|
|
320
310
|
```ts
|
|
321
311
|
public static fromRandom(): HD
|
|
322
312
|
```
|
|
323
|
-
See also: [HD](#class-hd)
|
|
313
|
+
See also: [HD](./compat.md#class-hd)
|
|
324
314
|
|
|
325
315
|
Returns
|
|
326
316
|
|
|
@@ -334,7 +324,7 @@ This method generates keys and other properties from a given seed, conforming to
|
|
|
334
324
|
```ts
|
|
335
325
|
public static fromSeed(bytes: number[]): HD
|
|
336
326
|
```
|
|
337
|
-
See also: [HD](#class-hd)
|
|
327
|
+
See also: [HD](./compat.md#class-hd)
|
|
338
328
|
|
|
339
329
|
Returns
|
|
340
330
|
|
|
@@ -371,7 +361,7 @@ This method decodes a provided string to set up the HD wallet's properties.
|
|
|
371
361
|
```ts
|
|
372
362
|
public static fromString(str: string): HD
|
|
373
363
|
```
|
|
374
|
-
See also: [HD](#class-hd)
|
|
364
|
+
See also: [HD](./compat.md#class-hd)
|
|
375
365
|
|
|
376
366
|
Returns
|
|
377
367
|
|
|
@@ -434,7 +424,7 @@ This method strips away the private key information, leaving only the public par
|
|
|
434
424
|
```ts
|
|
435
425
|
public toPublic(): HD
|
|
436
426
|
```
|
|
437
|
-
See also: [HD](#class-hd)
|
|
427
|
+
See also: [HD](./compat.md#class-hd)
|
|
438
428
|
|
|
439
429
|
Returns
|
|
440
430
|
|
|
@@ -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
|
---
|
|
@@ -489,11 +477,7 @@ export default class Mnemonic {
|
|
|
489
477
|
}
|
|
490
478
|
```
|
|
491
479
|
|
|
492
|
-
See also: [wordList](#variable-wordlist)
|
|
493
|
-
|
|
494
|
-
<details>
|
|
495
|
-
|
|
496
|
-
<summary>Class Mnemonic Details</summary>
|
|
480
|
+
See also: [wordList](./compat.md#variable-wordlist)
|
|
497
481
|
|
|
498
482
|
#### Constructor
|
|
499
483
|
|
|
@@ -502,7 +486,7 @@ Constructs a Mnemonic object.
|
|
|
502
486
|
```ts
|
|
503
487
|
constructor(mnemonic?: string, seed?: number[], wordlist = wordList)
|
|
504
488
|
```
|
|
505
|
-
See also: [wordList](#variable-wordlist)
|
|
489
|
+
See also: [wordList](./compat.md#variable-wordlist)
|
|
506
490
|
|
|
507
491
|
Argument Details
|
|
508
492
|
|
|
@@ -600,7 +584,7 @@ Static method to create a Mnemonic instance from a given entropy.
|
|
|
600
584
|
```ts
|
|
601
585
|
public static fromEntropy(buf: number[]): Mnemonic
|
|
602
586
|
```
|
|
603
|
-
See also: [Mnemonic](#class-mnemonic)
|
|
587
|
+
See also: [Mnemonic](./compat.md#class-mnemonic)
|
|
604
588
|
|
|
605
589
|
Returns
|
|
606
590
|
|
|
@@ -639,7 +623,7 @@ Static method to generate a Mnemonic instance with a random mnemonic.
|
|
|
639
623
|
```ts
|
|
640
624
|
public static fromRandom(bits?: number): Mnemonic
|
|
641
625
|
```
|
|
642
|
-
See also: [Mnemonic](#class-mnemonic)
|
|
626
|
+
See also: [Mnemonic](./compat.md#class-mnemonic)
|
|
643
627
|
|
|
644
628
|
Returns
|
|
645
629
|
|
|
@@ -674,7 +658,7 @@ Static method to create a Mnemonic instance from a mnemonic string.
|
|
|
674
658
|
```ts
|
|
675
659
|
public static fromString(str: string): Mnemonic
|
|
676
660
|
```
|
|
677
|
-
See also: [Mnemonic](#class-mnemonic)
|
|
661
|
+
See also: [Mnemonic](./compat.md#class-mnemonic)
|
|
678
662
|
|
|
679
663
|
Returns
|
|
680
664
|
|
|
@@ -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
|
---
|
|
@@ -823,11 +805,7 @@ export default function fromUtxo(utxo: jsonUtxo, unlockingScriptTemplate: {
|
|
|
823
805
|
}): TransactionInput
|
|
824
806
|
```
|
|
825
807
|
|
|
826
|
-
See also: [Transaction](#class-transaction), [TransactionInput](#interface-transactioninput), [UnlockingScript](#class-unlockingscript), [sign](#variable-sign)
|
|
827
|
-
|
|
828
|
-
<details>
|
|
829
|
-
|
|
830
|
-
<summary>Function fromUtxo Details</summary>
|
|
808
|
+
See also: [Transaction](./transaction.md#class-transaction), [TransactionInput](./transaction.md#interface-transactioninput), [UnlockingScript](./script.md#class-unlockingscript), [sign](./compat.md#variable-sign)
|
|
831
809
|
|
|
832
810
|
Argument Details
|
|
833
811
|
|
|
@@ -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
|
---
|
|
@@ -873,7 +849,7 @@ magicHash = (messageBuf: number[]): number[] => {
|
|
|
873
849
|
}
|
|
874
850
|
```
|
|
875
851
|
|
|
876
|
-
See also: [Writer](#class-writer), [hash256](#variable-hash256), [toArray](#variable-toarray)
|
|
852
|
+
See also: [Writer](./primitives.md#class-writer), [hash256](./primitives.md#variable-hash256), [toArray](./primitives.md#variable-toarray)
|
|
877
853
|
|
|
878
854
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
879
855
|
|
|
@@ -893,7 +869,7 @@ sign = (message: number[], privateKey: PrivateKey, mode: "raw" | "base64" = "bas
|
|
|
893
869
|
}
|
|
894
870
|
```
|
|
895
871
|
|
|
896
|
-
See also: [BigNumber](#class-bignumber), [PrivateKey](#class-privatekey), [Signature](#class-signature), [magicHash](#variable-magichash)
|
|
872
|
+
See also: [BigNumber](./primitives.md#class-bignumber), [PrivateKey](./primitives.md#class-privatekey), [Signature](./primitives.md#class-signature), [magicHash](./compat.md#variable-magichash)
|
|
897
873
|
|
|
898
874
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
899
875
|
|
|
@@ -907,7 +883,7 @@ verify = (message: number[], sig: Signature, pubKey: PublicKey): boolean => {
|
|
|
907
883
|
}
|
|
908
884
|
```
|
|
909
885
|
|
|
910
|
-
See also: [BigNumber](#class-bignumber), [PublicKey](#class-publickey), [Signature](#class-signature), [magicHash](#variable-magichash)
|
|
886
|
+
See also: [BigNumber](./primitives.md#class-bignumber), [PublicKey](./primitives.md#class-publickey), [Signature](./primitives.md#class-signature), [magicHash](./compat.md#variable-magichash)
|
|
911
887
|
|
|
912
888
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
913
889
|
|
package/docs/identity.md
CHANGED
|
@@ -41,7 +41,7 @@ export interface IdentityClientOptions {
|
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
See also: [WalletProtocol](#type-walletprotocol)
|
|
44
|
+
See also: [WalletProtocol](./wallet.md#type-walletprotocol)
|
|
45
45
|
|
|
46
46
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
47
47
|
|
|
@@ -62,11 +62,7 @@ export class IdentityClient {
|
|
|
62
62
|
}
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse), [CertificateFieldNameUnder50Bytes](#type-certificatefieldnameunder50bytes), [DEFAULT_IDENTITY_CLIENT_OPTIONS](#variable-default_identity_client_options), [DiscoverByAttributesArgs](#interface-discoverbyattributesargs), [DiscoverByIdentityKeyArgs](#interface-discoverbyidentitykeyargs), [DisplayableIdentity](#interface-displayableidentity), [IdentityCertificate](#interface-identitycertificate), [OriginatorDomainNameStringUnder250Bytes](#type-originatordomainnamestringunder250bytes), [WalletCertificate](#interface-walletcertificate), [WalletInterface](#interface-walletinterface)
|
|
66
|
-
|
|
67
|
-
<details>
|
|
68
|
-
|
|
69
|
-
<summary>Class IdentityClient Details</summary>
|
|
65
|
+
See also: [BroadcastFailure](./transaction.md#interface-broadcastfailure), [BroadcastResponse](./transaction.md#interface-broadcastresponse), [CertificateFieldNameUnder50Bytes](./wallet.md#type-certificatefieldnameunder50bytes), [DEFAULT_IDENTITY_CLIENT_OPTIONS](./identity.md#variable-default_identity_client_options), [DiscoverByAttributesArgs](./wallet.md#interface-discoverbyattributesargs), [DiscoverByIdentityKeyArgs](./wallet.md#interface-discoverbyidentitykeyargs), [DisplayableIdentity](./identity.md#interface-displayableidentity), [IdentityCertificate](./wallet.md#interface-identitycertificate), [OriginatorDomainNameStringUnder250Bytes](./wallet.md#type-originatordomainnamestringunder250bytes), [WalletCertificate](./wallet.md#interface-walletcertificate), [WalletInterface](./wallet.md#interface-walletinterface)
|
|
70
66
|
|
|
71
67
|
#### Method parseIdentity
|
|
72
68
|
|
|
@@ -78,7 +74,7 @@ Parse out identity and certifier attributes to display from an IdentityCertifica
|
|
|
78
74
|
```ts
|
|
79
75
|
static parseIdentity(identityToParse: IdentityCertificate): DisplayableIdentity
|
|
80
76
|
```
|
|
81
|
-
See also: [DisplayableIdentity](#interface-displayableidentity), [IdentityCertificate](#interface-identitycertificate)
|
|
77
|
+
See also: [DisplayableIdentity](./identity.md#interface-displayableidentity), [IdentityCertificate](./wallet.md#interface-identitycertificate)
|
|
82
78
|
|
|
83
79
|
Returns
|
|
84
80
|
|
|
@@ -99,7 +95,7 @@ The publicly revealed certificate is included in a blockchain transaction and br
|
|
|
99
95
|
```ts
|
|
100
96
|
async publiclyRevealAttributes(certificate: WalletCertificate, fieldsToReveal: CertificateFieldNameUnder50Bytes[]): Promise<BroadcastResponse | BroadcastFailure>
|
|
101
97
|
```
|
|
102
|
-
See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse), [CertificateFieldNameUnder50Bytes](#type-certificatefieldnameunder50bytes), [WalletCertificate](#interface-walletcertificate)
|
|
98
|
+
See also: [BroadcastFailure](./transaction.md#interface-broadcastfailure), [BroadcastResponse](./transaction.md#interface-broadcastresponse), [CertificateFieldNameUnder50Bytes](./wallet.md#type-certificatefieldnameunder50bytes), [WalletCertificate](./wallet.md#interface-walletcertificate)
|
|
103
99
|
|
|
104
100
|
Returns
|
|
105
101
|
|
|
@@ -123,7 +119,7 @@ Resolves displayable identity certificates by specific identity attributes, issu
|
|
|
123
119
|
```ts
|
|
124
120
|
async resolveByAttributes(args: DiscoverByAttributesArgs): Promise<DisplayableIdentity[]>
|
|
125
121
|
```
|
|
126
|
-
See also: [DiscoverByAttributesArgs](#interface-discoverbyattributesargs), [DisplayableIdentity](#interface-displayableidentity)
|
|
122
|
+
See also: [DiscoverByAttributesArgs](./wallet.md#interface-discoverbyattributesargs), [DisplayableIdentity](./identity.md#interface-displayableidentity)
|
|
127
123
|
|
|
128
124
|
Returns
|
|
129
125
|
|
|
@@ -141,7 +137,7 @@ Resolves displayable identity certificates, issued to a given identity key by a
|
|
|
141
137
|
```ts
|
|
142
138
|
async resolveByIdentityKey(args: DiscoverByIdentityKeyArgs): Promise<DisplayableIdentity[]>
|
|
143
139
|
```
|
|
144
|
-
See also: [DiscoverByIdentityKeyArgs](#interface-discoverbyidentitykeyargs), [DisplayableIdentity](#interface-displayableidentity)
|
|
140
|
+
See also: [DiscoverByIdentityKeyArgs](./wallet.md#interface-discoverbyidentitykeyargs), [DisplayableIdentity](./identity.md#interface-displayableidentity)
|
|
145
141
|
|
|
146
142
|
Returns
|
|
147
143
|
|
|
@@ -152,8 +148,6 @@ Argument Details
|
|
|
152
148
|
+ **args**
|
|
153
149
|
+ Arguments for requesting the discovery based on the identity key.
|
|
154
150
|
|
|
155
|
-
</details>
|
|
156
|
-
|
|
157
151
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
158
152
|
|
|
159
153
|
---
|
|
@@ -186,7 +180,7 @@ DEFAULT_IDENTITY_CLIENT_OPTIONS: IdentityClientOptions = {
|
|
|
186
180
|
}
|
|
187
181
|
```
|
|
188
182
|
|
|
189
|
-
See also: [IdentityClientOptions](#interface-identityclientoptions)
|
|
183
|
+
See also: [IdentityClientOptions](./identity.md#interface-identityclientoptions)
|
|
190
184
|
|
|
191
185
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
192
186
|
|
|
@@ -224,7 +218,7 @@ defaultIdentity: DisplayableIdentity = {
|
|
|
224
218
|
}
|
|
225
219
|
```
|
|
226
220
|
|
|
227
|
-
See also: [DisplayableIdentity](#interface-displayableidentity)
|
|
221
|
+
See also: [DisplayableIdentity](./identity.md#interface-displayableidentity)
|
|
228
222
|
|
|
229
223
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
230
224
|
|
package/docs/kvstore.md
CHANGED
|
@@ -21,11 +21,7 @@ export default class LocalKVStore {
|
|
|
21
21
|
}
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
See also: [OutpointString](#type-outpointstring), [WalletClient](#class-walletclient), [WalletInterface](#interface-walletinterface)
|
|
25
|
-
|
|
26
|
-
<details>
|
|
27
|
-
|
|
28
|
-
<summary>Class LocalKVStore Details</summary>
|
|
24
|
+
See also: [OutpointString](./wallet.md#type-outpointstring), [WalletClient](./wallet.md#class-walletclient), [WalletInterface](./wallet.md#interface-walletinterface), [encrypt](./messages.md#variable-encrypt)
|
|
29
25
|
|
|
30
26
|
#### Constructor
|
|
31
27
|
|
|
@@ -34,7 +30,7 @@ Creates an instance of the localKVStore.
|
|
|
34
30
|
```ts
|
|
35
31
|
constructor(wallet: WalletInterface = new WalletClient(), context = "kvstore default", encrypt = true, originator?: string)
|
|
36
32
|
```
|
|
37
|
-
See also: [WalletClient](#class-walletclient), [WalletInterface](#interface-walletinterface)
|
|
33
|
+
See also: [WalletClient](./wallet.md#class-walletclient), [WalletInterface](./wallet.md#interface-walletinterface), [encrypt](./messages.md#variable-encrypt)
|
|
38
34
|
|
|
39
35
|
Argument Details
|
|
40
36
|
|
|
@@ -111,7 +107,7 @@ If signing the update/collapse transaction fails, it relinquishes the original o
|
|
|
111
107
|
```ts
|
|
112
108
|
async set(key: string, value: string): Promise<OutpointString>
|
|
113
109
|
```
|
|
114
|
-
See also: [OutpointString](#type-outpointstring)
|
|
110
|
+
See also: [OutpointString](./wallet.md#type-outpointstring)
|
|
115
111
|
|
|
116
112
|
Returns
|
|
117
113
|
|
|
@@ -124,8 +120,6 @@ Argument Details
|
|
|
124
120
|
+ **value**
|
|
125
121
|
+ The value to associate with the key.
|
|
126
122
|
|
|
127
|
-
</details>
|
|
128
|
-
|
|
129
123
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
130
124
|
|
|
131
125
|
---
|
package/docs/messages.md
CHANGED
|
@@ -47,7 +47,7 @@ decrypt = (message: number[], recipient: PrivateKey): number[] => {
|
|
|
47
47
|
}
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey), [Reader](#class-reader), [SymmetricKey](#class-symmetrickey), [encode](#variable-encode), [toBase64](#function-tobase64), [toHex](#variable-tohex)
|
|
50
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey), [Reader](./primitives.md#class-reader), [SymmetricKey](./primitives.md#class-symmetrickey), [encode](./primitives.md#variable-encode), [toBase64](./primitives.md#function-tobase64), [toHex](./primitives.md#variable-tohex)
|
|
51
51
|
|
|
52
52
|
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
53
53
|
|
|
@@ -76,7 +76,7 @@ encrypt = (message: number[], sender: PrivateKey, recipient: PublicKey): number[
|
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey), [SymmetricKey](#class-symmetrickey), [encode](#variable-encode), [toArray](#variable-toarray), [toBase64](#function-tobase64)
|
|
79
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey), [SymmetricKey](./primitives.md#class-symmetrickey), [encode](./primitives.md#variable-encode), [toArray](./primitives.md#variable-toarray), [toBase64](./primitives.md#function-tobase64)
|
|
80
80
|
|
|
81
81
|
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
82
82
|
|
|
@@ -109,7 +109,7 @@ sign = (message: number[], signer: PrivateKey, verifier?: PublicKey): number[] =
|
|
|
109
109
|
}
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
See also: [Curve](#class-curve), [PrivateKey](#class-privatekey), [PublicKey](#class-publickey), [encode](#variable-encode), [toArray](#variable-toarray), [toBase64](#function-tobase64)
|
|
112
|
+
See also: [Curve](./primitives.md#class-curve), [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey), [encode](./primitives.md#variable-encode), [toArray](./primitives.md#variable-toarray), [toBase64](./primitives.md#function-tobase64)
|
|
113
113
|
|
|
114
114
|
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
115
115
|
|
|
@@ -149,7 +149,7 @@ verify = (message: number[], sig: number[], recipient?: PrivateKey): boolean =>
|
|
|
149
149
|
}
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
See also: [PrivateKey](#class-privatekey), [PublicKey](#class-publickey), [Reader](#class-reader), [Signature](#class-signature), [encode](#variable-encode), [toBase64](#function-tobase64), [toHex](#variable-tohex)
|
|
152
|
+
See also: [PrivateKey](./primitives.md#class-privatekey), [PublicKey](./primitives.md#class-publickey), [Reader](./primitives.md#class-reader), [Signature](./primitives.md#class-signature), [encode](./primitives.md#variable-encode), [toBase64](./primitives.md#function-tobase64), [toHex](./primitives.md#variable-tohex)
|
|
153
153
|
|
|
154
154
|
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
155
155
|
|