diff --git a/CHANGELOG.md b/CHANGELOG.md index 3814cea8..6fb4df34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] ### Added +- [\#154](https://github.com/Manta-Network/manta-signer/pull/154) Add storage abstractions and add server storage hook ### Changed diff --git a/Cargo.toml b/Cargo.toml index c9e79660..305338a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,11 +36,11 @@ derivative = { version = "2.2.0", default-features = false, features = ["use_cor dirs-next = { version = "2.0.0", default-features = false } futures = { version = "0.3.17", default-features = false, features = ["alloc"] } http-types = { version = "2.12.0", default-features = false } -manta-accounting = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.3", default-features = false, features = ["cocoon-fs"] } -manta-crypto = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.3", default-features = false, features = ["getrandom"] } -manta-parameters = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.3", default-features = false, features = ["download"] } -manta-pay = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.3", default-features = false, features = ["bs58", "groth16", "serde", "wallet"] } -manta-util = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.3", default-features = false } +manta-accounting = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["cocoon-fs"] } +manta-crypto = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["getrandom"] } +manta-parameters = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["download"] } +manta-pay = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false, features = ["bs58", "groth16", "serde", "wallet"] } +manta-util = { git = "https://github.com/manta-network/manta-rs", tag = "v0.5.4", default-features = false } parking_lot = { version = "0.12.1", default-features = false } password-hash = { version = "0.4.2", default-features = false, features = ["alloc"] } secrecy = { version = "0.8.0", default-features = false, features = ["alloc"] } diff --git a/README.md b/README.md index 604a7458..6fc01088 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ `manta-signer` is manta's native client that **turbo charges** zero-knowledge-proof generation. - +
+ +
**Disclaimer: `manta-signer` is experimental software, use it at your own risk.** diff --git a/examples/test_server.rs b/examples/test_server.rs index 8042ca0f..02b3933f 100644 --- a/examples/test_server.rs +++ b/examples/test_server.rs @@ -20,7 +20,7 @@ use manta_crypto::rand::{CryptoRng, OsRng, RngCore, Sample}; use manta_signer::{ config::Config, secret::{Authorizer, Password, PasswordFuture, SecretString}, - service::{self, Error}, + service::{Error, Server}, }; /// Mock User @@ -58,5 +58,8 @@ async fn main() -> Result<(), Error> { if let Some(url) = std::env::args().nth(1) { config.service_url = url; } - service::start(config, MockUser::new(&mut OsRng)).await + Server::build(config, MockUser::new(&mut OsRng)) + .await? + .start() + .await } diff --git a/mac-installation.png b/mac-installation.png new file mode 100644 index 00000000..55798ca2 Binary files /dev/null and b/mac-installation.png differ diff --git a/src/http.rs b/src/http.rs new file mode 100644 index 00000000..159e8e64 --- /dev/null +++ b/src/http.rs @@ -0,0 +1,63 @@ +// Copyright 2019-2022 Manta Network. +// This file is part of manta-signer. +// +// manta-signer is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// manta-signer is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with manta-signer. If not, see