@haneullabs/walrus-wasm 0.1.0 → 0.2.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/CHANGELOG.md +1 -1
- package/Cargo.lock +7 -7
- package/Cargo.toml +2 -2
- package/index.d.mts +11 -0
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
package/Cargo.lock
CHANGED
|
@@ -572,7 +572,7 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
|
572
572
|
[[package]]
|
|
573
573
|
name = "fastcrypto"
|
|
574
574
|
version = "0.1.8"
|
|
575
|
-
source = "git+https://github.com/
|
|
575
|
+
source = "git+https://github.com/mystenlabs/fastcrypto.git?rev=f519333aefa238384f813af74bbb58c68cc38ee7#f519333aefa238384f813af74bbb58c68cc38ee7"
|
|
576
576
|
dependencies = [
|
|
577
577
|
"ark-ec",
|
|
578
578
|
"ark-ff",
|
|
@@ -591,7 +591,7 @@ dependencies = [
|
|
|
591
591
|
"ecdsa",
|
|
592
592
|
"ed25519-consensus",
|
|
593
593
|
"elliptic-curve",
|
|
594
|
-
"fastcrypto-derive 0.1.3 (git+https://github.com/
|
|
594
|
+
"fastcrypto-derive 0.1.3 (git+https://github.com/mystenlabs/fastcrypto.git?rev=f519333aefa238384f813af74bbb58c68cc38ee7)",
|
|
595
595
|
"generic-array",
|
|
596
596
|
"getrandom",
|
|
597
597
|
"hex",
|
|
@@ -623,7 +623,7 @@ dependencies = [
|
|
|
623
623
|
[[package]]
|
|
624
624
|
name = "fastcrypto"
|
|
625
625
|
version = "0.1.9"
|
|
626
|
-
source = "git+https://github.com/
|
|
626
|
+
source = "git+https://github.com/MystenLabs/fastcrypto?rev=4db0e90c732bbf7420ca20de808b698883148d9c#4db0e90c732bbf7420ca20de808b698883148d9c"
|
|
627
627
|
dependencies = [
|
|
628
628
|
"ark-ec",
|
|
629
629
|
"ark-ff",
|
|
@@ -644,7 +644,7 @@ dependencies = [
|
|
|
644
644
|
"ecdsa",
|
|
645
645
|
"ed25519-consensus",
|
|
646
646
|
"elliptic-curve",
|
|
647
|
-
"fastcrypto-derive 0.1.3 (git+https://github.com/
|
|
647
|
+
"fastcrypto-derive 0.1.3 (git+https://github.com/MystenLabs/fastcrypto?rev=4db0e90c732bbf7420ca20de808b698883148d9c)",
|
|
648
648
|
"generic-array",
|
|
649
649
|
"hex",
|
|
650
650
|
"hex-literal",
|
|
@@ -675,7 +675,7 @@ dependencies = [
|
|
|
675
675
|
[[package]]
|
|
676
676
|
name = "fastcrypto-derive"
|
|
677
677
|
version = "0.1.3"
|
|
678
|
-
source = "git+https://github.com/
|
|
678
|
+
source = "git+https://github.com/MystenLabs/fastcrypto?rev=4db0e90c732bbf7420ca20de808b698883148d9c#4db0e90c732bbf7420ca20de808b698883148d9c"
|
|
679
679
|
dependencies = [
|
|
680
680
|
"quote",
|
|
681
681
|
"syn 1.0.109",
|
|
@@ -684,7 +684,7 @@ dependencies = [
|
|
|
684
684
|
[[package]]
|
|
685
685
|
name = "fastcrypto-derive"
|
|
686
686
|
version = "0.1.3"
|
|
687
|
-
source = "git+https://github.com/
|
|
687
|
+
source = "git+https://github.com/mystenlabs/fastcrypto.git?rev=f519333aefa238384f813af74bbb58c68cc38ee7#f519333aefa238384f813af74bbb58c68cc38ee7"
|
|
688
688
|
dependencies = [
|
|
689
689
|
"quote",
|
|
690
690
|
"syn 1.0.109",
|
|
@@ -1762,7 +1762,7 @@ dependencies = [
|
|
|
1762
1762
|
[[package]]
|
|
1763
1763
|
name = "walrus-core"
|
|
1764
1764
|
version = "1.40.0"
|
|
1765
|
-
source = "git+ssh://git@github.com/
|
|
1765
|
+
source = "git+ssh://git@github.com/mystenlabs/walrus.git?branch=main#0173958c2c8a243932d72c4f41c6e5ae42977453"
|
|
1766
1766
|
dependencies = [
|
|
1767
1767
|
"base64",
|
|
1768
1768
|
"bcs",
|
package/Cargo.toml
CHANGED
|
@@ -14,8 +14,8 @@ default = ["console_error_panic_hook"]
|
|
|
14
14
|
bcs = "0.1"
|
|
15
15
|
wasm-bindgen = "0.2.84"
|
|
16
16
|
js-sys = "0.3"
|
|
17
|
-
fastcrypto = { git = "https://github.com/
|
|
18
|
-
walrus-core = { git = "ssh://git@github.com/
|
|
17
|
+
fastcrypto = { git = "https://github.com/mystenlabs/fastcrypto.git", rev = "f519333aefa238384f813af74bbb58c68cc38ee7", features = ["wasm"]}
|
|
18
|
+
walrus-core = { git = "ssh://git@github.com/mystenlabs/walrus.git", branch = "main", package = "walrus-core" }
|
|
19
19
|
serde-wasm-bindgen = "0.4"
|
|
20
20
|
reed-solomon-simd = "3.0.1"
|
|
21
21
|
|
package/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Type declarations for the Node.js entry point (index.mjs)
|
|
5
|
+
// Node.js wasm-pack builds don't require async initialization
|
|
6
|
+
|
|
7
|
+
export * from './nodejs/walrus_wasm.js';
|
|
8
|
+
|
|
9
|
+
// No-op init for Node.js compatibility (wasm is loaded synchronously)
|
|
10
|
+
// Accepts optional argument for API compatibility with web version (ignored in Node.js)
|
|
11
|
+
export default function init(options?: { module_or_path?: unknown }): void;
|
package/package.json
CHANGED
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"jonaslindstrom"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.2.0",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "index.js",
|
|
9
|
-
"types": "./
|
|
9
|
+
"types": "./index.d.mts",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/GeunhwaJeong/
|
|
12
|
+
"url": "git+https://github.com/GeunhwaJeong/ts-sdks.git"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
|
|
16
|
+
"browser": {
|
|
17
|
+
"types": "./web/walrus_wasm.d.ts",
|
|
18
|
+
"import": "./web/walrus_wasm.js"
|
|
19
|
+
},
|
|
20
|
+
"types": "./index.d.mts",
|
|
18
21
|
"import": "./index.mjs",
|
|
19
22
|
"require": "./index.js"
|
|
20
23
|
},
|
|
@@ -25,9 +28,9 @@
|
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"vite": "^7.
|
|
29
|
-
"vitest": "^4.0.
|
|
30
|
-
"@haneullabs/bcs": "0.
|
|
31
|
+
"vite": "^7.3.1",
|
|
32
|
+
"vitest": "^4.0.17",
|
|
33
|
+
"@haneullabs/bcs": "^2.0.2"
|
|
31
34
|
},
|
|
32
35
|
"scripts": {
|
|
33
36
|
"build:wasm": "pnpm build:nodejs && pnpm build:web",
|