@bsv/sdk 1.6.20 → 1.6.23
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/dist/cjs/package.json +1 -1
- package/dist/cjs/src/primitives/PrivateKey.js +31 -1
- package/dist/cjs/src/primitives/PrivateKey.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/primitives/PrivateKey.js +32 -2
- package/dist/esm/src/primitives/PrivateKey.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/primitives/PrivateKey.d.ts.map +1 -1
- package/dist/types/src/wallet/Wallet.interfaces.d.ts +5 -2
- package/dist/types/src/wallet/Wallet.interfaces.d.ts.map +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/dist/umd/bundle.js.map +1 -1
- package/docs/reference/auth.md +1 -1
- package/docs/reference/messages.md +8 -6
- package/docs/reference/overlay-tools.md +3 -0
- package/docs/reference/primitives.md +513 -283
- package/docs/reference/script.md +32 -0
- package/docs/reference/wallet.md +2 -2
- package/package.json +1 -1
- package/src/primitives/PrivateKey.ts +34 -2
- package/src/wallet/Wallet.interfaces.ts +5 -2
package/docs/reference/auth.md
CHANGED
|
@@ -1044,7 +1044,7 @@ Argument Details
|
|
|
1044
1044
|
|
|
1045
1045
|
#### Method onData
|
|
1046
1046
|
|
|
1047
|
-
Registers a callback to handle incoming messages.
|
|
1047
|
+
Registers a callback to handle incoming messages.
|
|
1048
1048
|
This must be called before sending any messages to ensure responses can be processed.
|
|
1049
1049
|
|
|
1050
1050
|
```ts
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# API
|
|
2
2
|
|
|
3
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
3
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
4
|
+
|
|
5
|
+
## Interfaces
|
|
4
6
|
|
|
5
7
|
## Classes
|
|
6
8
|
|
|
@@ -15,7 +17,7 @@ Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#v
|
|
|
15
17
|
| [sign](#variable-sign) |
|
|
16
18
|
| [verify](#variable-verify) |
|
|
17
19
|
|
|
18
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
20
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
19
21
|
|
|
20
22
|
---
|
|
21
23
|
|
|
@@ -49,7 +51,7 @@ decrypt = (message: number[], recipient: PrivateKey): number[] => {
|
|
|
49
51
|
|
|
50
52
|
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
53
|
|
|
52
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
54
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
53
55
|
|
|
54
56
|
---
|
|
55
57
|
### Variable: encrypt
|
|
@@ -78,7 +80,7 @@ encrypt = (message: number[], sender: PrivateKey, recipient: PublicKey): number[
|
|
|
78
80
|
|
|
79
81
|
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
82
|
|
|
81
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
83
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
82
84
|
|
|
83
85
|
---
|
|
84
86
|
### Variable: sign
|
|
@@ -111,7 +113,7 @@ sign = (message: number[], signer: PrivateKey, verifier?: PublicKey): number[] =
|
|
|
111
113
|
|
|
112
114
|
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
115
|
|
|
114
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
116
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
115
117
|
|
|
116
118
|
---
|
|
117
119
|
### Variable: verify
|
|
@@ -151,6 +153,6 @@ verify = (message: number[], sig: number[], recipient?: PrivateKey): boolean =>
|
|
|
151
153
|
|
|
152
154
|
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
155
|
|
|
154
|
-
Links: [API](#api), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
156
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Variables](#variables)
|
|
155
157
|
|
|
156
158
|
---
|
|
@@ -569,6 +569,9 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
569
569
|
|
|
570
570
|
```ts
|
|
571
571
|
DEFAULT_SLAP_TRACKERS: string[] = [
|
|
572
|
+
"https://overlay-us-1.bsvb.tech",
|
|
573
|
+
"https://overlay-eu-1.bsvb.tech",
|
|
574
|
+
"https://overlay-ap-1.bsvb.tech",
|
|
572
575
|
"https://users.bapp.dev"
|
|
573
576
|
]
|
|
574
577
|
```
|