Ivan Boldyrev 8ce8af3823
feat(avm-server,air-interpreter,aquavm-air)!: secret key and particle ID arguments (#593)
* feat(avm-server)!: keypair and particle ID arguments

Add `&fluence_keypair::KeyPair` argument to `AVM::call` and
`AVMRunner::call`.  This value is further forwarded in a deconstructed
form to WASM Air interpreter, but is not used there yet. Also,
`AVMRunner::call` gets `particle_id: String` argument.

feat(air-interpreter)!: `invoke` methods have three new arguments:
`key_format: u8`, `secret_key_bytes: Vec<u8>` and `paritcle_id: String`.

feat(aquavm-air): `air::execute_air` has two three arguments:
`key_format: u8`, `secret_key_bytes: Vec<u8>` and `paritcle_id: String`.

feat(aquavm-air-cli)!: add `--random-key`/`--ed25519-key file` options to AIR CLI.

* feat(avm-server)!: Add `RunnerError::KeypairError`

* chore(bench): Add signature performance benchmarks

These benchmarks contain valid signature, so they should work with
verification out of the box.

---------

Co-authored-by: Artsiom Shamsutdzinau <shamsartem@gmail.com>
Co-authored-by: folex <0xdxdy@gmail.com>
2023-06-23 03:12:37 +07:00

43 lines
1.2 KiB
TOML

[package]
name = "air-test-utils"
version = "0.5.0"
description = "Test utils for the AIR interpreter"
authors = ["Fluence Labs"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/fluencelabs/aquavm"
documentation = "https://docs.rs/air-test-utils"
keywords = ["fluence", "air", "webassembly", "security", "authorization"]
categories = ["wasm"]
[lib]
name = "air_test_utils"
path = "src/lib.rs"
[dependencies]
aquavm-air = { version = "0.39.0", path = "../../../air" }
air-interpreter-cid = { version = "0.2.0", path = "../interpreter-cid" }
air-interpreter-data = { version = "0.7.0", path = "../interpreter-data" }
air-interpreter-interface = { version = "0.13.0", path = "../interpreter-interface" }
avm-interface = { version = "0.28.3", path = "../../../avm/interface" }
avm-server = { version = "0.31.0", path = "../../../avm/server" }
marine-rs-sdk = "0.7.1"
fstrings = "0.2.3"
object-pool = "0.5.4"
once_cell = "1.17.1"
semver = "1.0.17"
serde_json = "1.0.95"
serde = { version = "1.0.159", features = ["derive"] }
fluence-keypair = "0.10.1"
ed25519-dalek = "1.0.1"
rand_chacha = "0.2.2"
sha2 = "0.10.6"
[dev-dependencies]
maplit = "1.0.2"
[features]
test_with_native_code = []