You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated BaseMessage in preparation for external Store interface implementations (#418)
* Removed Record specific properties from `BaseMessage`
* Renamed `BaseMessage` to `GenericMessage` - Makes more sense from the perspective of the store implementor, as they don't care about inheritance/extension
* Opportunistic rename of `Reply" types
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,11 @@ For advanced users wishing to use this repo directly:
23
23
npm install @tbd54566975/dwn-sdk-js
24
24
```
25
25
26
-
Additional steps needed for some environments.
26
+
## Additional Steps
27
27
28
-
Node.js <= 18
28
+
This package has dependency on [`@noble/ed25519`](https://github.com/paulmillr/noble-ed25519#usage) and [`@noble/secp256k1`](https://github.com/paulmillr/noble-secp256k1#usage) v2, additional steps are needed for some environments:
29
+
30
+
- Node.js <= 18
29
31
30
32
```js
31
33
// node.js 18 and earlier, needs globalThis.crypto polyfill
@@ -34,7 +36,7 @@ import { webcrypto } from "node:crypto";
34
36
if (!globalThis.crypto) globalThis.crypto= webcrypto;
35
37
```
36
38
37
-
React Native:
39
+
-React Native:
38
40
39
41
```js
40
42
// If you're on react native. React Native needs crypto.getRandomValues polyfill and sha512
0 commit comments