wip adding bitcoin keys to side nodes
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::{crdt::TransactionList, utils, websocket::WebSocketClient};
|
||||
pub struct SideNode {
|
||||
crdt: BaseCrdt<TransactionList>,
|
||||
bft_crdt_keys: fastcrypto::ed25519::Ed25519KeyPair,
|
||||
bitcoin_keys: bitcoin::secp256k1::Keypair,
|
||||
incoming_receiver: mpsc::Receiver<SignedOp>,
|
||||
stdin_receiver: std::sync::mpsc::Receiver<String>,
|
||||
handle: ezsockets::Client<WebSocketClient>,
|
||||
@@ -15,14 +16,16 @@ pub struct SideNode {
|
||||
impl SideNode {
|
||||
pub fn new(
|
||||
crdt: BaseCrdt<TransactionList>,
|
||||
keys: Ed25519KeyPair,
|
||||
bft_crdt_keys: Ed25519KeyPair,
|
||||
bitcoin_keys: bitcoin::secp256k1::Keypair,
|
||||
incoming_receiver: mpsc::Receiver<SignedOp>,
|
||||
stdin_receiver: std::sync::mpsc::Receiver<String>,
|
||||
handle: ezsockets::Client<WebSocketClient>,
|
||||
) -> Self {
|
||||
let node = Self {
|
||||
crdt,
|
||||
bft_crdt_keys: keys,
|
||||
bft_crdt_keys,
|
||||
bitcoin_keys,
|
||||
incoming_receiver,
|
||||
stdin_receiver,
|
||||
handle,
|
||||
|
||||
Reference in New Issue
Block a user