@clawdstrike/wasm 0.1.0 → 0.1.1
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @clawdstrike/wasm
|
|
2
2
|
|
|
3
3
|
WebAssembly bindings for clawdstrike cryptographic verification.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @clawdstrike/wasm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -19,7 +19,7 @@ import init, {
|
|
|
19
19
|
hash_keccak256,
|
|
20
20
|
verify_receipt,
|
|
21
21
|
verify_merkle_proof
|
|
22
|
-
} from '@
|
|
22
|
+
} from '@clawdstrike/wasm';
|
|
23
23
|
|
|
24
24
|
// Initialize WASM module (required once)
|
|
25
25
|
await init();
|
|
@@ -39,7 +39,7 @@ console.log(result.valid, result.signer_valid);
|
|
|
39
39
|
### Node.js
|
|
40
40
|
|
|
41
41
|
```javascript
|
|
42
|
-
const { verify_ed25519, hash_sha256 } = require('@
|
|
42
|
+
const { verify_ed25519, hash_sha256 } = require('@clawdstrike/wasm');
|
|
43
43
|
|
|
44
44
|
const hash = hash_sha256(Buffer.from('hello'));
|
|
45
45
|
```
|