Bitcoin keys now being produced per-node

This commit is contained in:
Dave Hrycyszyn
2024-06-18 16:32:32 +01:00
parent 4cf6513959
commit f5da5af0b9
8 changed files with 66 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ use crate::{crdt::TransactionList, utils, websocket::WebSocketClient};
pub struct SideNode {
crdt: BaseCrdt<TransactionList>,
keys: fastcrypto::ed25519::Ed25519KeyPair,
bft_crdt_keys: fastcrypto::ed25519::Ed25519KeyPair,
incoming_receiver: mpsc::Receiver<SignedOp>,
stdin_receiver: std::sync::mpsc::Receiver<String>,
handle: ezsockets::Client<WebSocketClient>,
@@ -22,7 +22,7 @@ impl SideNode {
) -> Self {
let node = Self {
crdt,
keys,
bft_crdt_keys: keys,
incoming_receiver,
stdin_receiver,
handle,
@@ -80,7 +80,7 @@ impl SideNode {
.doc
.list
.insert(last.id, transaction)
.sign(&self.keys);
.sign(&self.bft_crdt_keys);
// self.trace_crdt();
signed_op
}