Skip to content

Instantly share code, notes, and snippets.

Locutus

How to detect malfunctioning / byzantine nodes?

Situation

  • Nodes W, X, Y and Z hold the state of contract c
  • Node X has W and Y as peers
  • A is any node
  • We measure performance of X
@sapristi
sapristi / cargo.toml
Last active May 28, 2023 14:43
Rust / Node RSA from bip39 mnemonc
[package]
name = "rust"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.8.5"
ring = "0.16.20"
@sapristi
sapristi / keyboard.rules
Last active February 8, 2024 09:33
Udev rule and script for automatic keyboard layout settings
# /etc/udev/rules.d/00-keyboard.rules
ACTION=="add", ATTR{name}=="Bastard Keyboards Charybdis Nano", ATTR{phys}=="*/input0", OWNER="sapristi", RUN+="/usr/local/bin/usb-keyboard-udev Charybdis"
NOTE:
on ubunut, use ACTION=="bind", otherwise device may not be present !!