repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/container.rs | frostsnap_widgets/src/layout/container.rs | use crate::super_draw_target::SuperDrawTarget;
use crate::Widget;
use embedded_graphics::{
draw_target::DrawTarget,
prelude::*,
primitives::{Rectangle, RoundedRectangle, StrokeAlignment},
};
/// A container that can optionally draw a border around its child
#[derive(PartialEq)]
pub struct Container<W>
wher... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/alignment.rs | frostsnap_widgets/src/layout/alignment.rs | use crate::Widget;
use crate::{super_draw_target::SuperDrawTarget, Instant};
use embedded_graphics::{
draw_target::DrawTarget,
geometry::{Point, Size},
primitives::Rectangle,
};
/// Alignment for positioning widgets
#[derive(Default, Debug, Clone, Copy, PartialEq)]
pub enum Alignment {
#[default]
T... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/center.rs | frostsnap_widgets/src/layout/center.rs | use crate::Widget;
use crate::{super_draw_target::SuperDrawTarget, Instant};
use embedded_graphics::{
draw_target::DrawTarget,
geometry::{Point, Size},
primitives::Rectangle,
};
/// A widget that centers its child both horizontally and vertically
#[derive(PartialEq)]
pub struct Center<W> {
pub child: W... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/collections.rs | frostsnap_widgets/src/layout/collections.rs | //! Implementations of AssociatedArray and PushWidget for various collection types
use super::{AssociatedArray, PushWidget};
use alloc::{boxed::Box, vec, vec::Vec};
// The empty tuple needs special handling since it has no widgets
// We implement DynWidget for it to make everything work
impl crate::DynWidget for () {... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/mod.rs | frostsnap_widgets/src/layout/mod.rs | mod alignment;
mod center;
mod collections;
mod column;
mod container;
mod padding;
mod row;
mod sized_box;
mod stack;
pub use alignment::{Align, Alignment, HorizontalAlignment, VerticalAlignment};
pub use center::Center;
pub use column::Column;
pub use container::Container;
pub use padding::Padding;
pub use row::Row;... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/stack.rs | frostsnap_widgets/src/layout/stack.rs | use super::{Alignment, AssociatedArray};
use crate::super_draw_target::SuperDrawTarget;
use crate::{Instant, Widget};
use alloc::vec::Vec;
use embedded_graphics::{
draw_target::DrawTarget,
geometry::{Point, Size},
primitives::Rectangle,
};
/// Positioning mode for a child in the Stack
#[derive(Debug, Clone... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/layout/padding.rs | frostsnap_widgets/src/layout/padding.rs | use crate::Widget;
use crate::{super_draw_target::SuperDrawTarget, Instant};
use core::ops::{Deref, DerefMut};
use embedded_graphics::{
draw_target::DrawTarget,
geometry::{Point, Size},
primitives::Rectangle,
};
/// A widget that adds padding around its child
#[derive(PartialEq)]
pub struct Padding<W: Widg... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/enter_share_screen.rs | frostsnap_widgets/src/backup/enter_share_screen.rs | //! important to understand this module was developed prior to the widget system
//! being fleshed out and so it's very half baked and error prone.
use super::{
AlphabeticKeyboard, BackupModel, EnteredWords, InputPreview, MainViewState, NumericKeyboard,
WordSelector,
};
use crate::super_draw_target::SuperDrawTa... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/numeric_keyboard.rs | frostsnap_widgets/src/backup/numeric_keyboard.rs | use crate::DefaultTextStyle;
use crate::{
icons::IconWidget, palette::PALETTE, prelude::*, touch_listener::TouchListener, Key, FONT_MED,
};
use alloc::string::String;
use embedded_graphics::{pixelcolor::Rgb565, prelude::*};
use embedded_iconoir::prelude::*;
use frostsnap_macros::Widget;
// Type alias to simplify t... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/word_selector.rs | frostsnap_widgets/src/backup/word_selector.rs | use crate::{
palette::PALETTE, prelude::*, touch_listener::TouchListener, DefaultTextStyle, Key, FONT_MED,
};
use alloc::{string::String, vec::Vec};
use embedded_graphics::prelude::*;
use frostsnap_macros::Widget;
// Type aliases to simplify the complex type
/// A button widget that displays a BIP39 word with pref... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/input_preview.rs | frostsnap_widgets/src/backup/input_preview.rs | use super::backup_model::{FramebufferMutation, MainViewState, ViewState};
use super::LEGACY_FONT_MED;
use crate::cursor::Cursor;
use crate::palette::PALETTE;
use crate::progress_bars::ProgressBars;
use crate::super_draw_target::SuperDrawTarget;
use crate::text::Text as TextWidget;
use crate::{
icons, Align, Alignme... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/backup_display.rs | frostsnap_widgets/src/backup/backup_display.rs | use crate::backup::LEGACY_FONT_SMALL;
use crate::DefaultTextStyle;
use crate::HOLD_TO_CONFIRM_TIME_MS;
use crate::{
icons::IconWidget, page_slider::PageSlider, palette::PALETTE, prelude::*,
share_index::ShareIndexWidget, widget_list::WidgetList, FadeSwitcher, HoldToConfirm,
U8g2TextStyle, FONT_HUGE_MONO, FO... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/backup_model.rs | frostsnap_widgets/src/backup/backup_model.rs | use alloc::borrow::Cow;
use alloc::boxed::Box;
use alloc::string::{String, ToString};
use alloc::vec::Vec;
use frost_backup::{
bip39_words::{self, ValidLetters},
share_backup::ShareBackup,
NUM_WORDS,
};
#[derive(Debug)]
pub struct BackupModel {
share_index: String,
share_index_confirmed: bool,
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/t9_keyboard.rs | frostsnap_widgets/src/backup/t9_keyboard.rs | use crate::palette::PALETTE;
use crate::super_draw_target::SuperDrawTarget;
use crate::DefaultTextStyle;
use crate::{Key, KeyTouch, Widget, FONT_LARGE, FONT_SMALL};
use alloc::string::String;
use embedded_graphics::{
pixelcolor::Rgb565,
prelude::*,
primitives::{PrimitiveStyle, Rectangle, RoundedRectangle},
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/alphabetic_keyboard.rs | frostsnap_widgets/src/backup/alphabetic_keyboard.rs | use crate::{
palette::PALETTE, super_draw_target::SuperDrawTarget, U8g2TextStyle, Widget, LEGACY_FONT_LARGE,
};
use alloc::{boxed::Box, string::ToString};
use embedded_graphics::{
framebuffer::{buffer_size, Framebuffer},
image::Image,
iterator::raw::RawDataSlice,
pixelcolor::{
raw::{LittleEn... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/mod.rs | frostsnap_widgets/src/backup/mod.rs | mod alphabetic_keyboard;
mod backup_display;
mod backup_model;
mod backup_status_bar;
mod enter_share_screen;
mod entered_words;
mod input_preview;
mod numeric_keyboard;
mod t9_keyboard;
mod word_selector;
pub use alphabetic_keyboard::AlphabeticKeyboard;
pub use backup_display::{AllWordsPage, BackupDisplay};
pub use b... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/backup_status_bar.rs | frostsnap_widgets/src/backup/backup_status_bar.rs | use crate::palette::PALETTE;
use crate::DefaultTextStyle;
use crate::{any_of::AnyOf, prelude::*, FONT_MED, FONT_SMALL};
use alloc::string::ToString;
use embedded_graphics::prelude::*;
use frost_backup::NUM_WORDS;
pub const STATUS_BAR_HEIGHT: u32 = 55;
const CORNER_RADIUS: Size = Size::new(40, 5);
#[derive(Debug, Clon... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/src/backup/entered_words.rs | frostsnap_widgets/src/backup/entered_words.rs | use crate::palette::PALETTE;
use crate::{DynWidget as _, Key, KeyTouch};
use alloc::rc::Rc;
use core::cell::RefCell;
use embedded_graphics::{
iterator::raw::RawDataSlice,
pixelcolor::{
raw::{LittleEndian, RawU2},
Gray2, Rgb565,
},
prelude::*,
primitives::Rectangle,
};
use super::{
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/tests/vec_framebuffer.rs | frostsnap_widgets/tests/vec_framebuffer.rs | //! Tests for VecFramebuffer
use embedded_graphics::{
geometry::{Point, Size},
pixelcolor::{BinaryColor, Gray8, Rgb565},
prelude::*,
primitives::{Circle, PrimitiveStyle, Rectangle},
};
use frostsnap_widgets::vec_framebuffer::VecFramebuffer;
#[test]
fn test_framebuffer_creation_rgb565() {
let fb: V... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/tests/rat.rs | frostsnap_widgets/tests/rat.rs | use frostsnap_widgets::rat::{Frac, Rat};
#[test]
fn test_rat_from_ratio() {
// Test basic ratios
let half = Rat::from_ratio(1, 2);
let quarter = Rat::from_ratio(1, 4);
let three_quarters = Rat::from_ratio(3, 4);
let two = Rat::from_ratio(2, 1);
// Can't access internal values directly anymore,... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_widgets/tests/fader.rs | frostsnap_widgets/tests/fader.rs | use embedded_graphics::{
draw_target::DrawTarget,
geometry::{Point, Size},
pixelcolor::Rgb565,
primitives::{Primitive, PrimitiveStyle, Rectangle},
Drawable,
};
use frostsnap_widgets::{
palette::PALETTE, vec_framebuffer::VecFramebuffer, Container, DefaultTextStyle, DynWidget,
Fader, Frac, Ins... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/nonce_slots.rs | frostsnap_embedded/src/nonce_slots.rs | use alloc::vec::Vec;
use embedded_storage::nor_flash::NorFlash;
use frostsnap_core::device_nonces::{AbSlots, NonceStreamSlot, SecretNonceSlot};
use frostsnap_core::Versioned;
use crate::{ab_write::AbSlot, FlashPartition};
#[derive(Clone, Debug)]
pub struct NonceAbSlot<'a, S>(AbSlot<'a, S>);
impl<'a, S: NorFlash> Non... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/test.rs | frostsnap_embedded/src/test.rs | use alloc::boxed::Box;
use embedded_storage::nor_flash;
pub struct TestNorFlash(pub Box<[u8; 4096 * 4]>);
const WORD_SIZE: u32 = 4;
impl Default for TestNorFlash {
fn default() -> Self {
Self::new()
}
}
impl TestNorFlash {
pub fn new() -> Self {
Self(Box::new([0xffu8; 4096 * 4]))
}
}
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/lib.rs | frostsnap_embedded/src/lib.rs | #![no_std]
#[cfg(feature = "std")]
#[macro_use]
extern crate std;
#[macro_use]
extern crate alloc;
mod ab_write;
#[cfg(test)]
pub mod test;
pub use ab_write::*;
mod nor_flash_log;
pub use nor_flash_log::*;
mod partition;
pub use partition::*;
mod nonce_slots;
pub use nonce_slots::*;
| rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/partition.rs | frostsnap_embedded/src/partition.rs | use alloc::boxed::Box;
use core::cell::RefCell;
use embedded_storage::nor_flash::{NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash};
use frostsnap_comms::firmware_reader::{FirmwareReader, SECTOR_SIZE as FIRMWARE_SECTOR_SIZE};
use crate::ABWRITE_BINCODE_CONFIG;
pub struct FlashPartition<'a, S> {
pub tag: &... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/nor_flash_log.rs | frostsnap_embedded/src/nor_flash_log.rs | use alloc::string::ToString;
use embedded_storage::nor_flash::NorFlash;
use crate::FlashPartition;
const WORD_SIZE: u32 = core::mem::size_of::<u32>() as u32;
// so we get some buffer exhaustion while writing if we're testing
pub const WRITE_BUF_SIZE: usize = if cfg!(debug_assertions) { 512 } else { 32 };
pub struct N... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_embedded/src/ab_write.rs | frostsnap_embedded/src/ab_write.rs | use crate::FlashPartition;
use embedded_storage::nor_flash::NorFlash;
pub const ABWRITE_BINCODE_CONFIG: bincode::config::Configuration<
bincode::config::LittleEndian,
bincode::config::Fixint,
bincode::config::NoLimit,
> = bincode::config::standard().with_fixed_int_encoding();
/// Manages two writable secto... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/macros/src/lib.rs | macros/src/lib.rs | use proc_macro::TokenStream;
use quote::quote;
use syn::{Data, DeriveInput, Fields, parse_macro_input};
#[proc_macro_derive(Kind, attributes(delegate_kind))]
pub fn derive_kind(input: TokenStream) -> TokenStream {
// Parse the input tokens into a syntax tree
let input = parse_macro_input!(input as DeriveInput)... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/macros/tests/hex_test.rs | macros/tests/hex_test.rs | use frostsnap_macros::hex;
#[test]
fn test_hex_basic() {
let bytes: [u8; 4] = hex!("deadbeef");
assert_eq!(bytes, [0xde, 0xad, 0xbe, 0xef]);
}
#[test]
fn test_hex_empty() {
let bytes: [u8; 0] = hex!("");
assert_eq!(bytes, []);
}
#[test]
fn test_hex_single_byte() {
let bytes: [u8; 1] = hex!("ff");... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/lib.rs | frost_backup/src/lib.rs | #![no_std]
#[cfg(feature = "std")]
#[macro_use]
extern crate std;
#[allow(unused_imports)]
#[macro_use]
extern crate alloc;
pub mod bip39_words;
pub mod recovery;
pub mod share_backup;
mod error;
pub use error::*;
pub use schnorr_fun::frost::Fingerprint;
pub use share_backup::*;
/// The default fingerprint used fo... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/share_backup.rs | frost_backup/src/share_backup.rs | use crate::bip39_words::{word_to_index, BIP39_WORDS, BITS_PER_WORD};
use crate::error::ShareBackupError;
use alloc::{string::ToString, vec::Vec};
use core::{
fmt,
ops::{BitOrAssign, Shl},
str::FromStr,
};
use schnorr_fun::{
frost::{Fingerprint, SecretShare, ShareImage, ShareIndex, SharedKey},
fun::{... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/bip39_words.rs | frost_backup/src/bip39_words.rs | //\! BIP39 English word list
/// Number of bits per BIP39 word
pub const BITS_PER_WORD: usize = 11;
/// Get the index of a word in the BIP39 word list using binary search
/// Returns None if the word is not in the list
pub fn word_to_index(word: &str) -> Option<usize> {
BIP39_WORDS.binary_search(&word).ok()
}
//... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/error.rs | frost_backup/src/error.rs | //! Error types for frost_backup
use alloc::string::String;
use core::fmt;
#[derive(Debug, Clone, PartialEq)]
pub enum ShareBackupError {
/// A word at a specific position is not in the BIP39 word list
InvalidBip39Word {
/// The word index (0 = share index, 1-25 = words)
word_index: usize,
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/recovery.rs | frost_backup/src/recovery.rs | use crate::ShareBackup;
use alloc::collections::{BTreeMap, BTreeSet};
use alloc::vec::Vec;
use schnorr_fun::{
frost::{Fingerprint, SecretShare, ShareImage, ShareIndex, SharedKey},
fun::prelude::*,
};
/// Errors that can occur during secret recovery.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Recover... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/src/bin/frost_backup.rs | frost_backup/src/bin/frost_backup.rs | use clap::{Parser, Subcommand};
use core::convert::TryInto;
use frost_backup::*;
use schnorr_fun::fun::prelude::*;
use std::fs;
use std::str::FromStr;
fn print_derivation_path_explanation() {
eprintln!("🗺️ Derivation path explanation:");
eprintln!(" The descriptor uses the path: /0/0/0/0/<0;1>/*");
epr... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/checksum_statistics.rs | frost_backup/tests/checksum_statistics.rs | use core::convert::TryInto;
use frost_backup::*;
use rand::Rng;
use secp256kfun::{
proptest::test_runner::{RngAlgorithm, TestRng},
s,
};
#[test]
fn test_checksum_false_positive_rate() {
// The words checksum uses WORDS_CHECKSUM_BITS bits
// So we expect about 1/(2^WORDS_CHECKSUM_BITS) false positives
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/recovery_tests.rs | frost_backup/tests/recovery_tests.rs | mod common;
use frost_backup::{recovery, ShareBackup};
use rand::{rngs::StdRng, SeedableRng};
use schnorr_fun::frost::{ShareImage, SharedKey};
use secp256kfun::prelude::*;
const TEST_FINGERPRINT: schnorr_fun::frost::Fingerprint = schnorr_fun::frost::Fingerprint {
bits_per_coeff: 10,
max_bits_total: 20,
ta... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/descriptor_match.rs | frost_backup/tests/descriptor_match.rs | use bitcoin::bip32::DerivationPath;
use bitcoin::secp256k1;
use bitcoin::{Address, Network};
use frost_backup::generate_xpriv;
use frostsnap_coordinator::bitcoin::{descriptor_for_account_keychain, wallet::KeychainId};
use frostsnap_core::{
tweak::{AccountKind, BitcoinAccount, BitcoinAccountKeychain, Keychain},
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/specification_tests.rs | frost_backup/tests/specification_tests.rs | use core::{convert::TryInto, str::FromStr};
use frost_backup::*;
use schnorr_fun::frost::SharedKey;
use secp256kfun::{marker::*, Scalar};
mod common;
use common::{INVALID_SHARE_CHECKSUM, TEST_SHARES_1_OF_1, TEST_SHARES_2_OF_3, TEST_SHARES_3_OF_5};
/// Iterator that generates all combinations of k elements from n elem... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/error_handling.rs | frost_backup/tests/error_handling.rs | //! Test improved error handling for invalid BIP39 words
use frost_backup::{ShareBackup, ShareBackupError};
#[test]
fn test_invalid_word_error_message() {
// Test with an invalid word at position 5
let mut words = ["ABANDON"; 25];
words[4] = "INVALIDWORD"; // 5th word (0-indexed)
let result = ShareBa... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/proptest.rs | frost_backup/tests/proptest.rs | use core::convert::TryInto;
use frost_backup::*;
use proptest::prelude::*;
use rand::seq::SliceRandom;
use schnorr_fun::frost::ShareImage;
use secp256kfun::{
marker::*,
proptest::{
arbitrary::any,
strategy::{Just, Strategy},
test_runner::{RngAlgorithm, TestRng},
},
Point, Scalar,... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frost_backup/tests/common/mod.rs | frost_backup/tests/common/mod.rs | #![allow(unused)]
/// Shared test vectors for a 1-of-1 scheme
/// Secret used: 0x0101010101010101010101010101010101010101010101010101010101010101
/// Generated with fingerprint: 18-bit "frost-v0"
pub const TEST_SHARES_1_OF_1: &[&str] = &[
"#1 ABSURD AMOUNT DOCTOR ACOUSTIC AVOID LETTER ADVICE CAGE ABSURD AMOUNT DOCT... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/desktop_camera/src/lib.rs | frostsnapp/desktop_camera/src/lib.rs | pub mod common;
pub mod decode;
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "linux")]
pub use linux::LinuxCamera as Camera;
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "windows")]
pub use windows::WindowsCamera as Camera;
pub use common::{
CameraError, CameraSink, DeviceChange, Devi... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/desktop_camera/src/linux.rs | frostsnapp/desktop_camera/src/linux.rs | use crate::common::{
CameraError, CameraSink, CandidateFormat, DeviceInfo, Frame, FrameFormat, Resolution, Result,
};
use std::thread::{self, JoinHandle};
use v4l::Device;
use v4l::context::enum_devices;
use v4l::io::traits::CaptureStream as V4lCaptureStream;
use v4l::prelude::MmapStream;
use v4l::video::Capture;
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/desktop_camera/src/decode.rs | frostsnapp/desktop_camera/src/decode.rs | use crate::common::{CameraError, FrameFormat, Result};
pub fn raw_to_jpeg(data: &[u8], format: FrameFormat, width: u32, height: u32) -> Result<Vec<u8>> {
match format {
FrameFormat::MJPEG => Ok(data.to_vec()),
FrameFormat::YUYV422 => {
let rgb = yuyv_to_rgb(data, width, height);
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/desktop_camera/src/windows.rs | frostsnapp/desktop_camera/src/windows.rs | use crate::common::{
CameraError, CameraSink, CandidateFormat, DeviceInfo, Frame, FrameFormat, Resolution, Result,
};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::{Arc, LazyLock};
use std::thread::{self, JoinHandle};
use windows::Win32::Media::MediaFoundation::*;
use windows::Win32::Sy... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/desktop_camera/src/common.rs | frostsnapp/desktop_camera/src/common.rs | use std::fmt;
/// Preferred pixel count for MJPEG (hardware decoded, can handle higher res)
pub const MJPEG_PREFERRED_PIXELS: u32 = 1920 * 1080;
/// Preferred pixel count for raw formats like NV12/YUYV (CPU decoded, prefer lower res)
pub const RAW_PREFERRED_PIXELS: u32 = 1280 * 720;
#[derive(Debug, Clone, PartialEq,... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/build.rs | frostsnapp/rust/build.rs | use std::env;
use std::fs;
use std::path::Path;
fn main() {
println!("cargo::rustc-check-cfg=cfg(bundle_firmware)");
if env::var("BUNDLE_FIRMWARE").is_ok() {
println!("cargo:rustc-cfg=bundle_firmware");
let source_path =
Path::new("../../target/riscv32imc-unknown-none-elf/release/f... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/lib.rs | frostsnapp/rust/src/lib.rs | pub mod api;
mod coordinator;
mod device_list;
#[allow(clippy::all)]
mod frb_generated;
pub mod logger;
pub mod sink_wrap;
pub use bitcoin::Network;
use frostsnap_coordinator::FirmwareBin;
pub use frostsnap_core::device::KeyPurpose;
use frostsnap_core::SymmetricKey;
#[cfg(not(bundle_firmware))]
pub const FIRMWARE: Op... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/logger.rs | frostsnapp/rust/src/logger.rs | use std::{io, sync::RwLock};
use crate::frb_generated::StreamSink;
use lazy_static::lazy_static;
use time::{
format_description::well_known::{iso8601::Config, Iso8601},
OffsetDateTime,
};
use tracing_subscriber::registry::LookupSpan;
lazy_static! {
static ref LOG_SINK: RwLock<Option<StreamSink<String>>> =... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/device_list.rs | frostsnapp/rust/src/device_list.rs | #![allow(unused)]
use crate::api::device_list as api;
use frostsnap_coordinator::{frostsnap_core::DeviceId, DeviceChange};
use std::collections::{HashMap, HashSet};
#[derive(Debug, Clone, Default)]
pub struct DeviceList {
devices: Vec<DeviceId>,
connected: HashMap<DeviceId, api::ConnectedDevice>,
state_cou... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/coordinator.rs | frostsnapp/rust/src/coordinator.rs | #![allow(unused)]
use crate::api;
use crate::api::backup_run::{BackupDevice, BackupRun};
use crate::api::coordinator::KeyState;
use crate::api::device_list::DeviceListUpdate;
use crate::device_list::DeviceList;
use crate::frb_generated::StreamSink;
use anyhow::{anyhow, Result};
use frostsnap_coordinator::backup_run::Ba... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | true |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/sink_wrap.rs | frostsnapp/rust/src/sink_wrap.rs | use crate::{
api::{coordinator::KeyState, device_list::DeviceListUpdate},
frb_generated::StreamSink,
};
use frostsnap_coordinator::{
// bitcoin::chain_sync::ChainStatus,
bitcoin::chain_sync::ChainStatus,
firmware_upgrade::FirmwareUpgradeConfirmState,
keygen::KeyGenState,
nonce_replenish::Non... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/bitcoin.rs | frostsnapp/rust/src/api/bitcoin.rs | pub use bitcoin::Transaction as RTransaction;
pub use bitcoin::{
psbt::Error as PsbtError, Address, Network as BitcoinNetwork, OutPoint, Psbt, ScriptBuf, TxOut,
Txid,
};
use flutter_rust_bridge::frb; // or, for example, easy_ext's;
use frostsnap_coordinator::bitcoin::chain_sync::{
default_backup_electrum_se... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/settings.rs | frostsnapp/rust/src/api/settings.rs | use anyhow::{anyhow, Result};
use bitcoin::constants::genesis_block;
use bitcoin::Network as BitcoinNetwork;
use flutter_rust_bridge::frb;
use frostsnap_coordinator::bitcoin::chain_sync::{ChainClient, SUPPORTED_NETWORKS};
pub use frostsnap_coordinator::bitcoin::chain_sync::{
ChainStatus, ChainStatusState, Connectio... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/keygen.rs | frostsnapp/rust/src/api/keygen.rs | use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
use anyhow::Result;
use bitcoin::Network as BitcoinNetwork;
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::keygen::KeyGenState;
use frostsnap_core::{
device::KeyPurpose, AccessStructureRef, DeviceId, KeygenId, SessionHash, SymmetricKey,
};
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/broadcast.rs | frostsnapp/rust/src/api/broadcast.rs | use std::{
collections::BTreeMap,
sync::{
atomic::{AtomicBool, AtomicU32},
Arc, RwLock,
},
};
use flutter_rust_bridge::frb;
use tracing::Level;
use crate::frb_generated::{SseEncode, StreamSink};
/// A broadcast stream that can be managed from rust.
#[derive(Default, Clone)]
pub struct Bro... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/log.rs | frostsnapp/rust/src/api/log.rs | use flutter_rust_bridge::frb;
use tracing::{event, Level};
#[frb(sync)]
pub fn log(level: LogLevel, message: String) {
match level {
LogLevel::Debug => event!(Level::DEBUG, "[dart] {}", message),
LogLevel::Info => event!(Level::INFO, "[dart] {}", message),
LogLevel::Error => event!(Level::E... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/nonce_replenish.rs | frostsnapp/rust/src/api/nonce_replenish.rs | use std::collections::HashSet;
use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
use anyhow::Result;
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::nonce_replenish::NonceReplenishState;
use frostsnap_core::{coordinator::NonceReplenishRequest, DeviceId};
#[frb(mirror(NonceReplenishState), unig... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/device_list.rs | frostsnapp/rust/src/api/device_list.rs | pub use crate::api::firmware::{FirmwareUpgradeEligibility, FirmwareVersion};
use anyhow::Result;
use flutter_rust_bridge::frb;
use frostsnap_coordinator::DeviceMode;
use frostsnap_core::DeviceId;
use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
#[derive(Clone, Debug)]
pub enum DeviceListChangeKind {
A... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/port.rs | frostsnapp/rust/src/api/port.rs | use crate::frb_generated::StreamSink;
use anyhow::{anyhow, Result};
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::PortDesc;
use frostsnap_coordinator::{PortOpenError, Serial, SerialPort};
pub use std::sync::mpsc::SyncSender;
pub use std::sync::{Arc, Mutex, RwLock};
use tracing::{event, Level};
#[frb(mir... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/psbt_manager.rs | frostsnapp/rust/src/api/psbt_manager.rs | use bitcoin::{Psbt, Txid};
use flutter_rust_bridge::frb;
use frostsnap_coordinator::{
bitcoin::psbt::{LoadSignSessionPsbtParams, SignSessionPsbt},
persist::Persisted,
};
use frostsnap_core::SignSessionId;
use std::sync::{Arc, Mutex};
#[frb(opaque)]
pub struct PsbtManager {
db: Arc<Mutex<rusqlite::Connectio... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/mod.rs | frostsnapp/rust/src/api/mod.rs | pub mod backup_run;
pub mod bitcoin;
pub mod broadcast;
pub mod camera;
pub mod coordinator;
pub mod device_list;
pub mod firmware;
pub mod init;
pub mod keygen;
pub mod log;
pub mod name;
pub mod nonce_replenish;
pub mod port;
pub mod psbt_manager;
pub mod qr;
pub mod recovery;
pub mod settings;
pub mod signing;
pub m... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/init.rs | frostsnapp/rust/src/api/init.rs | use super::{
coordinator::Coordinator, log::LogLevel, psbt_manager::PsbtManager, settings::Settings,
};
use crate::{
coordinator::FfiCoordinator,
frb_generated::{RustAutoOpaque, StreamSink},
};
use anyhow::{Context as _, Result};
use frostsnap_coordinator::{DesktopSerial, UsbSerialManager, ValidatedFirmware... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/camera.rs | frostsnapp/rust/src/api/camera.rs | use crate::frb_generated::StreamSink;
use anyhow::{anyhow, Result};
use tracing::info;
#[cfg(any(target_os = "linux", target_os = "windows"))]
use frostsnap_desktop_camera::Camera;
#[derive(Clone, Debug)]
pub struct CameraDevice {
pub index: u32,
pub name: String,
pub width: u32,
pub height: u32,
}
#... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/signing.rs | frostsnapp/rust/src/api/signing.rs | use super::super_wallet::SuperWallet;
use super::{
bitcoin::{BitcoinNetwork, RTransaction, Transaction},
coordinator::Coordinator,
};
use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
use anyhow::{anyhow, Result};
use bitcoin::hex::DisplayHex;
use bitcoin::ScriptBuf;
use flutter_rust_bridge::frb;
pub... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/name.rs | frostsnapp/rust/src/api/name.rs | use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::frostsnap_comms::DeviceName;
#[frb(sync, type_64bit_int)]
pub fn key_name_max_length() -> usize {
frostsnap_coordinator::frostsnap_comms::KEY_NAME_MAX_LENGTH
}
#[frb(external)]
impl DeviceName {
#[frb(sync)]
pub fn to_string(&self) -> String {}
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/super_wallet.rs | frostsnapp/rust/src/api/super_wallet.rs | use super::bitcoin::BitcoinNetworkExt as _;
use super::coordinator::Coordinator;
use super::transaction::BuildTxState;
use super::{bitcoin::Transaction, signing::UnsignedTx};
use crate::api::broadcast::Broadcast;
use crate::frb_generated::{RustAutoOpaque, StreamSink};
use crate::sink_wrap::SinkWrap;
use anyhow::{Contex... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/qr.rs | frostsnapp/rust/src/api/qr.rs | use crate::api::camera::Frame;
use anyhow::{anyhow, Result};
use flutter_rust_bridge::frb;
use tracing::{event, Level};
pub struct PsbtQrDecoder {
decoder: ur::Decoder,
decoding_progress: DecodingProgress,
}
impl PsbtQrDecoder {
#[frb(sync)]
pub fn new() -> Self {
Self {
decoder: D... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/backup_run.rs | frostsnapp/rust/src/api/backup_run.rs | use anyhow::Result;
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::display_backup::DisplayBackupState;
use frostsnap_core::{AccessStructureRef, DeviceId, KeyId, SymmetricKey};
use tracing::{event, Level};
use crate::frb_generated::StreamSink;
use crate::sink_wrap::SinkWrap;
#[frb(mirror(DisplayBackupSta... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/recovery.rs | frostsnapp/rust/src/api/recovery.rs | pub use crate::api::KeyPurpose;
use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
use anyhow::Result;
use bitcoin::Network as BitcoinNetwork;
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::enter_physical_backup::EnterPhysicalBackupState;
pub use frostsnap_coordinator::wait_for_single_device::Wa... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/firmware.rs | frostsnapp/rust/src/api/firmware.rs | use super::coordinator::Coordinator;
use crate::{frb_generated::StreamSink, sink_wrap::SinkWrap};
use anyhow::Result;
use flutter_rust_bridge::frb;
pub use frostsnap_coordinator::firmware::*;
pub use frostsnap_coordinator::firmware_upgrade::FirmwareUpgradeConfirmState;
pub use frostsnap_coordinator::frostsnap_comms::Sh... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/coordinator.rs | frostsnapp/rust/src/api/coordinator.rs | pub use crate::api::KeyPurpose;
use crate::sink_wrap::SinkWrap;
use anyhow::Result;
use bitcoin::Network as BitcoinNetwork;
use flutter_rust_bridge::frb;
pub use frostsnap_core::coordinator::restoration::RestorationState;
pub use frostsnap_core::coordinator::CoordAccessStructure as AccessStructure;
use frostsnap_core::... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnapp/rust/src/api/transaction.rs | frostsnapp/rust/src/api/transaction.rs | use std::collections::HashSet;
use std::sync::atomic::AtomicBool;
use std::sync::{Arc, RwLock};
use bitcoin::Address;
use flutter_rust_bridge::frb;
use frostsnap_core::{AccessStructureId, DeviceId, MasterAppkey};
use crate::api::bitcoin::BitcoinNetworkExt;
use crate::api::broadcast::{Broadcast, UnitBroadcastSubscript... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/cst816s/src/lib.rs | cst816s/src/lib.rs | #![no_std]
use core::fmt::Debug;
use embedded_hal as hal;
use hal::delay::DelayNs;
/// Errors in this crate
#[derive(Debug)]
pub enum Error<CommE, PinE> {
Comm(CommE),
Pin(PinE),
GenericError,
}
pub struct CST816S<I2C, PINT, RST> {
i2c: I2C,
pin_int: PINT,
pin_rst: RST,
blob_buf: [u8; BLO... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin.rs | frostsnap_coordinator/src/bitcoin.rs | pub mod chain_sync;
mod handler_state;
pub mod outgoing;
pub mod psbt;
pub mod status_tracker;
pub mod tofu;
pub mod wallet;
mod wallet_persist;
pub use wallet::PsbtValidationError;
use bdk_chain::{
bitcoin::{
self,
bip32::{ChildNumber, DerivationPath},
ScriptBuf,
},
miniscript::{
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/settings.rs | frostsnap_coordinator/src/settings.rs | use crate::{
bitcoin::chain_sync::{default_backup_electrum_server, default_electrum_server},
persist::Persist,
};
use bdk_chain::{bitcoin, rusqlite_impl::migrate_schema};
use core::str::FromStr;
use rusqlite::params;
use std::collections::BTreeMap;
use tracing::{event, Level};
#[derive(Debug, Clone, Copy, Part... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/persist.rs | frostsnap_coordinator/src/persist.rs | use std::{io::BufReader, ops::Deref, str::FromStr};
use anyhow::Result;
use bdk_chain::bitcoin::{
consensus::{Decodable, Encodable},
Txid,
};
use rusqlite::{
types::{FromSql, FromSqlError, ToSqlOutput},
ToSql,
};
pub struct Persisted<T>(T);
impl<T> Persisted<T> {
pub fn mutate<C, R, U>(
&... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/lib.rs | frostsnap_coordinator/src/lib.rs | pub mod backup_run;
pub mod display_backup;
pub mod enter_physical_backup;
pub mod firmware;
pub mod firmware_upgrade;
pub mod keygen;
pub mod nonce_replenish;
mod serial_port;
pub mod signing;
mod ui_protocol;
mod usb_serial_manager;
pub mod verify_address;
pub mod wait_for_single_device;
mod wait_for_to_user_message;... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/keygen.rs | frostsnap_coordinator/src/keygen.rs | use std::collections::BTreeSet;
use crate::{Completion, Sink, UiProtocol};
use frostsnap_comms::CoordinatorSendMessage;
use frostsnap_core::{
coordinator::{
BeginKeygen, CoordinatorToUserKeyGenMessage, CoordinatorToUserMessage, FrostCoordinator,
},
AccessStructureRef, DeviceId, KeygenId, SessionHas... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/usb_serial_manager.rs | frostsnap_coordinator/src/usb_serial_manager.rs | // USB CDC vid and pid
const USB_VID: u16 = 12346;
const USB_PID: u16 = 4097;
use crate::firmware::ValidatedFirmwareBin;
use crate::PortOpenError;
use crate::{FramedSerialPort, Serial};
use anyhow::anyhow;
use frostsnap_comms::genuine_certificate::CertificateVerifier;
use frostsnap_comms::DeviceName;
use frostsnap_com... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | true |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/wait_for_to_user_message.rs | frostsnap_coordinator/src/wait_for_to_user_message.rs | use std::{collections::BTreeSet, sync};
use frostsnap_core::{coordinator::CoordinatorToUserMessage, DeviceId};
use crate::UiProtocol;
pub struct WaitForToUserMessage<F> {
callback: F,
cancel_on_disconnected: BTreeSet<DeviceId>,
finished: Option<bool>,
sender: Option<sync::mpsc::SyncSender<bool>>,
}
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/wait_for_single_device.rs | frostsnap_coordinator/src/wait_for_single_device.rs | use frostsnap_comms::{CoordinatorSendBody, CoordinatorSendMessage};
use frostsnap_core::{
coordinator::{
restoration::{self, RecoverShare},
CoordinatorToUserMessage,
},
message::{CoordinatorRestoration, CoordinatorToDeviceMessage},
DeviceId,
};
use std::collections::HashSet;
use std::tim... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/ui_protocol.rs | frostsnap_coordinator/src/ui_protocol.rs | use frostsnap_comms::CoordinatorSendMessage;
use frostsnap_core::{coordinator::CoordinatorToUserMessage, DeviceId, Gist as _};
use std::any::Any;
use tracing::{event, Level};
/// A UiProtocol is a layer between the protocol the devices and the coordinator are executing e.g.
/// keygen, signing etc and the actual UI. A... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/nonce_replenish.rs | frostsnap_coordinator/src/nonce_replenish.rs | use crate::{Completion, Sink, UiProtocol};
use frostsnap_comms::{CoordinatorSendBody, CoordinatorSendMessage, Destination};
use frostsnap_core::{
coordinator::{CoordinatorToUserMessage, NonceReplenishRequest},
message::signing::OpenNonceStreams,
DeviceId,
};
use std::collections::{BTreeSet, HashMap, HashSe... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/verify_address.rs | frostsnap_coordinator/src/verify_address.rs | use std::{
borrow::BorrowMut,
collections::{BTreeSet, HashSet},
};
use frostsnap_comms::{CoordinatorSendBody, CoordinatorSendMessage, Destination};
use frostsnap_core::{
coordinator::VerifyAddress, message::CoordinatorToDeviceMessage, DeviceId, MasterAppkey,
};
use crate::{Completion, DeviceMode, Sink, Ui... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/cdc_acm_usb.rs | frostsnap_coordinator/src/cdc_acm_usb.rs | use anyhow::{anyhow, Result};
use nusb::{
descriptors::TransferType,
io::{EndpointRead, EndpointWrite},
transfer::{Bulk, ControlOut, ControlType, Direction, In, Out, Recipient},
Device, Interface, MaybeFuture,
};
use std::cell::RefCell;
use std::io;
use std::os::fd::OwnedFd;
use std::time::Duration;
use... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/firmware_upgrade.rs | frostsnap_coordinator/src/firmware_upgrade.rs | use crate::{
Completion, FirmwareUpgradeEligibility, FirmwareVersion, Sink, UiProtocol, ValidatedFirmwareBin,
};
use frostsnap_comms::{
CommsMisc, CoordinatorSendBody, CoordinatorSendMessage, CoordinatorUpgradeMessage,
};
use frostsnap_core::DeviceId;
use std::collections::{BTreeSet, HashMap};
pub struct Firm... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/signing.rs | frostsnap_coordinator/src/signing.rs | use frostsnap_comms::CoordinatorSendMessage;
use frostsnap_core::{
coordinator::{
ActiveSignSession, CoordinatorSend, CoordinatorToUserMessage,
CoordinatorToUserSigningMessage, RequestDeviceSign,
},
message::EncodedSignature,
DeviceId, KeyId, SignSessionId,
};
use std::collections::BTree... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/serial_port.rs | frostsnap_coordinator/src/serial_port.rs | use frostsnap_comms::{
DeviceSupportedFeatures, Direction, Downstream, MagicBytes, ReceiveSerial, BINCODE_CONFIG,
};
pub use serialport;
use std::collections::VecDeque;
use std::io::{BufRead, BufReader, Read};
use std::marker::PhantomData;
use tracing::{event, Level};
pub type SerialPort = Box<dyn serialport::Seri... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/enter_physical_backup.rs | frostsnap_coordinator/src/enter_physical_backup.rs | use frostsnap_comms::{CoordinatorSendBody, CoordinatorSendMessage};
use frostsnap_core::{
coordinator::{restoration, CoordinatorToUserMessage},
message::{CoordinatorRestoration, CoordinatorToDeviceMessage},
DeviceId, EnterPhysicalId,
};
use crate::{DeviceMode, Sink, UiProtocol};
pub struct EnterPhysicalBa... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/backup_run.rs | frostsnap_coordinator/src/backup_run.rs | use crate::persist::{Persist, ToStringWrapper};
use bdk_chain::rusqlite_impl::migrate_schema;
use frostsnap_core::{AccessStructureId, AccessStructureRef, Gist, KeyId};
use rusqlite::params;
use std::collections::BTreeMap;
use tracing::{event, Level};
#[derive(Default, Debug)]
pub struct BackupState {
// Maps each ... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/display_backup.rs | frostsnap_coordinator/src/display_backup.rs | use crate::{Completion, DeviceMode, Sink, UiProtocol};
use frostsnap_comms::{CommsMisc, CoordinatorSendMessage};
use frostsnap_core::{coordinator::FrostCoordinator, AccessStructureRef, DeviceId, SymmetricKey};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct DisplayBackupState {
pub confirmed: bool,
pub... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/firmware.rs | frostsnap_coordinator/src/firmware.rs | use bincode::{Decode, Encode};
use frostsnap_comms::{Sha256Digest, FIRMWARE_UPGRADE_CHUNK_LEN};
#[derive(Encode, Decode, Debug, Clone, Copy, Default, PartialEq, Eq)]
pub struct FirmwareFeatures {
/// Device supports firmware digest verification without signature block
pub upgrade_digest_no_sig: bool,
}
impl F... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/frostsnap_persist.rs | frostsnap_coordinator/src/frostsnap_persist.rs | use crate::{
frostsnap_core::{
self,
coordinator::{ActiveSignSession, FrostCoordinator},
},
persist::{BincodeWrapper, Persist, TakeStaged},
};
use anyhow::Context;
use bdk_chain::rusqlite_impl::migrate_schema;
use frostsnap_core::{
coordinator::{self, restoration::RestorationMutation},
... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin/wallet_persist.rs | frostsnap_coordinator/src/bitcoin/wallet_persist.rs | use std::collections::btree_map;
use super::wallet::{WalletIndexedTxGraph, WalletIndexedTxGraphChangeSet};
use crate::persist::Persist;
use anyhow::Result;
use bdk_chain::{
bitcoin::BlockHash,
local_chain::{self, LocalChain},
ConfirmationBlockTime,
};
impl Persist<rusqlite::Connection> for WalletIndexedTx... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin/chain_sync.rs | frostsnap_coordinator/src/bitcoin/chain_sync.rs | //! We keep chain at arms length from the rest of the code by only communicating through mpsc channels.
use anyhow::{anyhow, Result};
pub use bdk_chain::spk_client::SyncRequest;
use bdk_chain::{
bitcoin::{self, BlockHash},
spk_client::{self},
CheckPoint, ConfirmationBlockTime,
};
use bdk_electrum_streaming:... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin/handler_state.rs | frostsnap_coordinator/src/bitcoin/handler_state.rs | use bdk_chain::bitcoin::BlockHash;
use std::{
sync::{self, Arc},
time::Duration,
};
use crate::persist::Persisted;
use crate::settings::ElectrumEnabled;
use super::{
chain_sync::{ChainStatus, ChainStatusState, ConnectionResult, Message},
status_tracker::StatusTracker,
tofu::{connection::Conn, trus... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin/psbt.rs | frostsnap_coordinator/src/bitcoin/psbt.rs | use bdk_chain::{
bitcoin::{Psbt, Txid},
rusqlite_impl::migrate_schema,
};
use frostsnap_core::SignSessionId;
use rusqlite::{named_params, CachedStatement, ToSql};
use crate::persist::{Persist, SqlPsbt, SqlSignSessionId, SqlTxid};
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum LoadSignSessionP... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
frostsnap/frostsnap | https://github.com/frostsnap/frostsnap/blob/961deb080a81c754f402aaea24286bd141178e9d/frostsnap_coordinator/src/bitcoin/status_tracker.rs | frostsnap_coordinator/src/bitcoin/status_tracker.rs | use super::chain_sync::{ChainStatus, ChainStatusState};
use crate::settings::ElectrumEnabled;
use crate::Sink;
/// Manages chain status tracking and updates - single source of truth
pub struct StatusTracker {
current: ChainStatus,
enabled: ElectrumEnabled,
sink: Box<dyn Sink<ChainStatus>>,
}
impl StatusTr... | rust | MIT | 961deb080a81c754f402aaea24286bd141178e9d | 2026-01-04T20:21:09.467677Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.