redgold 0.1.0

A relative proof conflict resolution & irreversibility service with trust modeling custodial pooling and executor contracts
1
2
3
4
5
6
7
8
9
10
11
12
13
use redgold_schema::structs::{Address, ErrorInfo};
use crate::util;
use crate::util::cmd::run_cmd;

pub mod trezor;
// pub mod debug;
// pub mod trezor_unchecked;


trait HardwareWallet {
    fn get_address<S: Into<String>>(&self, path: S) -> Result<Address, ErrorInfo>;
    fn sign<S: Into<String>, M: Into<String>>(&self, path: S, message: M) -> Result<String, ErrorInfo>;
}