mirror of
https://github.com/mimblewimble/mwixnet.git
synced 2025-01-20 19:11:09 +03:00
re-import onion primitives from grin-wallet contracts branch
This commit is contained in:
parent
f634182532
commit
0f8f5994df
10 changed files with 10 additions and 0 deletions
|
@ -12,6 +12,7 @@ use rand::{Rng, thread_rng};
|
|||
use ring::{aead, pbkdf2};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use thiserror::Error;
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
|
||||
use grin_onion::crypto::dalek::DalekPublicKey;
|
||||
use grin_onion::crypto::secp::SecretKey;
|
||||
|
|
|
@ -10,6 +10,7 @@ use serde_json::json;
|
|||
use thiserror::Error;
|
||||
use tor_rtcompat::Runtime;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::dalek::{self, DalekPublicKey};
|
||||
use grin_onion::onion::Onion;
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ use grin_util::ToHex;
|
|||
use serde_json::json;
|
||||
use thiserror::Error;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::secp::Commitment;
|
||||
|
||||
use crate::http;
|
||||
|
|
|
@ -10,6 +10,7 @@ use grin_core::ser::ProtocolVersion;
|
|||
use itertools::Itertools;
|
||||
use thiserror::Error;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::dalek::{self, DalekSignature};
|
||||
use grin_onion::onion::{Onion, OnionError, PeeledOnion};
|
||||
use secp256k1zkp::key::ZERO_KEY;
|
||||
|
|
|
@ -6,6 +6,7 @@ use jsonrpc_http_server::{DomainsValidation, ServerBuilder};
|
|||
use jsonrpc_http_server::jsonrpc_core::{self, BoxFuture, IoHandler};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::dalek::{self, DalekSignature};
|
||||
use grin_onion::onion::Onion;
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ use itertools::Itertools;
|
|||
use secp256k1zkp::key::ZERO_KEY;
|
||||
use thiserror::Error;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::comsig::ComSignature;
|
||||
use grin_onion::crypto::secp::{Commitment, Secp256k1, SecretKey};
|
||||
use grin_onion::onion::{Onion, OnionError};
|
||||
|
|
|
@ -6,6 +6,7 @@ use jsonrpc_derive::rpc;
|
|||
use jsonrpc_http_server::{DomainsValidation, ServerBuilder};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::comsig::{self, ComSignature};
|
||||
use grin_onion::onion::Onion;
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ use grin_store::{self as store, Store};
|
|||
use grin_util::ToHex;
|
||||
use thiserror::Error;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::secp::{self, Commitment, RangeProof, SecretKey};
|
||||
use grin_onion::onion::Onion;
|
||||
use grin_onion::util::{read_optional, write_optional};
|
||||
|
|
|
@ -4,6 +4,7 @@ use grin_core::core::{
|
|||
FeeFields, Input, Inputs, KernelFeatures, Output, Transaction, TransactionBody, TxKernel,
|
||||
};
|
||||
use grin_keychain::BlindingFactor;
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::secp;
|
||||
use secp256k1zkp::{ContextFlag, Secp256k1, SecretKey};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
|
@ -11,6 +11,7 @@ use serde::{Deserialize, Serialize};
|
|||
use serde_json::json;
|
||||
use thiserror::Error;
|
||||
|
||||
use grin_wallet_libwallet::mwixnet::onion as grin_onion;
|
||||
use grin_onion::crypto::secp;
|
||||
use secp256k1zkp::{PublicKey, Secp256k1, SecretKey};
|
||||
|
||||
|
|
Loading…
Reference in a new issue