wip adding bitcoin keys to side nodes

This commit is contained in:
Dave Hrycyszyn
2024-06-18 16:56:24 +01:00
parent ecec883f9b
commit 706a671902
5 changed files with 19 additions and 12 deletions

View File

@@ -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,