mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
26 lines
536 B
Rust
26 lines
536 B
Rust
use ciphersuite::group::GroupEncoding;
|
|
|
|
use serai_client::validator_sets::primitives::Session;
|
|
|
|
use serai_db::{Get, DbTxn, create_db, db_channel};
|
|
use primitives::EncodableG;
|
|
|
|
create_db! {
|
|
Processor {
|
|
ExternalKeyForSessionForSigners: <K: GroupEncoding>(session: Session) -> EncodableG<K>,
|
|
}
|
|
}
|
|
|
|
db_channel! {
|
|
Processor {
|
|
KeyToActivate: <K: GroupEncoding>() -> EncodableG<K>
|
|
}
|
|
}
|
|
|
|
create_db! {
|
|
BitcoinProcessor {
|
|
LatestBlockToYieldAsFinalized: () -> u64,
|
|
ScriptPubKey: (tx: [u8; 32], vout: u32) -> Vec<u8>,
|
|
}
|
|
}
|