2017-05-25 02:08:39 +03:00
|
|
|
// Copyright 2016 The Grin Developers
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2017-04-29 23:58:26 +03:00
|
|
|
|
2017-05-25 02:08:39 +03:00
|
|
|
//! Library module for the main wallet functionalities provided by Grin.
|
|
|
|
|
|
|
|
extern crate byteorder;
|
2017-09-27 01:51:45 +03:00
|
|
|
extern crate blake2_rfc as blake2;
|
2017-05-25 02:08:39 +03:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2017-04-29 23:58:26 +03:00
|
|
|
extern crate rand;
|
2017-05-25 02:08:39 +03:00
|
|
|
extern crate serde;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
extern crate serde_json;
|
2017-04-29 23:58:26 +03:00
|
|
|
|
2017-05-25 02:08:39 +03:00
|
|
|
extern crate grin_api as api;
|
|
|
|
extern crate grin_core as core;
|
2017-10-03 03:02:31 +03:00
|
|
|
extern crate grin_keychain as keychain;
|
2017-05-25 02:08:39 +03:00
|
|
|
extern crate grin_util as util;
|
|
|
|
extern crate secp256k1zkp as secp;
|
2017-04-29 23:58:26 +03:00
|
|
|
|
2017-05-29 06:21:29 +03:00
|
|
|
mod checker;
|
2017-09-24 07:40:31 +03:00
|
|
|
mod info;
|
2017-05-25 02:08:39 +03:00
|
|
|
mod receiver;
|
|
|
|
mod sender;
|
|
|
|
mod types;
|
2017-04-29 23:58:26 +03:00
|
|
|
|
2017-09-24 07:40:31 +03:00
|
|
|
pub use info::show_info;
|
2017-06-08 04:12:15 +03:00
|
|
|
pub use receiver::{WalletReceiver, receive_json_tx};
|
2017-05-29 06:21:29 +03:00
|
|
|
pub use sender::issue_send_tx;
|
2017-06-27 05:09:01 +03:00
|
|
|
pub use types::{WalletConfig, WalletReceiveRequest, CbAmount, CbData};
|