     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70

    // Copyright 2015-2017 Parity Technologies (UK) Ltd.
    // This file is part of Parity.

    // Parity 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.

    // Parity 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 Parity.  If not, see <http://www.gnu.org/licenses/>.

    #![warn(missing_docs)]
    #![cfg_attr(all(nightly, feature="dev"), feature(plugin))]
    #![cfg_attr(all(nightly, feature="dev"), plugin(clippy))]

    //! Signer module
    //!
    //! This module manages your private keys and accounts/identities
    //! that can be used within Dapps.
    //!
    //! It exposes API (over `WebSockets`) accessed by Signer UIs.
    //! Each transaction sent by Dapp is broadcasted to Signer UIs
    //! and their responsibility is to confirm (or confirm and sign)
    //! the transaction for you.
    //!
    //! ```
    //! extern crate jsonrpc_core;
    //! extern crate ethcore_signer;
    //! extern crate ethcore_rpc;
    //!
    //! use std::sync::Arc;
    //! use jsonrpc_core::IoHandler;
    //! use jsonrpc_core::reactor::RpcEventLoop;
    //! use ethcore_signer::ServerBuilder;
    //! use ethcore_rpc::ConfirmationsQueue;
    //!
    //!	fn main() {
    //!	 let queue = Arc::new(ConfirmationsQueue::default());
    //!	 let io = Arc::new(IoHandler::new().into());
    //!	 let event_loop = RpcEventLoop::spawn();
    //!	 let _server = ServerBuilder::new(queue, "/tmp/authcodes".into())
    //!		.start("127.0.0.1:8084".parse().unwrap(), event_loop.handler(io));
    //!	}
    //! ```

    #[macro_use]
    extern crate log;
    extern crate env_logger;
    extern crate rand;

    extern crate ethcore_util as util;
    extern crate ethcore_rpc as rpc;
    extern crate ethcore_io as io;
    extern crate jsonrpc_core;
    extern crate ws;

    extern crate ethcore_devtools as devtools;

    mod authcode_store;
    mod ws_server;

    /// Exported tests for use in signer RPC client testing
    pub mod tests;
    pub use authcode_store::*;
    pub use ws_server::*;

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)