├── .cargo-ok ├── .github └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE_APACHE ├── README.md ├── gen-docs.sh ├── src ├── auth.rs ├── lib.rs └── utils.rs └── wrangler.toml /.cargo-ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/odyslam/ethsig-rs/61b7bd0915ed4f73641d9300d23b03ac8975eadc/.cargo-ok -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request: 3 | 4 | name: lint, update docs 5 | 6 | jobs: 7 | lint: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout sources 11 | uses: actions/checkout@v2 12 | 13 | - name: Install toolchain 14 | uses: actions-rs/toolchain@v1 15 | with: 16 | toolchain: nightly 17 | override: true 18 | components: rustfmt, clippy 19 | 20 | - uses: Swatinem/rust-cache@v1 21 | with: 22 | cache-on-failure: true 23 | 24 | - name: cargo fmt 25 | run: cargo +nightly fmt --all -- --check 26 | 27 | - name: cargo clippy 28 | run: cargo +nightly clippy --all --all-features -- -D warnings 29 | 30 | - name: build docs 31 | run: ./gen-docs.sh 32 | 33 | - name: PR new docs 34 | uses: stefanzweifel/git-auto-commit-action@v4 35 | 36 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - master 5 | 6 | name: Release 7 | 8 | jobs: 9 | release: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout sources 13 | uses: actions/checkout@v2 14 | 15 | - name: Install toolchain 16 | uses: actions-rs/toolchain@v1 17 | with: 18 | toolchain: nightly 19 | override: true 20 | 21 | - uses: Swatinem/rust-cache@v1 22 | with: 23 | cache-on-failure: true 24 | 25 | - name: Publish 26 | env: 27 | CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} 28 | run: npm i @cloudflare/wrangler && npx wrangler publish 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | wasm-pack.log 4 | build/ 5 | **/node_modules/ 6 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at ag_dubs@cloudflare.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "Inflector" 7 | version = "0.11.4" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" 10 | dependencies = [ 11 | "lazy_static", 12 | "regex", 13 | ] 14 | 15 | [[package]] 16 | name = "aes" 17 | version = "0.7.5" 18 | source = "registry+https://github.com/rust-lang/crates.io-index" 19 | checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" 20 | dependencies = [ 21 | "cfg-if 1.0.0", 22 | "cipher", 23 | "cpufeatures", 24 | "opaque-debug 0.3.0", 25 | ] 26 | 27 | [[package]] 28 | name = "aho-corasick" 29 | version = "0.7.18" 30 | source = "registry+https://github.com/rust-lang/crates.io-index" 31 | checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" 32 | dependencies = [ 33 | "memchr", 34 | ] 35 | 36 | [[package]] 37 | name = "anyhow" 38 | version = "1.0.53" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" 41 | 42 | [[package]] 43 | name = "arrayvec" 44 | version = "0.7.2" 45 | source = "registry+https://github.com/rust-lang/crates.io-index" 46 | checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" 47 | 48 | [[package]] 49 | name = "ascii-canvas" 50 | version = "3.0.0" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" 53 | dependencies = [ 54 | "term", 55 | ] 56 | 57 | [[package]] 58 | name = "async-trait" 59 | version = "0.1.51" 60 | source = "registry+https://github.com/rust-lang/crates.io-index" 61 | checksum = "44318e776df68115a881de9a8fd1b9e53368d7a4a5ce4cc48517da3393233a5e" 62 | dependencies = [ 63 | "proc-macro2", 64 | "quote", 65 | "syn", 66 | ] 67 | 68 | [[package]] 69 | name = "async_io_stream" 70 | version = "0.3.3" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "b6d7b9decdf35d8908a7e3ef02f64c5e9b1695e230154c0e8de3969142d9b94c" 73 | dependencies = [ 74 | "futures", 75 | "pharos", 76 | "rustc_version", 77 | ] 78 | 79 | [[package]] 80 | name = "atty" 81 | version = "0.2.14" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 84 | dependencies = [ 85 | "hermit-abi", 86 | "libc", 87 | "winapi", 88 | ] 89 | 90 | [[package]] 91 | name = "auto_impl" 92 | version = "0.5.0" 93 | source = "registry+https://github.com/rust-lang/crates.io-index" 94 | checksum = "7862e21c893d65a1650125d157eaeec691439379a1cee17ee49031b79236ada4" 95 | dependencies = [ 96 | "proc-macro-error", 97 | "proc-macro2", 98 | "quote", 99 | "syn", 100 | ] 101 | 102 | [[package]] 103 | name = "autocfg" 104 | version = "1.0.1" 105 | source = "registry+https://github.com/rust-lang/crates.io-index" 106 | checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 107 | 108 | [[package]] 109 | name = "base16ct" 110 | version = "0.1.1" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" 113 | 114 | [[package]] 115 | name = "base58" 116 | version = "0.1.0" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" 119 | 120 | [[package]] 121 | name = "base58check" 122 | version = "0.1.0" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "2ee2fe4c9a0c84515f136aaae2466744a721af6d63339c18689d9e995d74d99b" 125 | dependencies = [ 126 | "base58", 127 | "sha2 0.8.2", 128 | ] 129 | 130 | [[package]] 131 | name = "base64" 132 | version = "0.12.3" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" 135 | 136 | [[package]] 137 | name = "base64" 138 | version = "0.13.0" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" 141 | 142 | [[package]] 143 | name = "base64ct" 144 | version = "1.3.3" 145 | source = "registry+https://github.com/rust-lang/crates.io-index" 146 | checksum = "874f8444adcb4952a8bc51305c8be95c8ec8237bb0d2e78d2e039f771f8828a0" 147 | 148 | [[package]] 149 | name = "bech32" 150 | version = "0.7.3" 151 | source = "registry+https://github.com/rust-lang/crates.io-index" 152 | checksum = "2dabbe35f96fb9507f7330793dc490461b2962659ac5d427181e451a623751d1" 153 | 154 | [[package]] 155 | name = "bincode" 156 | version = "1.3.3" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" 159 | dependencies = [ 160 | "serde", 161 | ] 162 | 163 | [[package]] 164 | name = "bit-set" 165 | version = "0.5.2" 166 | source = "registry+https://github.com/rust-lang/crates.io-index" 167 | checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de" 168 | dependencies = [ 169 | "bit-vec", 170 | ] 171 | 172 | [[package]] 173 | name = "bit-vec" 174 | version = "0.6.3" 175 | source = "registry+https://github.com/rust-lang/crates.io-index" 176 | checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" 177 | 178 | [[package]] 179 | name = "bitflags" 180 | version = "1.3.2" 181 | source = "registry+https://github.com/rust-lang/crates.io-index" 182 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 183 | 184 | [[package]] 185 | name = "bitvec" 186 | version = "0.17.4" 187 | source = "registry+https://github.com/rust-lang/crates.io-index" 188 | checksum = "41262f11d771fd4a61aa3ce019fca363b4b6c282fca9da2a31186d3965a47a5c" 189 | dependencies = [ 190 | "either", 191 | "radium 0.3.0", 192 | ] 193 | 194 | [[package]] 195 | name = "bitvec" 196 | version = "0.20.4" 197 | source = "registry+https://github.com/rust-lang/crates.io-index" 198 | checksum = "7774144344a4faa177370406a7ff5f1da24303817368584c6206c8303eb07848" 199 | dependencies = [ 200 | "funty", 201 | "radium 0.6.2", 202 | "tap", 203 | "wyz", 204 | ] 205 | 206 | [[package]] 207 | name = "blake2" 208 | version = "0.9.2" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174" 211 | dependencies = [ 212 | "crypto-mac 0.8.0", 213 | "digest 0.9.0", 214 | "opaque-debug 0.3.0", 215 | ] 216 | 217 | [[package]] 218 | name = "block-buffer" 219 | version = "0.7.3" 220 | source = "registry+https://github.com/rust-lang/crates.io-index" 221 | checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" 222 | dependencies = [ 223 | "block-padding 0.1.5", 224 | "byte-tools", 225 | "byteorder", 226 | "generic-array 0.12.4", 227 | ] 228 | 229 | [[package]] 230 | name = "block-buffer" 231 | version = "0.9.0" 232 | source = "registry+https://github.com/rust-lang/crates.io-index" 233 | checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" 234 | dependencies = [ 235 | "block-padding 0.2.1", 236 | "generic-array 0.14.5", 237 | ] 238 | 239 | [[package]] 240 | name = "block-buffer" 241 | version = "0.10.0" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" 244 | dependencies = [ 245 | "generic-array 0.14.5", 246 | ] 247 | 248 | [[package]] 249 | name = "block-padding" 250 | version = "0.1.5" 251 | source = "registry+https://github.com/rust-lang/crates.io-index" 252 | checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" 253 | dependencies = [ 254 | "byte-tools", 255 | ] 256 | 257 | [[package]] 258 | name = "block-padding" 259 | version = "0.2.1" 260 | source = "registry+https://github.com/rust-lang/crates.io-index" 261 | checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" 262 | 263 | [[package]] 264 | name = "bs58" 265 | version = "0.4.0" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" 268 | 269 | [[package]] 270 | name = "bumpalo" 271 | version = "3.7.0" 272 | source = "registry+https://github.com/rust-lang/crates.io-index" 273 | checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" 274 | 275 | [[package]] 276 | name = "byte-slice-cast" 277 | version = "1.2.0" 278 | source = "registry+https://github.com/rust-lang/crates.io-index" 279 | checksum = "1d30c751592b77c499e7bce34d99d67c2c11bdc0574e9a488ddade14150a4698" 280 | 281 | [[package]] 282 | name = "byte-tools" 283 | version = "0.3.1" 284 | source = "registry+https://github.com/rust-lang/crates.io-index" 285 | checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" 286 | 287 | [[package]] 288 | name = "byteorder" 289 | version = "1.4.3" 290 | source = "registry+https://github.com/rust-lang/crates.io-index" 291 | checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" 292 | 293 | [[package]] 294 | name = "bytes" 295 | version = "1.1.0" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" 298 | dependencies = [ 299 | "serde", 300 | ] 301 | 302 | [[package]] 303 | name = "camino" 304 | version = "1.0.7" 305 | source = "registry+https://github.com/rust-lang/crates.io-index" 306 | checksum = "6f3132262930b0522068049f5870a856ab8affc80c70d08b6ecb785771a6fc23" 307 | dependencies = [ 308 | "serde", 309 | ] 310 | 311 | [[package]] 312 | name = "cargo-platform" 313 | version = "0.1.2" 314 | source = "registry+https://github.com/rust-lang/crates.io-index" 315 | checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" 316 | dependencies = [ 317 | "serde", 318 | ] 319 | 320 | [[package]] 321 | name = "cargo_metadata" 322 | version = "0.14.1" 323 | source = "registry+https://github.com/rust-lang/crates.io-index" 324 | checksum = "ba2ae6de944143141f6155a473a6b02f66c7c3f9f47316f802f80204ebfe6e12" 325 | dependencies = [ 326 | "camino", 327 | "cargo-platform", 328 | "semver", 329 | "serde", 330 | "serde_json", 331 | ] 332 | 333 | [[package]] 334 | name = "cc" 335 | version = "1.0.72" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" 338 | 339 | [[package]] 340 | name = "cfg-if" 341 | version = "0.1.10" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 344 | 345 | [[package]] 346 | name = "cfg-if" 347 | version = "1.0.0" 348 | source = "registry+https://github.com/rust-lang/crates.io-index" 349 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 350 | 351 | [[package]] 352 | name = "chrono" 353 | version = "0.4.19" 354 | source = "registry+https://github.com/rust-lang/crates.io-index" 355 | checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" 356 | dependencies = [ 357 | "js-sys", 358 | "libc", 359 | "num-integer", 360 | "num-traits", 361 | "time", 362 | "wasm-bindgen", 363 | "winapi", 364 | ] 365 | 366 | [[package]] 367 | name = "chrono-tz" 368 | version = "0.6.1" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | checksum = "58549f1842da3080ce63002102d5bc954c7bc843d4f47818e642abdc36253552" 371 | dependencies = [ 372 | "chrono", 373 | "chrono-tz-build", 374 | "phf", 375 | ] 376 | 377 | [[package]] 378 | name = "chrono-tz-build" 379 | version = "0.0.2" 380 | source = "registry+https://github.com/rust-lang/crates.io-index" 381 | checksum = "db058d493fb2f65f41861bfed7e3fe6335264a9f0f92710cab5bdf01fef09069" 382 | dependencies = [ 383 | "parse-zoneinfo", 384 | "phf", 385 | "phf_codegen", 386 | ] 387 | 388 | [[package]] 389 | name = "cipher" 390 | version = "0.3.0" 391 | source = "registry+https://github.com/rust-lang/crates.io-index" 392 | checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" 393 | dependencies = [ 394 | "generic-array 0.14.5", 395 | ] 396 | 397 | [[package]] 398 | name = "coins-bip32" 399 | version = "0.6.0" 400 | source = "registry+https://github.com/rust-lang/crates.io-index" 401 | checksum = "471b39eadc9323de375dce5eff149a5a1ebd21c67f1da34a56f87ee62191d4ea" 402 | dependencies = [ 403 | "bincode", 404 | "bs58", 405 | "coins-core", 406 | "digest 0.9.0", 407 | "getrandom", 408 | "hmac", 409 | "k256 0.10.2", 410 | "lazy_static", 411 | "serde", 412 | "sha2 0.9.9", 413 | "thiserror", 414 | ] 415 | 416 | [[package]] 417 | name = "coins-bip39" 418 | version = "0.6.0" 419 | source = "registry+https://github.com/rust-lang/crates.io-index" 420 | checksum = "8f473ea37dfc9d2cb94fdde50c3d41f28c3f384b367573d66386fea38d76d466" 421 | dependencies = [ 422 | "bitvec 0.17.4", 423 | "coins-bip32", 424 | "getrandom", 425 | "hex", 426 | "hmac", 427 | "pbkdf2", 428 | "rand", 429 | "sha2 0.9.9", 430 | "thiserror", 431 | ] 432 | 433 | [[package]] 434 | name = "coins-core" 435 | version = "0.2.2" 436 | source = "registry+https://github.com/rust-lang/crates.io-index" 437 | checksum = "d257d975731955ee86fa7f348000c3fea09c262e84c70c11e994a85aa4f467a7" 438 | dependencies = [ 439 | "base58check", 440 | "base64 0.12.3", 441 | "bech32", 442 | "blake2", 443 | "digest 0.9.0", 444 | "generic-array 0.14.5", 445 | "hex", 446 | "ripemd160", 447 | "serde", 448 | "serde_derive", 449 | "sha2 0.9.9", 450 | "sha3", 451 | "thiserror", 452 | ] 453 | 454 | [[package]] 455 | name = "colored" 456 | version = "2.0.0" 457 | source = "registry+https://github.com/rust-lang/crates.io-index" 458 | checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd" 459 | dependencies = [ 460 | "atty", 461 | "lazy_static", 462 | "winapi", 463 | ] 464 | 465 | [[package]] 466 | name = "console_error_panic_hook" 467 | version = "0.1.6" 468 | source = "registry+https://github.com/rust-lang/crates.io-index" 469 | checksum = "b8d976903543e0c48546a91908f21588a680a8c8f984df9a5d69feccb2b2a211" 470 | dependencies = [ 471 | "cfg-if 0.1.10", 472 | "wasm-bindgen", 473 | ] 474 | 475 | [[package]] 476 | name = "const-oid" 477 | version = "0.7.1" 478 | source = "registry+https://github.com/rust-lang/crates.io-index" 479 | checksum = "e4c78c047431fee22c1a7bb92e00ad095a02a983affe4d8a72e2a2c62c1b94f3" 480 | 481 | [[package]] 482 | name = "convert_case" 483 | version = "0.5.0" 484 | source = "registry+https://github.com/rust-lang/crates.io-index" 485 | checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" 486 | 487 | [[package]] 488 | name = "cpufeatures" 489 | version = "0.2.1" 490 | source = "registry+https://github.com/rust-lang/crates.io-index" 491 | checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" 492 | dependencies = [ 493 | "libc", 494 | ] 495 | 496 | [[package]] 497 | name = "crossbeam-channel" 498 | version = "0.5.2" 499 | source = "registry+https://github.com/rust-lang/crates.io-index" 500 | checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa" 501 | dependencies = [ 502 | "cfg-if 1.0.0", 503 | "crossbeam-utils", 504 | ] 505 | 506 | [[package]] 507 | name = "crossbeam-deque" 508 | version = "0.8.1" 509 | source = "registry+https://github.com/rust-lang/crates.io-index" 510 | checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" 511 | dependencies = [ 512 | "cfg-if 1.0.0", 513 | "crossbeam-epoch", 514 | "crossbeam-utils", 515 | ] 516 | 517 | [[package]] 518 | name = "crossbeam-epoch" 519 | version = "0.9.6" 520 | source = "registry+https://github.com/rust-lang/crates.io-index" 521 | checksum = "97242a70df9b89a65d0b6df3c4bf5b9ce03c5b7309019777fbde37e7537f8762" 522 | dependencies = [ 523 | "cfg-if 1.0.0", 524 | "crossbeam-utils", 525 | "lazy_static", 526 | "memoffset", 527 | "scopeguard", 528 | ] 529 | 530 | [[package]] 531 | name = "crossbeam-utils" 532 | version = "0.8.6" 533 | source = "registry+https://github.com/rust-lang/crates.io-index" 534 | checksum = "cfcae03edb34f947e64acdb1c33ec169824e20657e9ecb61cef6c8c74dcb8120" 535 | dependencies = [ 536 | "cfg-if 1.0.0", 537 | "lazy_static", 538 | ] 539 | 540 | [[package]] 541 | name = "crunchy" 542 | version = "0.2.2" 543 | source = "registry+https://github.com/rust-lang/crates.io-index" 544 | checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" 545 | 546 | [[package]] 547 | name = "crypto-bigint" 548 | version = "0.2.5" 549 | source = "registry+https://github.com/rust-lang/crates.io-index" 550 | checksum = "8658c15c5d921ddf980f7fe25b1e82f4b7a4083b2c4985fea4922edb8e43e07d" 551 | dependencies = [ 552 | "generic-array 0.14.5", 553 | "rand_core", 554 | "subtle", 555 | "zeroize", 556 | ] 557 | 558 | [[package]] 559 | name = "crypto-bigint" 560 | version = "0.3.2" 561 | source = "registry+https://github.com/rust-lang/crates.io-index" 562 | checksum = "03c6a1d5fa1de37e071642dfa44ec552ca5b299adb128fab16138e24b548fd21" 563 | dependencies = [ 564 | "generic-array 0.14.5", 565 | "rand_core", 566 | "subtle", 567 | "zeroize", 568 | ] 569 | 570 | [[package]] 571 | name = "crypto-common" 572 | version = "0.1.1" 573 | source = "registry+https://github.com/rust-lang/crates.io-index" 574 | checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" 575 | dependencies = [ 576 | "generic-array 0.14.5", 577 | ] 578 | 579 | [[package]] 580 | name = "crypto-mac" 581 | version = "0.8.0" 582 | source = "registry+https://github.com/rust-lang/crates.io-index" 583 | checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" 584 | dependencies = [ 585 | "generic-array 0.14.5", 586 | "subtle", 587 | ] 588 | 589 | [[package]] 590 | name = "crypto-mac" 591 | version = "0.11.1" 592 | source = "registry+https://github.com/rust-lang/crates.io-index" 593 | checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" 594 | dependencies = [ 595 | "generic-array 0.14.5", 596 | "subtle", 597 | ] 598 | 599 | [[package]] 600 | name = "ctr" 601 | version = "0.7.0" 602 | source = "registry+https://github.com/rust-lang/crates.io-index" 603 | checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" 604 | dependencies = [ 605 | "cipher", 606 | ] 607 | 608 | [[package]] 609 | name = "der" 610 | version = "0.4.5" 611 | source = "registry+https://github.com/rust-lang/crates.io-index" 612 | checksum = "79b71cca7d95d7681a4b3b9cdf63c8dbc3730d0584c2c74e31416d64a90493f4" 613 | 614 | [[package]] 615 | name = "der" 616 | version = "0.5.1" 617 | source = "registry+https://github.com/rust-lang/crates.io-index" 618 | checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c" 619 | dependencies = [ 620 | "const-oid", 621 | ] 622 | 623 | [[package]] 624 | name = "diff" 625 | version = "0.1.12" 626 | source = "registry+https://github.com/rust-lang/crates.io-index" 627 | checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499" 628 | 629 | [[package]] 630 | name = "digest" 631 | version = "0.8.1" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" 634 | dependencies = [ 635 | "generic-array 0.12.4", 636 | ] 637 | 638 | [[package]] 639 | name = "digest" 640 | version = "0.9.0" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" 643 | dependencies = [ 644 | "generic-array 0.14.5", 645 | ] 646 | 647 | [[package]] 648 | name = "digest" 649 | version = "0.10.1" 650 | source = "registry+https://github.com/rust-lang/crates.io-index" 651 | checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" 652 | dependencies = [ 653 | "block-buffer 0.10.0", 654 | "crypto-common", 655 | "generic-array 0.14.5", 656 | ] 657 | 658 | [[package]] 659 | name = "dirs-next" 660 | version = "2.0.0" 661 | source = "registry+https://github.com/rust-lang/crates.io-index" 662 | checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" 663 | dependencies = [ 664 | "cfg-if 1.0.0", 665 | "dirs-sys-next", 666 | ] 667 | 668 | [[package]] 669 | name = "dirs-sys-next" 670 | version = "0.1.2" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" 673 | dependencies = [ 674 | "libc", 675 | "redox_users", 676 | "winapi", 677 | ] 678 | 679 | [[package]] 680 | name = "dunce" 681 | version = "1.0.2" 682 | source = "registry+https://github.com/rust-lang/crates.io-index" 683 | checksum = "453440c271cf5577fd2a40e4942540cb7d0d2f85e27c8d07dd0023c925a67541" 684 | 685 | [[package]] 686 | name = "ecdsa" 687 | version = "0.12.4" 688 | source = "registry+https://github.com/rust-lang/crates.io-index" 689 | checksum = "43ee23aa5b4f68c7a092b5c3beb25f50c406adc75e2363634f242f28ab255372" 690 | dependencies = [ 691 | "der 0.4.5", 692 | "elliptic-curve 0.10.4", 693 | "hmac", 694 | "signature", 695 | ] 696 | 697 | [[package]] 698 | name = "ecdsa" 699 | version = "0.13.4" 700 | source = "registry+https://github.com/rust-lang/crates.io-index" 701 | checksum = "d0d69ae62e0ce582d56380743515fefaf1a8c70cec685d9677636d7e30ae9dc9" 702 | dependencies = [ 703 | "der 0.5.1", 704 | "elliptic-curve 0.11.9", 705 | "rfc6979", 706 | "signature", 707 | ] 708 | 709 | [[package]] 710 | name = "either" 711 | version = "1.6.1" 712 | source = "registry+https://github.com/rust-lang/crates.io-index" 713 | checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" 714 | 715 | [[package]] 716 | name = "elliptic-curve" 717 | version = "0.10.4" 718 | source = "registry+https://github.com/rust-lang/crates.io-index" 719 | checksum = "83e5c176479da93a0983f0a6fdc3c1b8e7d5be0d7fe3fe05a99f15b96582b9a8" 720 | dependencies = [ 721 | "crypto-bigint 0.2.5", 722 | "ff 0.10.1", 723 | "generic-array 0.14.5", 724 | "group 0.10.0", 725 | "rand_core", 726 | "subtle", 727 | "zeroize", 728 | ] 729 | 730 | [[package]] 731 | name = "elliptic-curve" 732 | version = "0.11.9" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | checksum = "3a4641673db66b0492d99edd8fd1cf2e6eb4ab91de525d1d2d6cc99442ed15f5" 735 | dependencies = [ 736 | "base16ct", 737 | "crypto-bigint 0.3.2", 738 | "der 0.5.1", 739 | "ff 0.11.0", 740 | "generic-array 0.14.5", 741 | "group 0.11.0", 742 | "rand_core", 743 | "sec1", 744 | "subtle", 745 | "zeroize", 746 | ] 747 | 748 | [[package]] 749 | name = "ena" 750 | version = "0.14.0" 751 | source = "registry+https://github.com/rust-lang/crates.io-index" 752 | checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3" 753 | dependencies = [ 754 | "log", 755 | ] 756 | 757 | [[package]] 758 | name = "encoding_rs" 759 | version = "0.8.30" 760 | source = "registry+https://github.com/rust-lang/crates.io-index" 761 | checksum = "7896dc8abb250ffdda33912550faa54c88ec8b998dec0b2c55ab224921ce11df" 762 | dependencies = [ 763 | "cfg-if 1.0.0", 764 | ] 765 | 766 | [[package]] 767 | name = "eth-keystore" 768 | version = "0.3.0" 769 | source = "registry+https://github.com/rust-lang/crates.io-index" 770 | checksum = "d47d900a7dea08593d398104f8288e37858b0ad714c8d08cd03fdb86563e6402" 771 | dependencies = [ 772 | "aes", 773 | "ctr", 774 | "digest 0.9.0", 775 | "hex", 776 | "hmac", 777 | "pbkdf2", 778 | "rand", 779 | "scrypt", 780 | "serde", 781 | "serde_json", 782 | "sha2 0.9.9", 783 | "sha3", 784 | "thiserror", 785 | "uuid", 786 | ] 787 | 788 | [[package]] 789 | name = "ethabi" 790 | version = "15.0.0" 791 | source = "registry+https://github.com/rust-lang/crates.io-index" 792 | checksum = "f76ef192b63e8a44b3d08832acebbb984c3fba154b5c26f70037c860202a0d4b" 793 | dependencies = [ 794 | "anyhow", 795 | "ethereum-types", 796 | "hex", 797 | "serde", 798 | "serde_json", 799 | "sha3", 800 | "thiserror", 801 | "uint", 802 | ] 803 | 804 | [[package]] 805 | name = "ethabi" 806 | version = "16.0.0" 807 | source = "git+https://github.com/rust-ethereum/ethabi?branch=master#c622438f9fd2ac2f9b3c38ecb1ca760c069d9ec2" 808 | dependencies = [ 809 | "ethereum-types", 810 | "hex", 811 | "once_cell", 812 | "regex", 813 | "serde", 814 | "serde_json", 815 | "sha3", 816 | "thiserror", 817 | "uint", 818 | ] 819 | 820 | [[package]] 821 | name = "ethbloom" 822 | version = "0.11.1" 823 | source = "registry+https://github.com/rust-lang/crates.io-index" 824 | checksum = "bfb684ac8fa8f6c5759f788862bb22ec6fe3cb392f6bfd08e3c64b603661e3f8" 825 | dependencies = [ 826 | "crunchy", 827 | "fixed-hash", 828 | "impl-rlp", 829 | "impl-serde", 830 | "tiny-keccak", 831 | ] 832 | 833 | [[package]] 834 | name = "ethereum-types" 835 | version = "0.12.1" 836 | source = "registry+https://github.com/rust-lang/crates.io-index" 837 | checksum = "05136f7057fe789f06e6d41d07b34e6f70d8c86e5693b60f97aaa6553553bdaf" 838 | dependencies = [ 839 | "ethbloom", 840 | "fixed-hash", 841 | "impl-rlp", 842 | "impl-serde", 843 | "primitive-types", 844 | "uint", 845 | ] 846 | 847 | [[package]] 848 | name = "ethers" 849 | version = "0.6.0" 850 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 851 | dependencies = [ 852 | "ethers-addressbook", 853 | "ethers-contract", 854 | "ethers-core 0.6.0", 855 | "ethers-etherscan", 856 | "ethers-middleware", 857 | "ethers-providers", 858 | "ethers-signers", 859 | "ethers-solc", 860 | ] 861 | 862 | [[package]] 863 | name = "ethers-addressbook" 864 | version = "0.1.0" 865 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 866 | dependencies = [ 867 | "ethers-core 0.6.0", 868 | "once_cell", 869 | "serde", 870 | "serde_json", 871 | ] 872 | 873 | [[package]] 874 | name = "ethers-contract" 875 | version = "0.6.0" 876 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 877 | dependencies = [ 878 | "ethers-contract-abigen", 879 | "ethers-contract-derive", 880 | "ethers-core 0.6.0", 881 | "ethers-providers", 882 | "futures-util", 883 | "hex", 884 | "once_cell", 885 | "pin-project", 886 | "serde", 887 | "serde_json", 888 | "thiserror", 889 | ] 890 | 891 | [[package]] 892 | name = "ethers-contract-abigen" 893 | version = "0.6.0" 894 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 895 | dependencies = [ 896 | "Inflector", 897 | "anyhow", 898 | "cfg-if 1.0.0", 899 | "dunce", 900 | "ethers-core 0.6.0", 901 | "getrandom", 902 | "hex", 903 | "once_cell", 904 | "proc-macro2", 905 | "quote", 906 | "reqwest", 907 | "serde", 908 | "serde_json", 909 | "syn", 910 | "url", 911 | "walkdir", 912 | ] 913 | 914 | [[package]] 915 | name = "ethers-contract-derive" 916 | version = "0.6.0" 917 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 918 | dependencies = [ 919 | "ethers-contract-abigen", 920 | "ethers-core 0.6.0", 921 | "hex", 922 | "proc-macro2", 923 | "quote", 924 | "serde_json", 925 | "syn", 926 | ] 927 | 928 | [[package]] 929 | name = "ethers-core" 930 | version = "0.6.0" 931 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 932 | dependencies = [ 933 | "arrayvec", 934 | "bytes", 935 | "cargo_metadata", 936 | "convert_case", 937 | "ecdsa 0.13.4", 938 | "elliptic-curve 0.11.9", 939 | "ethabi 16.0.0", 940 | "generic-array 0.14.5", 941 | "hex", 942 | "k256 0.10.2", 943 | "once_cell", 944 | "proc-macro2", 945 | "quote", 946 | "rand", 947 | "rlp", 948 | "rlp-derive", 949 | "serde", 950 | "serde_json", 951 | "syn", 952 | "thiserror", 953 | "tiny-keccak", 954 | ] 955 | 956 | [[package]] 957 | name = "ethers-core" 958 | version = "0.6.3" 959 | source = "registry+https://github.com/rust-lang/crates.io-index" 960 | checksum = "f15e1a2a54bc6bc3f8ea94afafbb374264f8322fcacdae06fefda80a206739ac" 961 | dependencies = [ 962 | "arrayvec", 963 | "bytes", 964 | "ecdsa 0.12.4", 965 | "elliptic-curve 0.11.9", 966 | "ethabi 15.0.0", 967 | "generic-array 0.14.5", 968 | "hex", 969 | "k256 0.9.5", 970 | "once_cell", 971 | "rand", 972 | "rlp", 973 | "rlp-derive", 974 | "serde", 975 | "serde_json", 976 | "thiserror", 977 | "tiny-keccak", 978 | ] 979 | 980 | [[package]] 981 | name = "ethers-etherscan" 982 | version = "0.2.0" 983 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 984 | dependencies = [ 985 | "ethers-core 0.6.0", 986 | "reqwest", 987 | "serde", 988 | "serde-aux", 989 | "serde_json", 990 | "thiserror", 991 | ] 992 | 993 | [[package]] 994 | name = "ethers-middleware" 995 | version = "0.6.0" 996 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 997 | dependencies = [ 998 | "async-trait", 999 | "ethers-contract", 1000 | "ethers-core 0.6.0", 1001 | "ethers-etherscan", 1002 | "ethers-providers", 1003 | "ethers-signers", 1004 | "futures-util", 1005 | "instant", 1006 | "reqwest", 1007 | "serde", 1008 | "serde_json", 1009 | "thiserror", 1010 | "tokio", 1011 | "tracing", 1012 | "tracing-futures", 1013 | "url", 1014 | ] 1015 | 1016 | [[package]] 1017 | name = "ethers-providers" 1018 | version = "0.6.0" 1019 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 1020 | dependencies = [ 1021 | "async-trait", 1022 | "auto_impl", 1023 | "ethers-core 0.6.0", 1024 | "futures-channel", 1025 | "futures-core", 1026 | "futures-timer", 1027 | "futures-util", 1028 | "hex", 1029 | "parking_lot", 1030 | "pin-project", 1031 | "reqwest", 1032 | "serde", 1033 | "serde_json", 1034 | "thiserror", 1035 | "tracing", 1036 | "tracing-futures", 1037 | "url", 1038 | "wasm-bindgen", 1039 | "wasm-bindgen-futures", 1040 | "wasm-timer", 1041 | "web-sys", 1042 | "ws_stream_wasm", 1043 | ] 1044 | 1045 | [[package]] 1046 | name = "ethers-signers" 1047 | version = "0.6.0" 1048 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 1049 | dependencies = [ 1050 | "async-trait", 1051 | "coins-bip32", 1052 | "coins-bip39", 1053 | "elliptic-curve 0.11.9", 1054 | "eth-keystore", 1055 | "ethers-core 0.6.0", 1056 | "futures-executor", 1057 | "futures-util", 1058 | "hex", 1059 | "home", 1060 | "rand", 1061 | "semver", 1062 | "sha2 0.9.9", 1063 | "thiserror", 1064 | ] 1065 | 1066 | [[package]] 1067 | name = "ethers-solc" 1068 | version = "0.1.0" 1069 | source = "git+https://github.com/odyslam/ethers-rs?branch=fix/worker-compile#988523697876ebbfccea99a821c6900364cfbf9f" 1070 | dependencies = [ 1071 | "colored", 1072 | "dunce", 1073 | "ethers-core 0.6.0", 1074 | "getrandom", 1075 | "glob", 1076 | "hex", 1077 | "home", 1078 | "md-5", 1079 | "num_cpus", 1080 | "once_cell", 1081 | "rayon", 1082 | "regex", 1083 | "semver", 1084 | "serde", 1085 | "serde_json", 1086 | "sha2 0.9.9", 1087 | "solang-parser", 1088 | "thiserror", 1089 | "tiny-keccak", 1090 | "tracing", 1091 | "walkdir", 1092 | ] 1093 | 1094 | [[package]] 1095 | name = "ethsig-rs" 1096 | version = "0.1.0" 1097 | dependencies = [ 1098 | "anyhow", 1099 | "cfg-if 0.1.10", 1100 | "console_error_panic_hook", 1101 | "ethers", 1102 | "hex", 1103 | "iri-string", 1104 | "rand", 1105 | "serde", 1106 | "serde_json", 1107 | "sha2 0.10.1", 1108 | "siwe", 1109 | "thiserror", 1110 | "worker", 1111 | ] 1112 | 1113 | [[package]] 1114 | name = "fake-simd" 1115 | version = "0.1.2" 1116 | source = "registry+https://github.com/rust-lang/crates.io-index" 1117 | checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" 1118 | 1119 | [[package]] 1120 | name = "ff" 1121 | version = "0.10.1" 1122 | source = "registry+https://github.com/rust-lang/crates.io-index" 1123 | checksum = "d0f40b2dcd8bc322217a5f6559ae5f9e9d1de202a2ecee2e9eafcbece7562a4f" 1124 | dependencies = [ 1125 | "rand_core", 1126 | "subtle", 1127 | ] 1128 | 1129 | [[package]] 1130 | name = "ff" 1131 | version = "0.11.0" 1132 | source = "registry+https://github.com/rust-lang/crates.io-index" 1133 | checksum = "b2958d04124b9f27f175eaeb9a9f383d026098aa837eadd8ba22c11f13a05b9e" 1134 | dependencies = [ 1135 | "rand_core", 1136 | "subtle", 1137 | ] 1138 | 1139 | [[package]] 1140 | name = "fixed-hash" 1141 | version = "0.7.0" 1142 | source = "registry+https://github.com/rust-lang/crates.io-index" 1143 | checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c" 1144 | dependencies = [ 1145 | "byteorder", 1146 | "rand", 1147 | "rustc-hex", 1148 | "static_assertions", 1149 | ] 1150 | 1151 | [[package]] 1152 | name = "fixedbitset" 1153 | version = "0.2.0" 1154 | source = "registry+https://github.com/rust-lang/crates.io-index" 1155 | checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" 1156 | 1157 | [[package]] 1158 | name = "fnv" 1159 | version = "1.0.7" 1160 | source = "registry+https://github.com/rust-lang/crates.io-index" 1161 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 1162 | 1163 | [[package]] 1164 | name = "form_urlencoded" 1165 | version = "1.0.1" 1166 | source = "registry+https://github.com/rust-lang/crates.io-index" 1167 | checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" 1168 | dependencies = [ 1169 | "matches", 1170 | "percent-encoding", 1171 | ] 1172 | 1173 | [[package]] 1174 | name = "funty" 1175 | version = "1.1.0" 1176 | source = "registry+https://github.com/rust-lang/crates.io-index" 1177 | checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" 1178 | 1179 | [[package]] 1180 | name = "futures" 1181 | version = "0.3.17" 1182 | source = "registry+https://github.com/rust-lang/crates.io-index" 1183 | checksum = "a12aa0eb539080d55c3f2d45a67c3b58b6b0773c1a3ca2dfec66d58c97fd66ca" 1184 | dependencies = [ 1185 | "futures-channel", 1186 | "futures-core", 1187 | "futures-executor", 1188 | "futures-io", 1189 | "futures-sink", 1190 | "futures-task", 1191 | "futures-util", 1192 | ] 1193 | 1194 | [[package]] 1195 | name = "futures-channel" 1196 | version = "0.3.17" 1197 | source = "registry+https://github.com/rust-lang/crates.io-index" 1198 | checksum = "5da6ba8c3bb3c165d3c7319fc1cc8304facf1fb8db99c5de877183c08a273888" 1199 | dependencies = [ 1200 | "futures-core", 1201 | "futures-sink", 1202 | ] 1203 | 1204 | [[package]] 1205 | name = "futures-core" 1206 | version = "0.3.17" 1207 | source = "registry+https://github.com/rust-lang/crates.io-index" 1208 | checksum = "88d1c26957f23603395cd326b0ffe64124b818f4449552f960d815cfba83a53d" 1209 | 1210 | [[package]] 1211 | name = "futures-executor" 1212 | version = "0.3.17" 1213 | source = "registry+https://github.com/rust-lang/crates.io-index" 1214 | checksum = "45025be030969d763025784f7f355043dc6bc74093e4ecc5000ca4dc50d8745c" 1215 | dependencies = [ 1216 | "futures-core", 1217 | "futures-task", 1218 | "futures-util", 1219 | ] 1220 | 1221 | [[package]] 1222 | name = "futures-io" 1223 | version = "0.3.17" 1224 | source = "registry+https://github.com/rust-lang/crates.io-index" 1225 | checksum = "522de2a0fe3e380f1bc577ba0474108faf3f6b18321dbf60b3b9c39a75073377" 1226 | 1227 | [[package]] 1228 | name = "futures-macro" 1229 | version = "0.3.17" 1230 | source = "registry+https://github.com/rust-lang/crates.io-index" 1231 | checksum = "18e4a4b95cea4b4ccbcf1c5675ca7c4ee4e9e75eb79944d07defde18068f79bb" 1232 | dependencies = [ 1233 | "autocfg", 1234 | "proc-macro-hack", 1235 | "proc-macro2", 1236 | "quote", 1237 | "syn", 1238 | ] 1239 | 1240 | [[package]] 1241 | name = "futures-sink" 1242 | version = "0.3.17" 1243 | source = "registry+https://github.com/rust-lang/crates.io-index" 1244 | checksum = "36ea153c13024fe480590b3e3d4cad89a0cfacecc24577b68f86c6ced9c2bc11" 1245 | 1246 | [[package]] 1247 | name = "futures-task" 1248 | version = "0.3.17" 1249 | source = "registry+https://github.com/rust-lang/crates.io-index" 1250 | checksum = "1d3d00f4eddb73e498a54394f228cd55853bdf059259e8e7bc6e69d408892e99" 1251 | 1252 | [[package]] 1253 | name = "futures-timer" 1254 | version = "3.0.2" 1255 | source = "registry+https://github.com/rust-lang/crates.io-index" 1256 | checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" 1257 | 1258 | [[package]] 1259 | name = "futures-util" 1260 | version = "0.3.17" 1261 | source = "registry+https://github.com/rust-lang/crates.io-index" 1262 | checksum = "36568465210a3a6ee45e1f165136d68671471a501e632e9a98d96872222b5481" 1263 | dependencies = [ 1264 | "autocfg", 1265 | "futures-channel", 1266 | "futures-core", 1267 | "futures-io", 1268 | "futures-macro", 1269 | "futures-sink", 1270 | "futures-task", 1271 | "memchr", 1272 | "pin-project-lite", 1273 | "pin-utils", 1274 | "proc-macro-hack", 1275 | "proc-macro-nested", 1276 | "slab", 1277 | ] 1278 | 1279 | [[package]] 1280 | name = "generic-array" 1281 | version = "0.12.4" 1282 | source = "registry+https://github.com/rust-lang/crates.io-index" 1283 | checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" 1284 | dependencies = [ 1285 | "typenum", 1286 | ] 1287 | 1288 | [[package]] 1289 | name = "generic-array" 1290 | version = "0.14.5" 1291 | source = "registry+https://github.com/rust-lang/crates.io-index" 1292 | checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" 1293 | dependencies = [ 1294 | "typenum", 1295 | "version_check", 1296 | ] 1297 | 1298 | [[package]] 1299 | name = "getrandom" 1300 | version = "0.2.4" 1301 | source = "registry+https://github.com/rust-lang/crates.io-index" 1302 | checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" 1303 | dependencies = [ 1304 | "cfg-if 1.0.0", 1305 | "js-sys", 1306 | "libc", 1307 | "wasi", 1308 | "wasm-bindgen", 1309 | ] 1310 | 1311 | [[package]] 1312 | name = "glob" 1313 | version = "0.3.0" 1314 | source = "registry+https://github.com/rust-lang/crates.io-index" 1315 | checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" 1316 | 1317 | [[package]] 1318 | name = "group" 1319 | version = "0.10.0" 1320 | source = "registry+https://github.com/rust-lang/crates.io-index" 1321 | checksum = "1c363a5301b8f153d80747126a04b3c82073b9fe3130571a9d170cacdeaf7912" 1322 | dependencies = [ 1323 | "ff 0.10.1", 1324 | "rand_core", 1325 | "subtle", 1326 | ] 1327 | 1328 | [[package]] 1329 | name = "group" 1330 | version = "0.11.0" 1331 | source = "registry+https://github.com/rust-lang/crates.io-index" 1332 | checksum = "bc5ac374b108929de78460075f3dc439fa66df9d8fc77e8f12caa5165fcf0c89" 1333 | dependencies = [ 1334 | "ff 0.11.0", 1335 | "rand_core", 1336 | "subtle", 1337 | ] 1338 | 1339 | [[package]] 1340 | name = "h2" 1341 | version = "0.3.10" 1342 | source = "registry+https://github.com/rust-lang/crates.io-index" 1343 | checksum = "0c9de88456263e249e241fcd211d3954e2c9b0ef7ccfc235a444eb367cae3689" 1344 | dependencies = [ 1345 | "bytes", 1346 | "fnv", 1347 | "futures-core", 1348 | "futures-sink", 1349 | "futures-util", 1350 | "http", 1351 | "indexmap", 1352 | "slab", 1353 | "tokio", 1354 | "tokio-util", 1355 | "tracing", 1356 | ] 1357 | 1358 | [[package]] 1359 | name = "hashbrown" 1360 | version = "0.11.2" 1361 | source = "registry+https://github.com/rust-lang/crates.io-index" 1362 | checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" 1363 | 1364 | [[package]] 1365 | name = "hermit-abi" 1366 | version = "0.1.19" 1367 | source = "registry+https://github.com/rust-lang/crates.io-index" 1368 | checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 1369 | dependencies = [ 1370 | "libc", 1371 | ] 1372 | 1373 | [[package]] 1374 | name = "hex" 1375 | version = "0.4.3" 1376 | source = "registry+https://github.com/rust-lang/crates.io-index" 1377 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" 1378 | 1379 | [[package]] 1380 | name = "hmac" 1381 | version = "0.11.0" 1382 | source = "registry+https://github.com/rust-lang/crates.io-index" 1383 | checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" 1384 | dependencies = [ 1385 | "crypto-mac 0.11.1", 1386 | "digest 0.9.0", 1387 | ] 1388 | 1389 | [[package]] 1390 | name = "home" 1391 | version = "0.5.3" 1392 | source = "registry+https://github.com/rust-lang/crates.io-index" 1393 | checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654" 1394 | dependencies = [ 1395 | "winapi", 1396 | ] 1397 | 1398 | [[package]] 1399 | name = "http" 1400 | version = "0.2.6" 1401 | source = "registry+https://github.com/rust-lang/crates.io-index" 1402 | checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03" 1403 | dependencies = [ 1404 | "bytes", 1405 | "fnv", 1406 | "itoa 1.0.1", 1407 | ] 1408 | 1409 | [[package]] 1410 | name = "http-body" 1411 | version = "0.4.4" 1412 | source = "registry+https://github.com/rust-lang/crates.io-index" 1413 | checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6" 1414 | dependencies = [ 1415 | "bytes", 1416 | "http", 1417 | "pin-project-lite", 1418 | ] 1419 | 1420 | [[package]] 1421 | name = "httparse" 1422 | version = "1.5.1" 1423 | source = "registry+https://github.com/rust-lang/crates.io-index" 1424 | checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" 1425 | 1426 | [[package]] 1427 | name = "httpdate" 1428 | version = "1.0.2" 1429 | source = "registry+https://github.com/rust-lang/crates.io-index" 1430 | checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" 1431 | 1432 | [[package]] 1433 | name = "hyper" 1434 | version = "0.14.16" 1435 | source = "registry+https://github.com/rust-lang/crates.io-index" 1436 | checksum = "b7ec3e62bdc98a2f0393a5048e4c30ef659440ea6e0e572965103e72bd836f55" 1437 | dependencies = [ 1438 | "bytes", 1439 | "futures-channel", 1440 | "futures-core", 1441 | "futures-util", 1442 | "h2", 1443 | "http", 1444 | "http-body", 1445 | "httparse", 1446 | "httpdate", 1447 | "itoa 0.4.8", 1448 | "pin-project-lite", 1449 | "socket2", 1450 | "tokio", 1451 | "tower-service", 1452 | "tracing", 1453 | "want", 1454 | ] 1455 | 1456 | [[package]] 1457 | name = "hyper-rustls" 1458 | version = "0.23.0" 1459 | source = "registry+https://github.com/rust-lang/crates.io-index" 1460 | checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" 1461 | dependencies = [ 1462 | "http", 1463 | "hyper", 1464 | "rustls", 1465 | "tokio", 1466 | "tokio-rustls", 1467 | ] 1468 | 1469 | [[package]] 1470 | name = "idna" 1471 | version = "0.2.3" 1472 | source = "registry+https://github.com/rust-lang/crates.io-index" 1473 | checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" 1474 | dependencies = [ 1475 | "matches", 1476 | "unicode-bidi", 1477 | "unicode-normalization", 1478 | ] 1479 | 1480 | [[package]] 1481 | name = "impl-codec" 1482 | version = "0.5.1" 1483 | source = "registry+https://github.com/rust-lang/crates.io-index" 1484 | checksum = "161ebdfec3c8e3b52bf61c4f3550a1eea4f9579d10dc1b936f3171ebdcd6c443" 1485 | dependencies = [ 1486 | "parity-scale-codec", 1487 | ] 1488 | 1489 | [[package]] 1490 | name = "impl-rlp" 1491 | version = "0.3.0" 1492 | source = "registry+https://github.com/rust-lang/crates.io-index" 1493 | checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" 1494 | dependencies = [ 1495 | "rlp", 1496 | ] 1497 | 1498 | [[package]] 1499 | name = "impl-serde" 1500 | version = "0.3.2" 1501 | source = "registry+https://github.com/rust-lang/crates.io-index" 1502 | checksum = "4551f042f3438e64dbd6226b20527fc84a6e1fe65688b58746a2f53623f25f5c" 1503 | dependencies = [ 1504 | "serde", 1505 | ] 1506 | 1507 | [[package]] 1508 | name = "impl-trait-for-tuples" 1509 | version = "0.2.1" 1510 | source = "registry+https://github.com/rust-lang/crates.io-index" 1511 | checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" 1512 | dependencies = [ 1513 | "proc-macro2", 1514 | "quote", 1515 | "syn", 1516 | ] 1517 | 1518 | [[package]] 1519 | name = "indexmap" 1520 | version = "1.8.0" 1521 | source = "registry+https://github.com/rust-lang/crates.io-index" 1522 | checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" 1523 | dependencies = [ 1524 | "autocfg", 1525 | "hashbrown", 1526 | ] 1527 | 1528 | [[package]] 1529 | name = "instant" 1530 | version = "0.1.12" 1531 | source = "registry+https://github.com/rust-lang/crates.io-index" 1532 | checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" 1533 | dependencies = [ 1534 | "cfg-if 1.0.0", 1535 | "js-sys", 1536 | "wasm-bindgen", 1537 | "web-sys", 1538 | ] 1539 | 1540 | [[package]] 1541 | name = "ipnet" 1542 | version = "2.3.1" 1543 | source = "registry+https://github.com/rust-lang/crates.io-index" 1544 | checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" 1545 | 1546 | [[package]] 1547 | name = "iri-string" 1548 | version = "0.4.1" 1549 | source = "registry+https://github.com/rust-lang/crates.io-index" 1550 | checksum = "8f0f7638c1e223529f1bfdc48c8b133b9e0b434094d1d28473161ee48b235f78" 1551 | dependencies = [ 1552 | "nom", 1553 | ] 1554 | 1555 | [[package]] 1556 | name = "itertools" 1557 | version = "0.10.3" 1558 | source = "registry+https://github.com/rust-lang/crates.io-index" 1559 | checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" 1560 | dependencies = [ 1561 | "either", 1562 | ] 1563 | 1564 | [[package]] 1565 | name = "itoa" 1566 | version = "0.4.8" 1567 | source = "registry+https://github.com/rust-lang/crates.io-index" 1568 | checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" 1569 | 1570 | [[package]] 1571 | name = "itoa" 1572 | version = "1.0.1" 1573 | source = "registry+https://github.com/rust-lang/crates.io-index" 1574 | checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" 1575 | 1576 | [[package]] 1577 | name = "js-sys" 1578 | version = "0.3.55" 1579 | source = "registry+https://github.com/rust-lang/crates.io-index" 1580 | checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84" 1581 | dependencies = [ 1582 | "wasm-bindgen", 1583 | ] 1584 | 1585 | [[package]] 1586 | name = "k256" 1587 | version = "0.9.5" 1588 | source = "registry+https://github.com/rust-lang/crates.io-index" 1589 | checksum = "008b0281ca8032567c9711cd48631781c15228301860a39b32deb28d63125e46" 1590 | dependencies = [ 1591 | "cfg-if 1.0.0", 1592 | "ecdsa 0.12.4", 1593 | "elliptic-curve 0.10.4", 1594 | "sha3", 1595 | ] 1596 | 1597 | [[package]] 1598 | name = "k256" 1599 | version = "0.10.2" 1600 | source = "registry+https://github.com/rust-lang/crates.io-index" 1601 | checksum = "1cc5937366afd3b38071f400d1ce5bd8b1d40b5083cc14e6f8dbcc4032a7f5bb" 1602 | dependencies = [ 1603 | "cfg-if 1.0.0", 1604 | "ecdsa 0.13.4", 1605 | "elliptic-curve 0.11.9", 1606 | "sec1", 1607 | "sha2 0.9.9", 1608 | "sha3", 1609 | ] 1610 | 1611 | [[package]] 1612 | name = "keccak" 1613 | version = "0.1.0" 1614 | source = "registry+https://github.com/rust-lang/crates.io-index" 1615 | checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7" 1616 | 1617 | [[package]] 1618 | name = "lalrpop" 1619 | version = "0.19.7" 1620 | source = "registry+https://github.com/rust-lang/crates.io-index" 1621 | checksum = "852b75a095da6b69da8c5557731c3afd06525d4f655a4fc1c799e2ec8bc4dce4" 1622 | dependencies = [ 1623 | "ascii-canvas", 1624 | "atty", 1625 | "bit-set", 1626 | "diff", 1627 | "ena", 1628 | "itertools", 1629 | "lalrpop-util", 1630 | "petgraph", 1631 | "pico-args", 1632 | "regex", 1633 | "regex-syntax", 1634 | "string_cache", 1635 | "term", 1636 | "tiny-keccak", 1637 | "unicode-xid", 1638 | ] 1639 | 1640 | [[package]] 1641 | name = "lalrpop-util" 1642 | version = "0.19.7" 1643 | source = "registry+https://github.com/rust-lang/crates.io-index" 1644 | checksum = "d6d265705249fe209280676d8f68887859fa42e1d34f342fc05bd47726a5e188" 1645 | dependencies = [ 1646 | "regex", 1647 | ] 1648 | 1649 | [[package]] 1650 | name = "lazy_static" 1651 | version = "1.4.0" 1652 | source = "registry+https://github.com/rust-lang/crates.io-index" 1653 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 1654 | 1655 | [[package]] 1656 | name = "libc" 1657 | version = "0.2.101" 1658 | source = "registry+https://github.com/rust-lang/crates.io-index" 1659 | checksum = "3cb00336871be5ed2c8ed44b60ae9959dc5b9f08539422ed43f09e34ecaeba21" 1660 | 1661 | [[package]] 1662 | name = "lock_api" 1663 | version = "0.4.5" 1664 | source = "registry+https://github.com/rust-lang/crates.io-index" 1665 | checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109" 1666 | dependencies = [ 1667 | "scopeguard", 1668 | ] 1669 | 1670 | [[package]] 1671 | name = "log" 1672 | version = "0.4.14" 1673 | source = "registry+https://github.com/rust-lang/crates.io-index" 1674 | checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" 1675 | dependencies = [ 1676 | "cfg-if 1.0.0", 1677 | ] 1678 | 1679 | [[package]] 1680 | name = "matches" 1681 | version = "0.1.9" 1682 | source = "registry+https://github.com/rust-lang/crates.io-index" 1683 | checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" 1684 | 1685 | [[package]] 1686 | name = "matchit" 1687 | version = "0.4.2" 1688 | source = "registry+https://github.com/rust-lang/crates.io-index" 1689 | checksum = "31cfc429bbf773f52282c32c240342a21495ce9fa1e3721998295d2027969f6a" 1690 | 1691 | [[package]] 1692 | name = "md-5" 1693 | version = "0.10.0" 1694 | source = "registry+https://github.com/rust-lang/crates.io-index" 1695 | checksum = "e6a38fc55c8bbc10058782919516f88826e70320db6d206aebc49611d24216ae" 1696 | dependencies = [ 1697 | "digest 0.10.1", 1698 | ] 1699 | 1700 | [[package]] 1701 | name = "memchr" 1702 | version = "2.4.1" 1703 | source = "registry+https://github.com/rust-lang/crates.io-index" 1704 | checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" 1705 | 1706 | [[package]] 1707 | name = "memoffset" 1708 | version = "0.6.5" 1709 | source = "registry+https://github.com/rust-lang/crates.io-index" 1710 | checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" 1711 | dependencies = [ 1712 | "autocfg", 1713 | ] 1714 | 1715 | [[package]] 1716 | name = "mime" 1717 | version = "0.3.16" 1718 | source = "registry+https://github.com/rust-lang/crates.io-index" 1719 | checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 1720 | 1721 | [[package]] 1722 | name = "minimal-lexical" 1723 | version = "0.2.1" 1724 | source = "registry+https://github.com/rust-lang/crates.io-index" 1725 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 1726 | 1727 | [[package]] 1728 | name = "mio" 1729 | version = "0.7.14" 1730 | source = "registry+https://github.com/rust-lang/crates.io-index" 1731 | checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" 1732 | dependencies = [ 1733 | "libc", 1734 | "log", 1735 | "miow", 1736 | "ntapi", 1737 | "winapi", 1738 | ] 1739 | 1740 | [[package]] 1741 | name = "miow" 1742 | version = "0.3.7" 1743 | source = "registry+https://github.com/rust-lang/crates.io-index" 1744 | checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" 1745 | dependencies = [ 1746 | "winapi", 1747 | ] 1748 | 1749 | [[package]] 1750 | name = "new_debug_unreachable" 1751 | version = "1.0.4" 1752 | source = "registry+https://github.com/rust-lang/crates.io-index" 1753 | checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" 1754 | 1755 | [[package]] 1756 | name = "nom" 1757 | version = "7.1.0" 1758 | source = "registry+https://github.com/rust-lang/crates.io-index" 1759 | checksum = "1b1d11e1ef389c76fe5b81bcaf2ea32cf88b62bc494e19f493d0b30e7a930109" 1760 | dependencies = [ 1761 | "memchr", 1762 | "minimal-lexical", 1763 | "version_check", 1764 | ] 1765 | 1766 | [[package]] 1767 | name = "ntapi" 1768 | version = "0.3.6" 1769 | source = "registry+https://github.com/rust-lang/crates.io-index" 1770 | checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" 1771 | dependencies = [ 1772 | "winapi", 1773 | ] 1774 | 1775 | [[package]] 1776 | name = "num-bigint" 1777 | version = "0.4.3" 1778 | source = "registry+https://github.com/rust-lang/crates.io-index" 1779 | checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" 1780 | dependencies = [ 1781 | "autocfg", 1782 | "num-integer", 1783 | "num-traits", 1784 | ] 1785 | 1786 | [[package]] 1787 | name = "num-integer" 1788 | version = "0.1.44" 1789 | source = "registry+https://github.com/rust-lang/crates.io-index" 1790 | checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" 1791 | dependencies = [ 1792 | "autocfg", 1793 | "num-traits", 1794 | ] 1795 | 1796 | [[package]] 1797 | name = "num-rational" 1798 | version = "0.4.0" 1799 | source = "registry+https://github.com/rust-lang/crates.io-index" 1800 | checksum = "d41702bd167c2df5520b384281bc111a4b5efcf7fbc4c9c222c815b07e0a6a6a" 1801 | dependencies = [ 1802 | "autocfg", 1803 | "num-bigint", 1804 | "num-integer", 1805 | "num-traits", 1806 | ] 1807 | 1808 | [[package]] 1809 | name = "num-traits" 1810 | version = "0.2.14" 1811 | source = "registry+https://github.com/rust-lang/crates.io-index" 1812 | checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" 1813 | dependencies = [ 1814 | "autocfg", 1815 | ] 1816 | 1817 | [[package]] 1818 | name = "num_cpus" 1819 | version = "1.13.1" 1820 | source = "registry+https://github.com/rust-lang/crates.io-index" 1821 | checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" 1822 | dependencies = [ 1823 | "hermit-abi", 1824 | "libc", 1825 | ] 1826 | 1827 | [[package]] 1828 | name = "once_cell" 1829 | version = "1.9.0" 1830 | source = "registry+https://github.com/rust-lang/crates.io-index" 1831 | checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" 1832 | 1833 | [[package]] 1834 | name = "opaque-debug" 1835 | version = "0.2.3" 1836 | source = "registry+https://github.com/rust-lang/crates.io-index" 1837 | checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" 1838 | 1839 | [[package]] 1840 | name = "opaque-debug" 1841 | version = "0.3.0" 1842 | source = "registry+https://github.com/rust-lang/crates.io-index" 1843 | checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" 1844 | 1845 | [[package]] 1846 | name = "parity-scale-codec" 1847 | version = "2.3.1" 1848 | source = "registry+https://github.com/rust-lang/crates.io-index" 1849 | checksum = "373b1a4c1338d9cd3d1fa53b3a11bdab5ab6bd80a20f7f7becd76953ae2be909" 1850 | dependencies = [ 1851 | "arrayvec", 1852 | "bitvec 0.20.4", 1853 | "byte-slice-cast", 1854 | "impl-trait-for-tuples", 1855 | "parity-scale-codec-derive", 1856 | "serde", 1857 | ] 1858 | 1859 | [[package]] 1860 | name = "parity-scale-codec-derive" 1861 | version = "2.3.1" 1862 | source = "registry+https://github.com/rust-lang/crates.io-index" 1863 | checksum = "1557010476e0595c9b568d16dcfb81b93cdeb157612726f5170d31aa707bed27" 1864 | dependencies = [ 1865 | "proc-macro-crate", 1866 | "proc-macro2", 1867 | "quote", 1868 | "syn", 1869 | ] 1870 | 1871 | [[package]] 1872 | name = "parking_lot" 1873 | version = "0.11.2" 1874 | source = "registry+https://github.com/rust-lang/crates.io-index" 1875 | checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" 1876 | dependencies = [ 1877 | "instant", 1878 | "lock_api", 1879 | "parking_lot_core", 1880 | ] 1881 | 1882 | [[package]] 1883 | name = "parking_lot_core" 1884 | version = "0.8.5" 1885 | source = "registry+https://github.com/rust-lang/crates.io-index" 1886 | checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" 1887 | dependencies = [ 1888 | "cfg-if 1.0.0", 1889 | "instant", 1890 | "libc", 1891 | "redox_syscall", 1892 | "smallvec", 1893 | "winapi", 1894 | ] 1895 | 1896 | [[package]] 1897 | name = "parse-zoneinfo" 1898 | version = "0.3.0" 1899 | source = "registry+https://github.com/rust-lang/crates.io-index" 1900 | checksum = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41" 1901 | dependencies = [ 1902 | "regex", 1903 | ] 1904 | 1905 | [[package]] 1906 | name = "password-hash" 1907 | version = "0.2.3" 1908 | source = "registry+https://github.com/rust-lang/crates.io-index" 1909 | checksum = "77e0b28ace46c5a396546bcf443bf422b57049617433d8854227352a4a9b24e7" 1910 | dependencies = [ 1911 | "base64ct", 1912 | "rand_core", 1913 | "subtle", 1914 | ] 1915 | 1916 | [[package]] 1917 | name = "pbkdf2" 1918 | version = "0.8.0" 1919 | source = "registry+https://github.com/rust-lang/crates.io-index" 1920 | checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" 1921 | dependencies = [ 1922 | "base64ct", 1923 | "crypto-mac 0.11.1", 1924 | "hmac", 1925 | "password-hash", 1926 | "sha2 0.9.9", 1927 | ] 1928 | 1929 | [[package]] 1930 | name = "percent-encoding" 1931 | version = "2.1.0" 1932 | source = "registry+https://github.com/rust-lang/crates.io-index" 1933 | checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" 1934 | 1935 | [[package]] 1936 | name = "petgraph" 1937 | version = "0.5.1" 1938 | source = "registry+https://github.com/rust-lang/crates.io-index" 1939 | checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" 1940 | dependencies = [ 1941 | "fixedbitset", 1942 | "indexmap", 1943 | ] 1944 | 1945 | [[package]] 1946 | name = "pharos" 1947 | version = "0.5.3" 1948 | source = "registry+https://github.com/rust-lang/crates.io-index" 1949 | checksum = "e9567389417feee6ce15dd6527a8a1ecac205ef62c2932bcf3d9f6fc5b78b414" 1950 | dependencies = [ 1951 | "futures", 1952 | "rustc_version", 1953 | ] 1954 | 1955 | [[package]] 1956 | name = "phf" 1957 | version = "0.10.1" 1958 | source = "registry+https://github.com/rust-lang/crates.io-index" 1959 | checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" 1960 | dependencies = [ 1961 | "phf_macros", 1962 | "phf_shared 0.10.0", 1963 | "proc-macro-hack", 1964 | ] 1965 | 1966 | [[package]] 1967 | name = "phf_codegen" 1968 | version = "0.10.0" 1969 | source = "registry+https://github.com/rust-lang/crates.io-index" 1970 | checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" 1971 | dependencies = [ 1972 | "phf_generator", 1973 | "phf_shared 0.10.0", 1974 | ] 1975 | 1976 | [[package]] 1977 | name = "phf_generator" 1978 | version = "0.10.0" 1979 | source = "registry+https://github.com/rust-lang/crates.io-index" 1980 | checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" 1981 | dependencies = [ 1982 | "phf_shared 0.10.0", 1983 | "rand", 1984 | ] 1985 | 1986 | [[package]] 1987 | name = "phf_macros" 1988 | version = "0.10.0" 1989 | source = "registry+https://github.com/rust-lang/crates.io-index" 1990 | checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" 1991 | dependencies = [ 1992 | "phf_generator", 1993 | "phf_shared 0.10.0", 1994 | "proc-macro-hack", 1995 | "proc-macro2", 1996 | "quote", 1997 | "syn", 1998 | ] 1999 | 2000 | [[package]] 2001 | name = "phf_shared" 2002 | version = "0.8.0" 2003 | source = "registry+https://github.com/rust-lang/crates.io-index" 2004 | checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" 2005 | dependencies = [ 2006 | "siphasher", 2007 | ] 2008 | 2009 | [[package]] 2010 | name = "phf_shared" 2011 | version = "0.10.0" 2012 | source = "registry+https://github.com/rust-lang/crates.io-index" 2013 | checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" 2014 | dependencies = [ 2015 | "siphasher", 2016 | "uncased", 2017 | ] 2018 | 2019 | [[package]] 2020 | name = "pico-args" 2021 | version = "0.4.2" 2022 | source = "registry+https://github.com/rust-lang/crates.io-index" 2023 | checksum = "db8bcd96cb740d03149cbad5518db9fd87126a10ab519c011893b1754134c468" 2024 | 2025 | [[package]] 2026 | name = "pin-project" 2027 | version = "1.0.10" 2028 | source = "registry+https://github.com/rust-lang/crates.io-index" 2029 | checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" 2030 | dependencies = [ 2031 | "pin-project-internal", 2032 | ] 2033 | 2034 | [[package]] 2035 | name = "pin-project-internal" 2036 | version = "1.0.10" 2037 | source = "registry+https://github.com/rust-lang/crates.io-index" 2038 | checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" 2039 | dependencies = [ 2040 | "proc-macro2", 2041 | "quote", 2042 | "syn", 2043 | ] 2044 | 2045 | [[package]] 2046 | name = "pin-project-lite" 2047 | version = "0.2.7" 2048 | source = "registry+https://github.com/rust-lang/crates.io-index" 2049 | checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" 2050 | 2051 | [[package]] 2052 | name = "pin-utils" 2053 | version = "0.1.0" 2054 | source = "registry+https://github.com/rust-lang/crates.io-index" 2055 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 2056 | 2057 | [[package]] 2058 | name = "pkcs8" 2059 | version = "0.8.0" 2060 | source = "registry+https://github.com/rust-lang/crates.io-index" 2061 | checksum = "7cabda3fb821068a9a4fab19a683eac3af12edf0f34b94a8be53c4972b8149d0" 2062 | dependencies = [ 2063 | "der 0.5.1", 2064 | "spki", 2065 | "zeroize", 2066 | ] 2067 | 2068 | [[package]] 2069 | name = "ppv-lite86" 2070 | version = "0.2.16" 2071 | source = "registry+https://github.com/rust-lang/crates.io-index" 2072 | checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" 2073 | 2074 | [[package]] 2075 | name = "precomputed-hash" 2076 | version = "0.1.1" 2077 | source = "registry+https://github.com/rust-lang/crates.io-index" 2078 | checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" 2079 | 2080 | [[package]] 2081 | name = "primitive-types" 2082 | version = "0.10.1" 2083 | source = "registry+https://github.com/rust-lang/crates.io-index" 2084 | checksum = "05e4722c697a58a99d5d06a08c30821d7c082a4632198de1eaa5a6c22ef42373" 2085 | dependencies = [ 2086 | "fixed-hash", 2087 | "impl-codec", 2088 | "impl-rlp", 2089 | "impl-serde", 2090 | "uint", 2091 | ] 2092 | 2093 | [[package]] 2094 | name = "proc-macro-crate" 2095 | version = "1.1.0" 2096 | source = "registry+https://github.com/rust-lang/crates.io-index" 2097 | checksum = "1ebace6889caf889b4d3f76becee12e90353f2b8c7d875534a71e5742f8f6f83" 2098 | dependencies = [ 2099 | "thiserror", 2100 | "toml", 2101 | ] 2102 | 2103 | [[package]] 2104 | name = "proc-macro-error" 2105 | version = "1.0.4" 2106 | source = "registry+https://github.com/rust-lang/crates.io-index" 2107 | checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 2108 | dependencies = [ 2109 | "proc-macro-error-attr", 2110 | "proc-macro2", 2111 | "quote", 2112 | "syn", 2113 | "version_check", 2114 | ] 2115 | 2116 | [[package]] 2117 | name = "proc-macro-error-attr" 2118 | version = "1.0.4" 2119 | source = "registry+https://github.com/rust-lang/crates.io-index" 2120 | checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 2121 | dependencies = [ 2122 | "proc-macro2", 2123 | "quote", 2124 | "version_check", 2125 | ] 2126 | 2127 | [[package]] 2128 | name = "proc-macro-hack" 2129 | version = "0.5.19" 2130 | source = "registry+https://github.com/rust-lang/crates.io-index" 2131 | checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" 2132 | 2133 | [[package]] 2134 | name = "proc-macro-nested" 2135 | version = "0.1.7" 2136 | source = "registry+https://github.com/rust-lang/crates.io-index" 2137 | checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" 2138 | 2139 | [[package]] 2140 | name = "proc-macro2" 2141 | version = "1.0.29" 2142 | source = "registry+https://github.com/rust-lang/crates.io-index" 2143 | checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d" 2144 | dependencies = [ 2145 | "unicode-xid", 2146 | ] 2147 | 2148 | [[package]] 2149 | name = "quote" 2150 | version = "1.0.9" 2151 | source = "registry+https://github.com/rust-lang/crates.io-index" 2152 | checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" 2153 | dependencies = [ 2154 | "proc-macro2", 2155 | ] 2156 | 2157 | [[package]] 2158 | name = "radium" 2159 | version = "0.3.0" 2160 | source = "registry+https://github.com/rust-lang/crates.io-index" 2161 | checksum = "def50a86306165861203e7f84ecffbbdfdea79f0e51039b33de1e952358c47ac" 2162 | 2163 | [[package]] 2164 | name = "radium" 2165 | version = "0.6.2" 2166 | source = "registry+https://github.com/rust-lang/crates.io-index" 2167 | checksum = "643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fb" 2168 | 2169 | [[package]] 2170 | name = "rand" 2171 | version = "0.8.4" 2172 | source = "registry+https://github.com/rust-lang/crates.io-index" 2173 | checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" 2174 | dependencies = [ 2175 | "libc", 2176 | "rand_chacha", 2177 | "rand_core", 2178 | "rand_hc", 2179 | ] 2180 | 2181 | [[package]] 2182 | name = "rand_chacha" 2183 | version = "0.3.1" 2184 | source = "registry+https://github.com/rust-lang/crates.io-index" 2185 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 2186 | dependencies = [ 2187 | "ppv-lite86", 2188 | "rand_core", 2189 | ] 2190 | 2191 | [[package]] 2192 | name = "rand_core" 2193 | version = "0.6.3" 2194 | source = "registry+https://github.com/rust-lang/crates.io-index" 2195 | checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" 2196 | dependencies = [ 2197 | "getrandom", 2198 | ] 2199 | 2200 | [[package]] 2201 | name = "rand_hc" 2202 | version = "0.3.1" 2203 | source = "registry+https://github.com/rust-lang/crates.io-index" 2204 | checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" 2205 | dependencies = [ 2206 | "rand_core", 2207 | ] 2208 | 2209 | [[package]] 2210 | name = "rayon" 2211 | version = "1.5.1" 2212 | source = "registry+https://github.com/rust-lang/crates.io-index" 2213 | checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" 2214 | dependencies = [ 2215 | "autocfg", 2216 | "crossbeam-deque", 2217 | "either", 2218 | "rayon-core", 2219 | ] 2220 | 2221 | [[package]] 2222 | name = "rayon-core" 2223 | version = "1.9.1" 2224 | source = "registry+https://github.com/rust-lang/crates.io-index" 2225 | checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" 2226 | dependencies = [ 2227 | "crossbeam-channel", 2228 | "crossbeam-deque", 2229 | "crossbeam-utils", 2230 | "lazy_static", 2231 | "num_cpus", 2232 | ] 2233 | 2234 | [[package]] 2235 | name = "redox_syscall" 2236 | version = "0.2.10" 2237 | source = "registry+https://github.com/rust-lang/crates.io-index" 2238 | checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" 2239 | dependencies = [ 2240 | "bitflags", 2241 | ] 2242 | 2243 | [[package]] 2244 | name = "redox_users" 2245 | version = "0.4.0" 2246 | source = "registry+https://github.com/rust-lang/crates.io-index" 2247 | checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" 2248 | dependencies = [ 2249 | "getrandom", 2250 | "redox_syscall", 2251 | ] 2252 | 2253 | [[package]] 2254 | name = "regex" 2255 | version = "1.5.4" 2256 | source = "registry+https://github.com/rust-lang/crates.io-index" 2257 | checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" 2258 | dependencies = [ 2259 | "aho-corasick", 2260 | "memchr", 2261 | "regex-syntax", 2262 | ] 2263 | 2264 | [[package]] 2265 | name = "regex-syntax" 2266 | version = "0.6.25" 2267 | source = "registry+https://github.com/rust-lang/crates.io-index" 2268 | checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" 2269 | 2270 | [[package]] 2271 | name = "reqwest" 2272 | version = "0.11.9" 2273 | source = "registry+https://github.com/rust-lang/crates.io-index" 2274 | checksum = "87f242f1488a539a79bac6dbe7c8609ae43b7914b7736210f239a37cccb32525" 2275 | dependencies = [ 2276 | "base64 0.13.0", 2277 | "bytes", 2278 | "encoding_rs", 2279 | "futures-core", 2280 | "futures-util", 2281 | "h2", 2282 | "http", 2283 | "http-body", 2284 | "hyper", 2285 | "hyper-rustls", 2286 | "ipnet", 2287 | "js-sys", 2288 | "lazy_static", 2289 | "log", 2290 | "mime", 2291 | "percent-encoding", 2292 | "pin-project-lite", 2293 | "rustls", 2294 | "rustls-pemfile", 2295 | "serde", 2296 | "serde_json", 2297 | "serde_urlencoded", 2298 | "tokio", 2299 | "tokio-rustls", 2300 | "url", 2301 | "wasm-bindgen", 2302 | "wasm-bindgen-futures", 2303 | "web-sys", 2304 | "webpki-roots", 2305 | "winreg", 2306 | ] 2307 | 2308 | [[package]] 2309 | name = "rfc6979" 2310 | version = "0.1.0" 2311 | source = "registry+https://github.com/rust-lang/crates.io-index" 2312 | checksum = "96ef608575f6392792f9ecf7890c00086591d29a83910939d430753f7c050525" 2313 | dependencies = [ 2314 | "crypto-bigint 0.3.2", 2315 | "hmac", 2316 | "zeroize", 2317 | ] 2318 | 2319 | [[package]] 2320 | name = "ring" 2321 | version = "0.16.20" 2322 | source = "registry+https://github.com/rust-lang/crates.io-index" 2323 | checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" 2324 | dependencies = [ 2325 | "cc", 2326 | "libc", 2327 | "once_cell", 2328 | "spin", 2329 | "untrusted", 2330 | "web-sys", 2331 | "winapi", 2332 | ] 2333 | 2334 | [[package]] 2335 | name = "ripemd160" 2336 | version = "0.9.1" 2337 | source = "registry+https://github.com/rust-lang/crates.io-index" 2338 | checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251" 2339 | dependencies = [ 2340 | "block-buffer 0.9.0", 2341 | "digest 0.9.0", 2342 | "opaque-debug 0.3.0", 2343 | ] 2344 | 2345 | [[package]] 2346 | name = "rlp" 2347 | version = "0.5.1" 2348 | source = "registry+https://github.com/rust-lang/crates.io-index" 2349 | checksum = "999508abb0ae792aabed2460c45b89106d97fe4adac593bdaef433c2605847b5" 2350 | dependencies = [ 2351 | "bytes", 2352 | "rustc-hex", 2353 | ] 2354 | 2355 | [[package]] 2356 | name = "rlp-derive" 2357 | version = "0.1.0" 2358 | source = "registry+https://github.com/rust-lang/crates.io-index" 2359 | checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a" 2360 | dependencies = [ 2361 | "proc-macro2", 2362 | "quote", 2363 | "syn", 2364 | ] 2365 | 2366 | [[package]] 2367 | name = "rustc-hex" 2368 | version = "2.1.0" 2369 | source = "registry+https://github.com/rust-lang/crates.io-index" 2370 | checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" 2371 | 2372 | [[package]] 2373 | name = "rustc_version" 2374 | version = "0.4.0" 2375 | source = "registry+https://github.com/rust-lang/crates.io-index" 2376 | checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" 2377 | dependencies = [ 2378 | "semver", 2379 | ] 2380 | 2381 | [[package]] 2382 | name = "rustls" 2383 | version = "0.20.2" 2384 | source = "registry+https://github.com/rust-lang/crates.io-index" 2385 | checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84" 2386 | dependencies = [ 2387 | "log", 2388 | "ring", 2389 | "sct", 2390 | "webpki", 2391 | ] 2392 | 2393 | [[package]] 2394 | name = "rustls-pemfile" 2395 | version = "0.2.1" 2396 | source = "registry+https://github.com/rust-lang/crates.io-index" 2397 | checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9" 2398 | dependencies = [ 2399 | "base64 0.13.0", 2400 | ] 2401 | 2402 | [[package]] 2403 | name = "rustversion" 2404 | version = "1.0.6" 2405 | source = "registry+https://github.com/rust-lang/crates.io-index" 2406 | checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f" 2407 | 2408 | [[package]] 2409 | name = "ryu" 2410 | version = "1.0.5" 2411 | source = "registry+https://github.com/rust-lang/crates.io-index" 2412 | checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" 2413 | 2414 | [[package]] 2415 | name = "salsa20" 2416 | version = "0.8.1" 2417 | source = "registry+https://github.com/rust-lang/crates.io-index" 2418 | checksum = "ecbd2eb639fd7cab5804a0837fe373cc2172d15437e804c054a9fb885cb923b0" 2419 | dependencies = [ 2420 | "cipher", 2421 | ] 2422 | 2423 | [[package]] 2424 | name = "same-file" 2425 | version = "1.0.6" 2426 | source = "registry+https://github.com/rust-lang/crates.io-index" 2427 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 2428 | dependencies = [ 2429 | "winapi-util", 2430 | ] 2431 | 2432 | [[package]] 2433 | name = "scopeguard" 2434 | version = "1.1.0" 2435 | source = "registry+https://github.com/rust-lang/crates.io-index" 2436 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 2437 | 2438 | [[package]] 2439 | name = "scrypt" 2440 | version = "0.7.0" 2441 | source = "registry+https://github.com/rust-lang/crates.io-index" 2442 | checksum = "879588d8f90906e73302547e20fffefdd240eb3e0e744e142321f5d49dea0518" 2443 | dependencies = [ 2444 | "base64ct", 2445 | "hmac", 2446 | "password-hash", 2447 | "pbkdf2", 2448 | "salsa20", 2449 | "sha2 0.9.9", 2450 | ] 2451 | 2452 | [[package]] 2453 | name = "sct" 2454 | version = "0.7.0" 2455 | source = "registry+https://github.com/rust-lang/crates.io-index" 2456 | checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" 2457 | dependencies = [ 2458 | "ring", 2459 | "untrusted", 2460 | ] 2461 | 2462 | [[package]] 2463 | name = "sec1" 2464 | version = "0.2.1" 2465 | source = "registry+https://github.com/rust-lang/crates.io-index" 2466 | checksum = "08da66b8b0965a5555b6bd6639e68ccba85e1e2506f5fbb089e93f8a04e1a2d1" 2467 | dependencies = [ 2468 | "der 0.5.1", 2469 | "generic-array 0.14.5", 2470 | "pkcs8", 2471 | "subtle", 2472 | "zeroize", 2473 | ] 2474 | 2475 | [[package]] 2476 | name = "semver" 2477 | version = "1.0.4" 2478 | source = "registry+https://github.com/rust-lang/crates.io-index" 2479 | checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" 2480 | dependencies = [ 2481 | "serde", 2482 | ] 2483 | 2484 | [[package]] 2485 | name = "send_wrapper" 2486 | version = "0.5.0" 2487 | source = "registry+https://github.com/rust-lang/crates.io-index" 2488 | checksum = "930c0acf610d3fdb5e2ab6213019aaa04e227ebe9547b0649ba599b16d788bd7" 2489 | 2490 | [[package]] 2491 | name = "serde" 2492 | version = "1.0.130" 2493 | source = "registry+https://github.com/rust-lang/crates.io-index" 2494 | checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" 2495 | dependencies = [ 2496 | "serde_derive", 2497 | ] 2498 | 2499 | [[package]] 2500 | name = "serde-aux" 2501 | version = "3.0.1" 2502 | source = "registry+https://github.com/rust-lang/crates.io-index" 2503 | checksum = "93abf9799c576f004252b2a05168d58527fb7c54de12e94b4d12fe3475ffad24" 2504 | dependencies = [ 2505 | "serde", 2506 | "serde_json", 2507 | ] 2508 | 2509 | [[package]] 2510 | name = "serde_derive" 2511 | version = "1.0.130" 2512 | source = "registry+https://github.com/rust-lang/crates.io-index" 2513 | checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" 2514 | dependencies = [ 2515 | "proc-macro2", 2516 | "quote", 2517 | "syn", 2518 | ] 2519 | 2520 | [[package]] 2521 | name = "serde_json" 2522 | version = "1.0.67" 2523 | source = "registry+https://github.com/rust-lang/crates.io-index" 2524 | checksum = "a7f9e390c27c3c0ce8bc5d725f6e4d30a29d26659494aa4b17535f7522c5c950" 2525 | dependencies = [ 2526 | "itoa 0.4.8", 2527 | "ryu", 2528 | "serde", 2529 | ] 2530 | 2531 | [[package]] 2532 | name = "serde_urlencoded" 2533 | version = "0.7.1" 2534 | source = "registry+https://github.com/rust-lang/crates.io-index" 2535 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 2536 | dependencies = [ 2537 | "form_urlencoded", 2538 | "itoa 1.0.1", 2539 | "ryu", 2540 | "serde", 2541 | ] 2542 | 2543 | [[package]] 2544 | name = "sha2" 2545 | version = "0.8.2" 2546 | source = "registry+https://github.com/rust-lang/crates.io-index" 2547 | checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" 2548 | dependencies = [ 2549 | "block-buffer 0.7.3", 2550 | "digest 0.8.1", 2551 | "fake-simd", 2552 | "opaque-debug 0.2.3", 2553 | ] 2554 | 2555 | [[package]] 2556 | name = "sha2" 2557 | version = "0.9.9" 2558 | source = "registry+https://github.com/rust-lang/crates.io-index" 2559 | checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" 2560 | dependencies = [ 2561 | "block-buffer 0.9.0", 2562 | "cfg-if 1.0.0", 2563 | "cpufeatures", 2564 | "digest 0.9.0", 2565 | "opaque-debug 0.3.0", 2566 | ] 2567 | 2568 | [[package]] 2569 | name = "sha2" 2570 | version = "0.10.1" 2571 | source = "registry+https://github.com/rust-lang/crates.io-index" 2572 | checksum = "99c3bd8169c58782adad9290a9af5939994036b76187f7b4f0e6de91dbbfc0ec" 2573 | dependencies = [ 2574 | "cfg-if 1.0.0", 2575 | "cpufeatures", 2576 | "digest 0.10.1", 2577 | ] 2578 | 2579 | [[package]] 2580 | name = "sha3" 2581 | version = "0.9.1" 2582 | source = "registry+https://github.com/rust-lang/crates.io-index" 2583 | checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" 2584 | dependencies = [ 2585 | "block-buffer 0.9.0", 2586 | "digest 0.9.0", 2587 | "keccak", 2588 | "opaque-debug 0.3.0", 2589 | ] 2590 | 2591 | [[package]] 2592 | name = "signature" 2593 | version = "1.3.2" 2594 | source = "registry+https://github.com/rust-lang/crates.io-index" 2595 | checksum = "f2807892cfa58e081aa1f1111391c7a0649d4fa127a4ffbe34bcbfb35a1171a4" 2596 | dependencies = [ 2597 | "digest 0.9.0", 2598 | "rand_core", 2599 | ] 2600 | 2601 | [[package]] 2602 | name = "siphasher" 2603 | version = "0.3.9" 2604 | source = "registry+https://github.com/rust-lang/crates.io-index" 2605 | checksum = "a86232ab60fa71287d7f2ddae4a7073f6b7aac33631c3015abb556f08c6d0a3e" 2606 | 2607 | [[package]] 2608 | name = "siwe" 2609 | version = "0.1.3" 2610 | source = "git+https://github.com/spruceid/siwe-rs#6f92676a7b7fa23f5d7f98e0553dc0134d644019" 2611 | dependencies = [ 2612 | "chrono", 2613 | "ethers-core 0.6.3", 2614 | "hex", 2615 | "http", 2616 | "iri-string", 2617 | "k256 0.9.5", 2618 | "rand", 2619 | "sha3", 2620 | "thiserror", 2621 | ] 2622 | 2623 | [[package]] 2624 | name = "slab" 2625 | version = "0.4.4" 2626 | source = "registry+https://github.com/rust-lang/crates.io-index" 2627 | checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" 2628 | 2629 | [[package]] 2630 | name = "smallvec" 2631 | version = "1.8.0" 2632 | source = "registry+https://github.com/rust-lang/crates.io-index" 2633 | checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" 2634 | 2635 | [[package]] 2636 | name = "socket2" 2637 | version = "0.4.2" 2638 | source = "registry+https://github.com/rust-lang/crates.io-index" 2639 | checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516" 2640 | dependencies = [ 2641 | "libc", 2642 | "winapi", 2643 | ] 2644 | 2645 | [[package]] 2646 | name = "solang-parser" 2647 | version = "0.1.1" 2648 | source = "git+https://github.com/hyperledger-labs/solang#4ad9d87881460fe89f2c4a0f762511f8fa445849" 2649 | dependencies = [ 2650 | "lalrpop", 2651 | "lalrpop-util", 2652 | "num-bigint", 2653 | "num-rational", 2654 | "num-traits", 2655 | "phf", 2656 | "unicode-xid", 2657 | ] 2658 | 2659 | [[package]] 2660 | name = "spin" 2661 | version = "0.5.2" 2662 | source = "registry+https://github.com/rust-lang/crates.io-index" 2663 | checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" 2664 | 2665 | [[package]] 2666 | name = "spki" 2667 | version = "0.5.4" 2668 | source = "registry+https://github.com/rust-lang/crates.io-index" 2669 | checksum = "44d01ac02a6ccf3e07db148d2be087da624fea0221a16152ed01f0496a6b0a27" 2670 | dependencies = [ 2671 | "base64ct", 2672 | "der 0.5.1", 2673 | ] 2674 | 2675 | [[package]] 2676 | name = "static_assertions" 2677 | version = "1.1.0" 2678 | source = "registry+https://github.com/rust-lang/crates.io-index" 2679 | checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" 2680 | 2681 | [[package]] 2682 | name = "string_cache" 2683 | version = "0.8.2" 2684 | source = "registry+https://github.com/rust-lang/crates.io-index" 2685 | checksum = "923f0f39b6267d37d23ce71ae7235602134b250ace715dd2c90421998ddac0c6" 2686 | dependencies = [ 2687 | "lazy_static", 2688 | "new_debug_unreachable", 2689 | "parking_lot", 2690 | "phf_shared 0.8.0", 2691 | "precomputed-hash", 2692 | ] 2693 | 2694 | [[package]] 2695 | name = "subtle" 2696 | version = "2.4.1" 2697 | source = "registry+https://github.com/rust-lang/crates.io-index" 2698 | checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" 2699 | 2700 | [[package]] 2701 | name = "syn" 2702 | version = "1.0.75" 2703 | source = "registry+https://github.com/rust-lang/crates.io-index" 2704 | checksum = "b7f58f7e8eaa0009c5fec437aabf511bd9933e4b2d7407bd05273c01a8906ea7" 2705 | dependencies = [ 2706 | "proc-macro2", 2707 | "quote", 2708 | "unicode-xid", 2709 | ] 2710 | 2711 | [[package]] 2712 | name = "tap" 2713 | version = "1.0.1" 2714 | source = "registry+https://github.com/rust-lang/crates.io-index" 2715 | checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" 2716 | 2717 | [[package]] 2718 | name = "term" 2719 | version = "0.7.0" 2720 | source = "registry+https://github.com/rust-lang/crates.io-index" 2721 | checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" 2722 | dependencies = [ 2723 | "dirs-next", 2724 | "rustversion", 2725 | "winapi", 2726 | ] 2727 | 2728 | [[package]] 2729 | name = "thiserror" 2730 | version = "1.0.30" 2731 | source = "registry+https://github.com/rust-lang/crates.io-index" 2732 | checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" 2733 | dependencies = [ 2734 | "thiserror-impl", 2735 | ] 2736 | 2737 | [[package]] 2738 | name = "thiserror-impl" 2739 | version = "1.0.30" 2740 | source = "registry+https://github.com/rust-lang/crates.io-index" 2741 | checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" 2742 | dependencies = [ 2743 | "proc-macro2", 2744 | "quote", 2745 | "syn", 2746 | ] 2747 | 2748 | [[package]] 2749 | name = "time" 2750 | version = "0.1.44" 2751 | source = "registry+https://github.com/rust-lang/crates.io-index" 2752 | checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" 2753 | dependencies = [ 2754 | "libc", 2755 | "wasi", 2756 | "winapi", 2757 | ] 2758 | 2759 | [[package]] 2760 | name = "tiny-keccak" 2761 | version = "2.0.2" 2762 | source = "registry+https://github.com/rust-lang/crates.io-index" 2763 | checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" 2764 | dependencies = [ 2765 | "crunchy", 2766 | ] 2767 | 2768 | [[package]] 2769 | name = "tinyvec" 2770 | version = "1.3.1" 2771 | source = "registry+https://github.com/rust-lang/crates.io-index" 2772 | checksum = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338" 2773 | dependencies = [ 2774 | "tinyvec_macros", 2775 | ] 2776 | 2777 | [[package]] 2778 | name = "tinyvec_macros" 2779 | version = "0.1.0" 2780 | source = "registry+https://github.com/rust-lang/crates.io-index" 2781 | checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" 2782 | 2783 | [[package]] 2784 | name = "tokio" 2785 | version = "1.15.0" 2786 | source = "registry+https://github.com/rust-lang/crates.io-index" 2787 | checksum = "fbbf1c778ec206785635ce8ad57fe52b3009ae9e0c9f574a728f3049d3e55838" 2788 | dependencies = [ 2789 | "bytes", 2790 | "libc", 2791 | "memchr", 2792 | "mio", 2793 | "num_cpus", 2794 | "pin-project-lite", 2795 | "winapi", 2796 | ] 2797 | 2798 | [[package]] 2799 | name = "tokio-rustls" 2800 | version = "0.23.2" 2801 | source = "registry+https://github.com/rust-lang/crates.io-index" 2802 | checksum = "a27d5f2b839802bd8267fa19b0530f5a08b9c08cd417976be2a65d130fe1c11b" 2803 | dependencies = [ 2804 | "rustls", 2805 | "tokio", 2806 | "webpki", 2807 | ] 2808 | 2809 | [[package]] 2810 | name = "tokio-util" 2811 | version = "0.6.9" 2812 | source = "registry+https://github.com/rust-lang/crates.io-index" 2813 | checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0" 2814 | dependencies = [ 2815 | "bytes", 2816 | "futures-core", 2817 | "futures-sink", 2818 | "log", 2819 | "pin-project-lite", 2820 | "tokio", 2821 | ] 2822 | 2823 | [[package]] 2824 | name = "toml" 2825 | version = "0.5.8" 2826 | source = "registry+https://github.com/rust-lang/crates.io-index" 2827 | checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" 2828 | dependencies = [ 2829 | "serde", 2830 | ] 2831 | 2832 | [[package]] 2833 | name = "tower-service" 2834 | version = "0.3.1" 2835 | source = "registry+https://github.com/rust-lang/crates.io-index" 2836 | checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" 2837 | 2838 | [[package]] 2839 | name = "tracing" 2840 | version = "0.1.29" 2841 | source = "registry+https://github.com/rust-lang/crates.io-index" 2842 | checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105" 2843 | dependencies = [ 2844 | "cfg-if 1.0.0", 2845 | "pin-project-lite", 2846 | "tracing-attributes", 2847 | "tracing-core", 2848 | ] 2849 | 2850 | [[package]] 2851 | name = "tracing-attributes" 2852 | version = "0.1.18" 2853 | source = "registry+https://github.com/rust-lang/crates.io-index" 2854 | checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e" 2855 | dependencies = [ 2856 | "proc-macro2", 2857 | "quote", 2858 | "syn", 2859 | ] 2860 | 2861 | [[package]] 2862 | name = "tracing-core" 2863 | version = "0.1.21" 2864 | source = "registry+https://github.com/rust-lang/crates.io-index" 2865 | checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4" 2866 | dependencies = [ 2867 | "lazy_static", 2868 | ] 2869 | 2870 | [[package]] 2871 | name = "tracing-futures" 2872 | version = "0.2.5" 2873 | source = "registry+https://github.com/rust-lang/crates.io-index" 2874 | checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" 2875 | dependencies = [ 2876 | "pin-project", 2877 | "tracing", 2878 | ] 2879 | 2880 | [[package]] 2881 | name = "try-lock" 2882 | version = "0.2.3" 2883 | source = "registry+https://github.com/rust-lang/crates.io-index" 2884 | checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" 2885 | 2886 | [[package]] 2887 | name = "typenum" 2888 | version = "1.15.0" 2889 | source = "registry+https://github.com/rust-lang/crates.io-index" 2890 | checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" 2891 | 2892 | [[package]] 2893 | name = "uint" 2894 | version = "0.9.1" 2895 | source = "registry+https://github.com/rust-lang/crates.io-index" 2896 | checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f" 2897 | dependencies = [ 2898 | "byteorder", 2899 | "crunchy", 2900 | "hex", 2901 | "static_assertions", 2902 | ] 2903 | 2904 | [[package]] 2905 | name = "uncased" 2906 | version = "0.9.6" 2907 | source = "registry+https://github.com/rust-lang/crates.io-index" 2908 | checksum = "5baeed7327e25054889b9bd4f975f32e5f4c5d434042d59ab6cd4142c0a76ed0" 2909 | dependencies = [ 2910 | "version_check", 2911 | ] 2912 | 2913 | [[package]] 2914 | name = "unicode-bidi" 2915 | version = "0.3.6" 2916 | source = "registry+https://github.com/rust-lang/crates.io-index" 2917 | checksum = "246f4c42e67e7a4e3c6106ff716a5d067d4132a642840b242e357e468a2a0085" 2918 | 2919 | [[package]] 2920 | name = "unicode-normalization" 2921 | version = "0.1.19" 2922 | source = "registry+https://github.com/rust-lang/crates.io-index" 2923 | checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" 2924 | dependencies = [ 2925 | "tinyvec", 2926 | ] 2927 | 2928 | [[package]] 2929 | name = "unicode-xid" 2930 | version = "0.2.2" 2931 | source = "registry+https://github.com/rust-lang/crates.io-index" 2932 | checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" 2933 | 2934 | [[package]] 2935 | name = "untrusted" 2936 | version = "0.7.1" 2937 | source = "registry+https://github.com/rust-lang/crates.io-index" 2938 | checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" 2939 | 2940 | [[package]] 2941 | name = "url" 2942 | version = "2.2.2" 2943 | source = "registry+https://github.com/rust-lang/crates.io-index" 2944 | checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" 2945 | dependencies = [ 2946 | "form_urlencoded", 2947 | "idna", 2948 | "matches", 2949 | "percent-encoding", 2950 | ] 2951 | 2952 | [[package]] 2953 | name = "uuid" 2954 | version = "0.8.2" 2955 | source = "registry+https://github.com/rust-lang/crates.io-index" 2956 | checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" 2957 | dependencies = [ 2958 | "getrandom", 2959 | "serde", 2960 | ] 2961 | 2962 | [[package]] 2963 | name = "version_check" 2964 | version = "0.9.4" 2965 | source = "registry+https://github.com/rust-lang/crates.io-index" 2966 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 2967 | 2968 | [[package]] 2969 | name = "walkdir" 2970 | version = "2.3.2" 2971 | source = "registry+https://github.com/rust-lang/crates.io-index" 2972 | checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" 2973 | dependencies = [ 2974 | "same-file", 2975 | "winapi", 2976 | "winapi-util", 2977 | ] 2978 | 2979 | [[package]] 2980 | name = "want" 2981 | version = "0.3.0" 2982 | source = "registry+https://github.com/rust-lang/crates.io-index" 2983 | checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 2984 | dependencies = [ 2985 | "log", 2986 | "try-lock", 2987 | ] 2988 | 2989 | [[package]] 2990 | name = "wasi" 2991 | version = "0.10.0+wasi-snapshot-preview1" 2992 | source = "registry+https://github.com/rust-lang/crates.io-index" 2993 | checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" 2994 | 2995 | [[package]] 2996 | name = "wasm-bindgen" 2997 | version = "0.2.78" 2998 | source = "registry+https://github.com/rust-lang/crates.io-index" 2999 | checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce" 3000 | dependencies = [ 3001 | "cfg-if 1.0.0", 3002 | "serde", 3003 | "serde_json", 3004 | "wasm-bindgen-macro", 3005 | ] 3006 | 3007 | [[package]] 3008 | name = "wasm-bindgen-backend" 3009 | version = "0.2.78" 3010 | source = "registry+https://github.com/rust-lang/crates.io-index" 3011 | checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b" 3012 | dependencies = [ 3013 | "bumpalo", 3014 | "lazy_static", 3015 | "log", 3016 | "proc-macro2", 3017 | "quote", 3018 | "syn", 3019 | "wasm-bindgen-shared", 3020 | ] 3021 | 3022 | [[package]] 3023 | name = "wasm-bindgen-futures" 3024 | version = "0.4.28" 3025 | source = "registry+https://github.com/rust-lang/crates.io-index" 3026 | checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39" 3027 | dependencies = [ 3028 | "cfg-if 1.0.0", 3029 | "js-sys", 3030 | "wasm-bindgen", 3031 | "web-sys", 3032 | ] 3033 | 3034 | [[package]] 3035 | name = "wasm-bindgen-macro" 3036 | version = "0.2.78" 3037 | source = "registry+https://github.com/rust-lang/crates.io-index" 3038 | checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9" 3039 | dependencies = [ 3040 | "quote", 3041 | "wasm-bindgen-macro-support", 3042 | ] 3043 | 3044 | [[package]] 3045 | name = "wasm-bindgen-macro-support" 3046 | version = "0.2.78" 3047 | source = "registry+https://github.com/rust-lang/crates.io-index" 3048 | checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab" 3049 | dependencies = [ 3050 | "proc-macro2", 3051 | "quote", 3052 | "syn", 3053 | "wasm-bindgen-backend", 3054 | "wasm-bindgen-shared", 3055 | ] 3056 | 3057 | [[package]] 3058 | name = "wasm-bindgen-shared" 3059 | version = "0.2.78" 3060 | source = "registry+https://github.com/rust-lang/crates.io-index" 3061 | checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc" 3062 | 3063 | [[package]] 3064 | name = "wasm-timer" 3065 | version = "0.2.5" 3066 | source = "registry+https://github.com/rust-lang/crates.io-index" 3067 | checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" 3068 | dependencies = [ 3069 | "futures", 3070 | "js-sys", 3071 | "parking_lot", 3072 | "pin-utils", 3073 | "wasm-bindgen", 3074 | "wasm-bindgen-futures", 3075 | "web-sys", 3076 | ] 3077 | 3078 | [[package]] 3079 | name = "web-sys" 3080 | version = "0.3.55" 3081 | source = "registry+https://github.com/rust-lang/crates.io-index" 3082 | checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb" 3083 | dependencies = [ 3084 | "js-sys", 3085 | "wasm-bindgen", 3086 | ] 3087 | 3088 | [[package]] 3089 | name = "webpki" 3090 | version = "0.22.0" 3091 | source = "registry+https://github.com/rust-lang/crates.io-index" 3092 | checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" 3093 | dependencies = [ 3094 | "ring", 3095 | "untrusted", 3096 | ] 3097 | 3098 | [[package]] 3099 | name = "webpki-roots" 3100 | version = "0.22.2" 3101 | source = "registry+https://github.com/rust-lang/crates.io-index" 3102 | checksum = "552ceb903e957524388c4d3475725ff2c8b7960922063af6ce53c9a43da07449" 3103 | dependencies = [ 3104 | "webpki", 3105 | ] 3106 | 3107 | [[package]] 3108 | name = "winapi" 3109 | version = "0.3.9" 3110 | source = "registry+https://github.com/rust-lang/crates.io-index" 3111 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 3112 | dependencies = [ 3113 | "winapi-i686-pc-windows-gnu", 3114 | "winapi-x86_64-pc-windows-gnu", 3115 | ] 3116 | 3117 | [[package]] 3118 | name = "winapi-i686-pc-windows-gnu" 3119 | version = "0.4.0" 3120 | source = "registry+https://github.com/rust-lang/crates.io-index" 3121 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 3122 | 3123 | [[package]] 3124 | name = "winapi-util" 3125 | version = "0.1.5" 3126 | source = "registry+https://github.com/rust-lang/crates.io-index" 3127 | checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" 3128 | dependencies = [ 3129 | "winapi", 3130 | ] 3131 | 3132 | [[package]] 3133 | name = "winapi-x86_64-pc-windows-gnu" 3134 | version = "0.4.0" 3135 | source = "registry+https://github.com/rust-lang/crates.io-index" 3136 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 3137 | 3138 | [[package]] 3139 | name = "winreg" 3140 | version = "0.7.0" 3141 | source = "registry+https://github.com/rust-lang/crates.io-index" 3142 | checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" 3143 | dependencies = [ 3144 | "winapi", 3145 | ] 3146 | 3147 | [[package]] 3148 | name = "worker" 3149 | version = "0.0.8" 3150 | source = "git+https://github.com/cloudflare/workers-rs#3cf374bc169ff5b5d12148e5d8a6fc92c8c95911" 3151 | dependencies = [ 3152 | "async-trait", 3153 | "chrono", 3154 | "chrono-tz", 3155 | "futures", 3156 | "http", 3157 | "js-sys", 3158 | "matchit", 3159 | "serde", 3160 | "serde_json", 3161 | "url", 3162 | "wasm-bindgen", 3163 | "wasm-bindgen-futures", 3164 | "worker-kv", 3165 | "worker-macros", 3166 | "worker-sys", 3167 | ] 3168 | 3169 | [[package]] 3170 | name = "worker-kv" 3171 | version = "0.5.1" 3172 | source = "registry+https://github.com/rust-lang/crates.io-index" 3173 | checksum = "682cbd728f179cc810b2ab77a2534da817b973e190ab184ab8efe1058b0dba84" 3174 | dependencies = [ 3175 | "js-sys", 3176 | "serde", 3177 | "serde_json", 3178 | "thiserror", 3179 | "wasm-bindgen", 3180 | "wasm-bindgen-futures", 3181 | ] 3182 | 3183 | [[package]] 3184 | name = "worker-macros" 3185 | version = "0.0.3" 3186 | source = "git+https://github.com/cloudflare/workers-rs#3cf374bc169ff5b5d12148e5d8a6fc92c8c95911" 3187 | dependencies = [ 3188 | "async-trait", 3189 | "proc-macro2", 3190 | "quote", 3191 | "syn", 3192 | "wasm-bindgen", 3193 | "wasm-bindgen-futures", 3194 | "wasm-bindgen-macro-support", 3195 | "worker-sys", 3196 | ] 3197 | 3198 | [[package]] 3199 | name = "worker-sys" 3200 | version = "0.0.3" 3201 | source = "git+https://github.com/cloudflare/workers-rs#3cf374bc169ff5b5d12148e5d8a6fc92c8c95911" 3202 | dependencies = [ 3203 | "cfg-if 0.1.10", 3204 | "js-sys", 3205 | "wasm-bindgen", 3206 | "web-sys", 3207 | ] 3208 | 3209 | [[package]] 3210 | name = "ws_stream_wasm" 3211 | version = "0.7.3" 3212 | source = "registry+https://github.com/rust-lang/crates.io-index" 3213 | checksum = "47ca1ab42f5afed7fc332b22b6e932ca5414b209465412c8cdf0ad23bc0de645" 3214 | dependencies = [ 3215 | "async_io_stream", 3216 | "futures", 3217 | "js-sys", 3218 | "pharos", 3219 | "rustc_version", 3220 | "send_wrapper", 3221 | "thiserror", 3222 | "wasm-bindgen", 3223 | "wasm-bindgen-futures", 3224 | "web-sys", 3225 | ] 3226 | 3227 | [[package]] 3228 | name = "wyz" 3229 | version = "0.2.0" 3230 | source = "registry+https://github.com/rust-lang/crates.io-index" 3231 | checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" 3232 | 3233 | [[package]] 3234 | name = "zeroize" 3235 | version = "1.5.0" 3236 | source = "registry+https://github.com/rust-lang/crates.io-index" 3237 | checksum = "cc222aec311c323c717f56060324f32b82da1ce1dd81d9a09aa6a9030bfe08db" 3238 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "ethsig-rs" 3 | version = "0.1.0" 4 | authors = ["Odysseas Lamtzidis "] 5 | edition = "2018" 6 | 7 | [lib] 8 | crate-type = ["cdylib", "rlib"] 9 | 10 | [features] 11 | default = ["console_error_panic_hook"] 12 | 13 | [dependencies] 14 | cfg-if = "0.1.2" 15 | ethers = { git = "https://github.com/odyslam/ethers-rs" , branch = "fix/worker-compile", default-features = false } 16 | worker = { git = "https://github.com/cloudflare/workers-rs" } 17 | siwe = { git = "https://github.com/spruceid/siwe-rs" } 18 | hex = "0.4" 19 | serde_json = "1.0.67" 20 | serde = { version = "1.0", features = ["derive"] } 21 | iri-string = "0.4" 22 | anyhow = "1.0" 23 | sha2 = "0.10" 24 | rand = "0.8.4" 25 | thiserror = "1.0" 26 | 27 | # The `console_error_panic_hook` crate provides better debugging of panics by 28 | # logging them with `console.error`. This is great for development, but requires 29 | # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for 30 | # code size when deploying. 31 | console_error_panic_hook = { version = "0.1.1", optional = true } 32 | 33 | [profile.release] 34 | # Tell `rustc` to optimize for small code size. 35 | opt-level = "s" 36 | -------------------------------------------------------------------------------- /LICENSE_APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ethsig-rs 2 | 3 | A Cloudflare worker that enables any backend service to use Sign In With Ethereum (SIWE) as an authetnication method. 4 | 5 | The worker is an implementation of the SIWE standard to authorize users based on their Ethereum accounts. 6 | 7 | The Cloudflare worker supports an endpoint called `/authorize`, which is called for a user to sign-in or sign-up. The worker creates salts the authorization request and creates a token for the user to use when making authorized API calls. The token is also the key in a simple KV store that is used by a worker to retrieve authorization information about the user. 8 | 9 | After that, the authentication can either be handled by the Cloudflare worker or by the API itself. If it's handled by the worker, we could direct all requests to the worker and then configure the worker to redirect authenticated requests to our API. If the authentication is handled directly by our API, it can plug into the KV store using Cloudflare's API and simply use the token to retrieve authorization information and verify that the requested API call is authorized. 10 | 11 | The example assumes that it's used by some front-end as the authentication logic. For that reason 12 | 13 | We leverage the worker's ability to auto-expire keys, which we set to last up to the point where the SIWE message expires. That way we can be certain that if a key exists in the KV Store, it must be valid still.Moreover, we don't have to deal with stale authorizations. 14 | 15 | Ethsig was developed to be used in a product of the [Radicle](https://radicle.xyz) stack. 16 | 17 | ## Usage 18 | 19 | With `wrangler`, you can build, test, and deploy your Worker with the following commands: 20 | 21 | ```bash 22 | # compiles your project to WebAssembly and will warn of any issues 23 | wrangler build 24 | 25 | # run your Worker in an ideal development workflow (with a local server, file watcher & more) 26 | wrangler dev 27 | 28 | # deploy your Worker globally to the Cloudflare network (update your wrangler.toml file for configuration) 29 | wrangler publish 30 | ``` 31 | 32 | Read the latest `worker` crate documentation here: https://docs.rs/worker 33 | 34 | 35 | ## Linting 36 | 37 | ```bash 38 | cargo check --all 39 | cargo +nightly fmt -- --check 40 | cargo +nightly clippy --all --all-features -- -D warnings 41 | ``` 42 | 43 | ## CI 44 | 45 | The repository will automatically Lint and build the `rustdoc` for this worker on every new PR. The `rustdocs` are placed in `/docs`, so they can be automatically hosted in GitHub pages. 46 | 47 | Make sure you change the link inside `gen-docs.sh` to the name of the crate. This redirection is required because GitHub pages will only serve `/docs/index.html` as the entrypoint. With the redirection, we point the user to the correct subpath where the `rustdoc` `index.html` exists. 48 | 49 | The repository will auto-publish the worker on every new commit to `master`. Make sure you add `CF_API_TOKEN` to the secrets of the repo. 50 | 51 | ## WebAssembly 52 | 53 | `workers-rs` (the Rust SDK for Cloudflare Workers used in this template) is meant to be executed as 54 | compiled WebAssembly, and as such so **must** all the code you write and depend upon. All crates and 55 | modules used in Rust-based Workers projects have to compile to the `wasm32-unknown-unknown` triple. 56 | 57 | Read more about this on the [`workers-rs` project README](https://github.com/cloudflare/workers-rs). 58 | 59 | -------------------------------------------------------------------------------- /gen-docs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rm -rf ./target/doc 4 | cargo doc --document-private-items --no-deps --release 5 | rm -rf ./docs 6 | # Change "ethsig-rs" to the name of the crate 7 | echo "" > target/doc/index.html 8 | cp -r target/doc ./docs 9 | -------------------------------------------------------------------------------- /src/auth.rs: -------------------------------------------------------------------------------- 1 | use ethers::types::{Signature, H160}; 2 | use rand::Rng; 3 | use serde::{Deserialize, Serialize}; 4 | use sha2::{Digest, Sha256}; 5 | use siwe::Message; 6 | use std::str::FromStr; 7 | use worker::*; 8 | 9 | /// All authentication requests are compromised of two elements: 10 | /// a) A message that follows EIP4361 11 | /// b) A signature of said message 12 | /// 13 | /// EIP4361 Template: 14 | /// ``` 15 | /// ${domain} wants you to sign in with your Ethereum account: 16 | /// ${address} 17 | /// 18 | /// ${statement} 19 | /// 20 | /// URI: ${uri} 21 | /// Version: ${version} 22 | /// Chain ID: ${chain-id} 23 | /// Nonce: ${nonce} 24 | /// Issued At: ${issued-at} 25 | /// Expiration Time: ${expiration-time} 26 | /// Not Before: ${not-before} 27 | /// Request ID: ${request-id} 28 | /// Resources: 29 | /// - ${resources[0]} 30 | /// - ${resources[1]} 31 | /// ... 32 | /// - ${resources[n]} 33 | /// ``` 34 | /// Source: [EIP4361](https://eips.ethereum.org/EIPS/eip-4361) 35 | /// 36 | #[derive(Deserialize, Serialize, Debug)] 37 | pub struct AuthRequest { 38 | message: String, 39 | signature: String, 40 | } 41 | 42 | /// An authorization is issued to a particular address based on the fields included in the 43 | /// AuthRequest message. With the Resources vecotr, the API can have even more granular control 44 | /// over the access control of a particular address. 45 | /// All the fields are populated by a AuthRequest.message, from the fields with the same name. 46 | #[derive(Deserialize, Serialize, Debug)] 47 | pub struct Authorization { 48 | resources: Vec, 49 | issued_at: String, 50 | expiration_time: Option, 51 | not_before: Option, 52 | pub address: H160, 53 | } 54 | 55 | impl Authorization { 56 | /// Parses a orker::Request for an authentication token, serialized as a JSON object in the 57 | /// body of the request. The authentication token is used to 58 | /// retrieve the related Authorization and verify that the token-holder can access the 59 | /// particular resource. 60 | pub async fn parse_request(req: &Request) -> Result { 61 | let headers = req.headers(); 62 | let bearer = headers.get("BEARER")?; 63 | let cookie = headers.get("AUTH-SIWE")?; 64 | match bearer.or(cookie) { 65 | Some(token) => Ok(token), 66 | None => Err(worker::Error::from("no authorization header found")), 67 | } 68 | } 69 | /// Get an authorizsation from the Cloudflare KV store, based on a token. The token is retrived 70 | /// from the request with parse_request and used as the key to find the Authorization struct. 71 | pub async fn get(env: &Env, token: T) -> Result> 72 | where 73 | T: Into, 74 | { 75 | let store = env.kv("AUTHENTICATION")?; 76 | store 77 | .get(&token.into()) 78 | .json::() 79 | .await 80 | .map_err(worker::Error::from) 81 | } 82 | /// Creates an Authorization in the Cloudflare KC store based on an AuthRequest. 83 | /// After the message is verified against the signature, the authorization is tied to the 84 | /// address that signed the message. The message is converted to bytes and hashed with a 85 | /// pseudorandomly generated salt. The hash is used as the KEY of the Authorization and 86 | /// returned to the user to be used as a token. 87 | /// 88 | /// For better UX, we return the token in the form of a cookie that can be used by the web 89 | /// application. 90 | /// 91 | /// The Authorization value is set to expire at the Cloduflare KV store at the same time that 92 | /// it expires as an Authorization, defined in the `expiration_time` field of the 93 | /// SIWE::Message. That way, we don't have to deal with stale records, but Cloudflare takes 94 | /// care of it. After it expires, the token will no longer be usable and the user will have to 95 | /// Authorize again and use a new token. 96 | /// 97 | pub async fn create(env: &Env, auth: AuthRequest) -> Result { 98 | let message: Message = 99 | Message::from_str(&auth.message).map_err(|err| worker::Error::from(err.to_string()))?; 100 | match message.verify( 101 | Signature::from_str(&auth.signature) 102 | .map_err(|err| worker::Error::from(err.to_string()))? 103 | .into(), 104 | ) { 105 | Ok(_) => { 106 | let authentication = env.kv("AUTHENTICATION")?; 107 | let mut rng = rand::thread_rng(); 108 | let mut hasher = Sha256::new(); 109 | let message: Message = Message::from_str(&auth.message) 110 | .map_err(|err| worker::Error::from(err.to_string()))?; 111 | let auth = Authorization { 112 | resources: message 113 | .resources 114 | .iter() 115 | .map(|x| x.as_str().to_owned()) 116 | .collect::>(), 117 | issued_at: format!("{}", message.issued_at), 118 | expiration_time: message.expiration_time.clone().map(|x| format!("{}", x)), 119 | not_before: message.not_before.map(|x| format!("{}", x)), 120 | address: H160(message.address), 121 | }; 122 | let auth_string: String = serde_json::to_string(&auth).unwrap(); 123 | hasher.update(auth_string.as_bytes()); 124 | // add salt to the auth token 125 | hasher.update(rng.gen::<[u8; 32]>()); 126 | let hash = format!("{:X}", hasher.finalize()); 127 | authentication 128 | .put(&hash, &auth_string)? 129 | .expiration( 130 | message 131 | .expiration_time 132 | .unwrap() 133 | .as_ref() 134 | .timestamp() 135 | .unsigned_abs(), 136 | ) 137 | .execute() 138 | .await?; 139 | Ok(hash) 140 | } 141 | Err(_) => Err(worker::Error::from( 142 | "Failed to verify supplied message with signature", 143 | )), 144 | } 145 | } 146 | } 147 | impl AuthRequest { 148 | /// Parses a worker::Request struct for an AuthRequest struct, serialized as a JSON object in 149 | /// the body of the request. 150 | /// 151 | /// ```no_run 152 | /// let router = Router::new(); 153 | /// router.post_async("/api/v1/authorize", |req, ctx| async move { 154 | /// let auth_req: AuthRequest = AuthRequest::from_req(req).await?; 155 | /// }).run(req, ctx).await 156 | /// ``` 157 | pub async fn from_req(mut req: Request) -> Result { 158 | let body = req 159 | .json::() 160 | .await 161 | .map_err(|error| worker::Error::from(format!("body parsing: {:?}", error)))?; 162 | let sig: String = body.signature.trim_start_matches("0x").to_owned(); 163 | let msg: String = body.message; 164 | Ok(AuthRequest { 165 | message: msg, 166 | signature: sig, 167 | }) 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | use ethers::types::Address; 2 | use worker::Response; 3 | use worker::*; 4 | mod utils; 5 | use auth::{AuthRequest, Authorization}; 6 | use std::str::FromStr; 7 | mod auth; 8 | 9 | fn log_request(req: &Request) { 10 | console_log!( 11 | "{} - [{}], located at: {:?}, within: {}", 12 | Date::now().to_string(), 13 | req.path(), 14 | req.cf().coordinates().unwrap_or_default(), 15 | req.cf().region().unwrap_or_else(|| "unknown region".into()) 16 | ); 17 | } 18 | 19 | /// Checks if the request has an authorization token and if that oken is authorized to access 20 | /// the particular resource. Although complex schemes can be used with the Authorization.resources 21 | /// vector, currently we don't use that. 22 | /// 23 | /// The authorization scheme is very simple: 24 | /// 25 | /// A token that is tied to an Address A, has root access to all resources under `/api/v1/users/A`. 26 | /// For example, they can create a new workstream, edit an old one or delete, because the 27 | /// `workstreams` resource is under the following path: `/api/v1/users/A/workstreams/`. 28 | async fn is_authorized(req: &Request, env: &Env, ctx: &RouteContext<()>) -> Result { 29 | let token = auth::Authorization::parse_request(req).await?; 30 | let auth = match auth::Authorization::get(env, token).await? { 31 | Some(authorization) => authorization, 32 | None => return Ok(false), 33 | }; 34 | let addr = Address::from_str(ctx.param("user").unwrap()) 35 | .map_err(|_| worker::Error::from("Cannot parse address"))?; 36 | console_log!("Authorization is tied with user: {}", addr); 37 | Ok(addr == auth.address) 38 | } 39 | /// ## /api/v1/authorize 40 | /// 41 | /// HTTP Methods: POST 42 | /// 43 | /// Required Authorization: None 44 | /// 45 | /// It authorizes an ethereum address to the API and generates a token that is returned to the 46 | /// user. Using that token, the user can access all the resources that have to do with that 47 | /// particular ethereum address (/users/:user/..). 48 | /// 49 | /// It accepts an AuthRequest object as a JSON encoded object in the body of the request. 50 | /// 51 | /// The message and signature **must** comform to EIP4361: https://eips.ethereum.org/EIPS/eip-4361 52 | /// 53 | /// The can be easily generated using: 54 | /// - [siwe-js](https://github.com/spruceid/siwe) 55 | /// - [siwe-rs](https://github.com/spruceid/siwe-rs) 56 | /// 57 | /// A succesful response will include the following cookie in the headers: `SIWE-AUH=XXXXXX`, 58 | /// where XXXXX is the authorization token. 59 | /// 60 | /// With that token, the user can authorize a request to access a resource via a method that 61 | /// requires authorization. The token expires automatically based on the AuthRequest object that 62 | /// was sent and must be renewed using the same mechanism. 63 | /// 64 | /// An example flow of the API: 65 | /// 66 | /// ┌───┐ ┌───┐ ┌───────────────────┐ 67 | /// │Bob│ │API│ │Cloudflare_KV_Store│ 68 | /// └─┬─┘ └─┬─┘ └─────────┬─────────┘ 69 | /// │POST /api/v1/authorization, {sig: "0x..", messsage: "{..}"} │ │ 70 | /// │───────────────────────────────────────────────────────────>│ │ 71 | /// │ │ │ 72 | /// │ ────┐ │ 73 | /// │ │ AuthRequest::parse_req()│ 74 | /// │ <───┘ │ 75 | /// │ │ │ 76 | /// │ ────┐ │ 77 | /// │ │ Authorization::create() │ 78 | /// │ <───┘ │ 79 | /// │ │ │ 80 | /// │ │ PUT Authorization {..} │ 81 | /// │ │────────────────────────────>│ 82 | /// │ │ │ 83 | /// │ │ Ok() │ 84 | /// │ │<────────────────────────────│ 85 | /// │ │ │ 86 | /// │ RESPONSE HEADERS: "set-cookie"="AUTH-SIWE": "xgh934j.." │ │ 87 | /// │<───────────────────────────────────────────────────────────│ │ 88 | /// │ │ │ 89 | /// │ GET api/v1/authorized_resource, AUTH-SIWE="xgh934j" │ │ 90 | /// │───────────────────────────────────────────────────────────>│ │ 91 | /// │ │ │ 92 | /// │ │ GET Authorization │ 93 | /// │ │────────────────────────────>│ 94 | /// │ │ │ 95 | /// │ │ Authorization {..} │ 96 | /// │ │<────────────────────────────│ 97 | /// │ │ │ 98 | /// │ RESPONSE "authorized!" │ │ 99 | /// │<───────────────────────────────────────────────────────────│ │ 100 | /// ┌─┴─┐ ┌─┴─┐ ┌─────────┴─────────┐ 101 | /// │Bob│ │API│ │Cloudflare_KV_Store│ 102 | /// └───┘ └───┘ └───────────────────┘ 103 | /// AuthRequest serialized in JSON: 104 | /// 105 | /// ``` 106 | /// '{\n \"signature\": \"0x49a6e2a1995fde3bd10bd9ae2ecefe199ecfcb576125cc8582ee8458a4efd62668539b11f7bdb10e07f94b223f266cdd5ed592b37db4a2941541336a696d820a1c\",\n \"message\": \"localhost:4361 wants you to sign in with your Ethereum account:\\n0xDFA1fEa9915EF18b1f2A752343b168cA9c9d97aB\\n\\nSIWE Notepad Example\\n\\nURI: http://localhost:4361\\nVersion: 1\\nChain ID: 1\\nNonce: zPPtgK5pMVHnnr8Co\\nIssued At: 2022-03-02T10:56:48.478Z\\nExpiration Time: 2022-03-02T20:56:48.474Z\\nResources:\\n- http://localhost:4361/address/0xDFA1fEa9915EF18b1f2A752343b168cA9c9d97aB\"\n}' 107 | /// ``` 108 | /// 109 | /// If the authorization is succesful, the response will have the following header where the 110 | /// `SIWE-AUTH` cookie is the authorization token. 111 | /// 112 | /// ``` 113 | /// "set-cookie": "SIWE-AUTH=EACB9E10D0FD122CF0D2BA5F282CEBA0D71B48DD40A04893AAB94D1BE3F16F7D; 114 | /// Secure; HttpOnly; SameSite=Lax; Expires=Tue Mar 08 2022 20:51:45 GMT+0000 (Coordinated 115 | /// Universal Time)" 116 | /// ``` 117 | /// 118 | /// 119 | /// 120 | /// 121 | #[event(fetch, respond_with_errors)] 122 | pub async fn main(req: Request, env: Env, _worker_ctx: Context) -> Result { 123 | log_request(&req); 124 | utils::set_panic_hook(); 125 | let router = Router::new(); 126 | router 127 | .get("/api/v0/info", |req, _ctx| { 128 | let version = "0.1"; 129 | console_log!("{}", req.url()?.path()); 130 | Response::ok(version) 131 | }) 132 | .post_async("/api/v1/authorize", |req, ctx| async move { 133 | let auth_req: AuthRequest = AuthRequest::from_req(req).await?; 134 | let token: String = Authorization::create(&ctx.env, auth_req).await?; 135 | let mut headers = Headers::new(); 136 | headers.set( 137 | "Set-cookie", 138 | &format!( 139 | "SIWE-AUTH={}; Secure; HttpOnly; SameSite=Lax; Expires={}", 140 | &token, 141 | Date::now().to_string() 142 | ), 143 | )?; 144 | let res = Response::ok("authorization created") 145 | .unwrap() 146 | .with_headers(headers); 147 | Ok(res) 148 | }) 149 | .get_async("/api/v1/authorized_resource", |req, ctx| async move { 150 | if !is_authorized(&req, &ctx.env, &ctx).await? { 151 | return Response::error("Unauthorized", 401); 152 | } 153 | Response::ok("Authorized!") 154 | }) 155 | .run(req, env) 156 | .await 157 | } 158 | -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- 1 | use cfg_if::cfg_if; 2 | 3 | cfg_if! { 4 | // https://github.com/rustwasm/console_error_panic_hook#readme 5 | if #[cfg(feature = "console_error_panic_hook")] { 6 | extern crate console_error_panic_hook; 7 | pub use self::console_error_panic_hook::set_once as set_panic_hook; 8 | } else { 9 | #[inline] 10 | pub fn set_panic_hook() {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "ethsig" 2 | type = "javascript" 3 | workers_dev = true 4 | compatibility_date = "2022-01-26" 5 | kv_namespaces = [ 6 | { binding = "AUTHENTICATION", preview_id = "671d647da83f4e6f8c0ab54c5d3667ae", id = "b086e622446b48ac8a70a35014c35620" } 7 | ] 8 | 9 | [vars] 10 | WORKERS_RS_VERSION = "0.0.7" 11 | 12 | [build] 13 | command = "cargo install -q worker-build && worker-build --release" # required 14 | 15 | [build.upload] 16 | dir = "build/worker" 17 | format = "modules" 18 | main = "./shim.mjs" 19 | 20 | [[build.upload.rules]] 21 | globs = ["**/*.wasm"] 22 | type = "CompiledWasm" 23 | 24 | 25 | --------------------------------------------------------------------------------