uckb_key/
lib.rs

1// Copyright (C) 2019-2020 Boyu Yang
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9#[macro_use]
10mod utilities;
11
12mod pkhash;
13pub use pkhash::PubKeyHash;
14
15pub mod address;
16
17pub mod blake2b;
18pub mod secp256k1;
19
20#[derive(Debug, Clone, Copy, PartialEq, Eq)]
21pub enum HashAlgo {
22    Blake2b256,
23}
24
25#[derive(Debug, Clone, PartialEq, Eq)]
26pub enum SignAlgo {
27    Secp256k1(secp256k1::SecretKey),
28}