@gryt/crypto 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,14 @@
1
- # @gryt/crypto
1
+ <div align="center">
2
+ <img src="https://raw.githubusercontent.com/Gryt-chat/client/main/public/logo.svg" width="80" alt="Gryt logo" />
3
+ <h1>@gryt/crypto</h1>
4
+ <p>Message encryption for <a href="https://gryt.chat">Gryt</a>.<br />Key derivation, key bindings, sealed envelopes, pinning, and the code two people compare out of band.</p>
5
+ </div>
2
6
 
3
- Message encryption for [Gryt](https://gryt.chat): key derivation, key bindings,
4
- sealed envelopes, pinning, and the code two people compare out of band.
7
+ <br />
8
+
9
+ ```sh
10
+ npm install @gryt/crypto
11
+ ```
5
12
 
6
13
  Used by the desktop client and the mobile app. They run this, not two ports of
7
14
  it — two implementations of one envelope is a pair of clients that send each
@@ -72,6 +79,20 @@ what a client installs. `check-crypto-vectors.mjs` holds bytes produced before
72
79
  the WebCrypto-to-noble conversion and nothing regenerates them — a change that
73
80
  quietly altered the envelope would leave every message already sent unreadable.
74
81
 
75
- ## Licence
82
+ ## Issues
83
+
84
+ Please report bugs and request features in the
85
+ [main Gryt repository](https://github.com/Gryt-chat/gryt/issues).
86
+
87
+ ## Sponsors
88
+
89
+ What sponsoring pays for, the tiers, and everyone who has sponsored:
90
+ [gryt.chat/sponsors](https://gryt.chat/sponsors). To sponsor:
91
+ [GitHub Sponsors](https://github.com/sponsors/Gryt-chat).
92
+
93
+ The list itself lives in the [Gryt README](https://github.com/Gryt-chat/gryt#sponsors),
94
+ in one place rather than ten, so it cannot fall out of step across repositories.
95
+
96
+ ## License
76
97
 
77
- AGPL-3.0-only.
98
+ [AGPL-3.0](https://github.com/Gryt-chat/gryt/blob/main/LICENSE) — Part of [Gryt](https://github.com/Gryt-chat/gryt)
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@
33
33
  * setting.
34
34
  */
35
35
  export * from "./attachments.js";
36
+ export * from "./base64.js";
36
37
  export * from "./comparison-code.js";
37
38
  export * from "./conversation-encryption.js";
38
39
  export * from "./dm-key-binding.js";
package/dist/index.js CHANGED
@@ -33,6 +33,10 @@
33
33
  * setting.
34
34
  */
35
35
  export * from "./attachments.js";
36
+ // Exported because both apps carry their own copy of exactly this, and one of
37
+ // the two is the `btoa` version this file was written to replace. They cannot
38
+ // drop theirs while it is package-internal.
39
+ export * from "./base64.js";
36
40
  export * from "./comparison-code.js";
37
41
  export * from "./conversation-encryption.js";
38
42
  export * from "./dm-key-binding.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gryt/crypto",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Message encryption for Gryt: key derivation, key bindings, sealed envelopes, pinning and comparison codes. Shared by the desktop client and the mobile app.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {