-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
155 lines (133 loc) · 6.74 KB
/
Copy pathCargo.toml
File metadata and controls
155 lines (133 loc) · 6.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[package]
name = "polymesh-dart-wasm"
version = "0.1.0"
edition = "2021"
description = "WebAssembly bindings for Polymesh DART"
authors = ["Polymesh Labs"]
license = "GPL-3.0"
repository = "https://github.com/PolymeshAssociation/polymesh-dart"
[lib]
crate-type = ["cdylib", "rlib"]
[patch.crates-io]
# Curve tree dependencies
#curve_tree_bulletproofs = { package = "bulletproofs", path = "../curve-trees/bulletproofs" }
#curve_tree_relations = { package = "relations", path = "../curve-trees/relations" }
#ark-ec-divisors = { package = "ark-ec-divisors", path = "../curve-trees/ark-ec-divisors"}
#ark-dlog-gadget = { package = "ark-dlog-gadget", path = "../curve-trees/ark-dlog-gadget"}
# If want to pull code for curve-trees from git, comment above 2 relations and uncomment below 2
curve_tree_bulletproofs = { package = "bulletproofs", git = "https://github.com/PolymeshAssociation/curve-trees", branch = "polymesh" }
curve_tree_relations = { package = "relations", git = "https://github.com/PolymeshAssociation/curve-trees", branch = "polymesh" }
ark-ec-divisors = { package = "ark-ec-divisors", git = "https://github.com/PolymeshAssociation/curve-trees", branch = "polymesh" }
ark-dlog-gadget = { package = "ark-dlog-gadget", git = "https://github.com/PolymeshAssociation/curve-trees", branch = "polymesh" }
#dock_crypto_utils = { path = "../crypto/utils" }
#schnorr_pok = { path = "../crypto/schnorr_pok" }
dock_crypto_utils = { git = "https://github.com/PolymeshAssociation/crypto", branch = "main" }
schnorr_pok = { git = "https://github.com/PolymeshAssociation/crypto", branch = "main" }
#polymesh-dart = { path = "../polymesh-dart" }
#polymesh-dart-bp = { path = "../polymesh-dart/dart-bp" }
#polymesh-dart-common = { path = "../polymesh-dart/dart-common" }
polymesh-dart = { git = "https://github.com/PolymeshAssociation/polymesh-dart", branch = "main" }
polymesh-dart-bp = { git = "https://github.com/PolymeshAssociation/polymesh-dart", branch = "main" }
polymesh-dart-common = { git = "https://github.com/PolymeshAssociation/polymesh-dart", branch = "main" }
# Polymesh changes to Arkworks.
#ark-serialize = { path = "../arkworks-algebra/serialize" }
#ark-ec = { path = "../arkworks-algebra/ec" }
#ark-host-msm = { path = "../arkworks-algebra/host-msm" }
#ark-host-msm-impl = { path = "../arkworks-algebra/host-msm-impl" }
#ark-ff = { path = "../arkworks-algebra/ff" }
#ark-pallas = { path = "../arkworks-algebra/curves/pallas" }
#ark-vesta = { path = "../arkworks-algebra/curves/vesta" }
#ark-helios = { path = "../arkworks-algebra/curves/helios" }
#ark-selene = { path = "../arkworks-algebra/curves/selene" }
#ark-wei25519 = { path = "../arkworks-algebra/curves/wei25519" }
#ark-curve25519 = { path = "../arkworks-algebra/curves/curve25519" }
#ark-ed25519 = { path = "../arkworks-algebra/curves/ed25519" }
#ark-bn254 = { path = "../arkworks-algebra/curves/bn254" }
#ark-bls12-381 = { path = "../arkworks-algebra/curves/bls12_381" }
ark-serialize = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-ec = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-host-msm = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
#ark-host-msm-impl = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-ff = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-pallas = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-vesta = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-helios = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-selene = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-wei25519 = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-curve25519 = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-ed25519 = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
#ark-bn254 = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
ark-bls12-381 = { git = "https://github.com/PolymeshAssociation/arkworks-algebra.git", branch = "polymesh-master" }
[dependencies]
# DART Assets
polymesh-dart = { version = "0.1.0", default-features = false, features = [
"std",
"asm",
"serde",
"parallel",
"backend_bp",
] }
async-trait = { version = "0.1", optional = true }
futures-util = { version = "0.3.31", optional = true }
tokio = { version = "1", default-features = false, optional = true }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-wasm-bindgen = "0.6"
js-sys = "0.3"
log = "0.4"
wasm-logger = "0.2"
console_error_panic_hook = { version = "0.1", optional = true }
rand = { version = "0.8", default-features = false, features = [
"alloc",
"getrandom",
] }
getrandom = { version = "0.2", features = ["js"] }
thiserror = "1.0"
# Other dependencies
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false }
bounded-collections = { version = "0.3.2", default-features = false }
rand_core = { version = "0.6", default-features = false }
rand_chacha = { version = "0.3", default-features = false }
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
zeroize = { version = "1.8", default-features = false, features = ["alloc"] }
[dev-dependencies]
wasm-bindgen-test = "0.3"
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
polymesh-api = { version = "3.13.1", features = ["serde", "polymesh_v8"], optional = true }
polymesh-api-client = { version = "3.11.1", optional = true }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
polymesh-api = { version = "3.13.1", default-features = false, features = [
"polymesh_v8",
"wasm",
"serde",
], optional = true }
polymesh-api-client = { version = "3.11.1", default-features = false, features = [
"v14",
"wasm",
"serde",
], optional = true }
[features]
default = ["decode_checks"]
#default = ["polymesh-client"]
# Enables extra verification of decoded structures.
decode_checks = []
# Enable this feature to compile against a dev-chain.
download_metadata = ["polymesh-api/download_metadata"]
# Enable `PolymeshClient` support.
polymesh-client = [
"download_metadata",
"polymesh-api-client",
"polymesh-api",
"polymesh-dart/async_tree",
"async-trait",
"futures-util",
"tokio",
]
[profile.release]
# Optimize for small code size
opt-level = "s"
lto = true