@starknetfoundation/krusty-kms-wasm 0.0.0 → 0.4.4

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,4 +1,36 @@
1
1
  # @starknetfoundation/krusty-kms-wasm
2
2
 
3
- Bootstrap release. The first functional WebAssembly bindings are published in
4
- version 0.4.3.
3
+ Browser-focused WebAssembly bindings for Krusty KMS account, signing, hashing,
4
+ and Starknet utilities.
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ npm install @starknetfoundation/krusty-kms-wasm
10
+ ```
11
+
12
+ ## Use
13
+
14
+ Initialize the module before calling its exports:
15
+
16
+ ```ts
17
+ import init, {
18
+ getVersion,
19
+ poseidonHash,
20
+ } from "@starknetfoundation/krusty-kms-wasm";
21
+
22
+ await init();
23
+
24
+ console.log(getVersion());
25
+ console.log(poseidonHash("0x1", "0x2"));
26
+ ```
27
+
28
+ This package is generated with `wasm-pack --target web` and is intended for
29
+ browser-oriented ESM toolchains that support loading WebAssembly modules.
30
+
31
+ Krusty KMS is experimental. Do not rely on it for production or
32
+ security-critical use.
33
+
34
+ ## License
35
+
36
+ MIT OR Apache-2.0