stratum_apps/
tp_type.rs

1use crate::key_utils::Secp256k1PublicKey;
2use std::path::PathBuf;
3
4/// Which type of Template Provider will be used,
5/// along with the relevant config parameters for each.
6#[derive(Clone, Debug, serde::Deserialize)]
7pub enum TemplateProviderType {
8    Sv2Tp {
9        address: String,
10        public_key: Option<Secp256k1PublicKey>,
11    },
12    BitcoinCoreIpc {
13        unix_socket_path: PathBuf,
14        fee_threshold: u64,
15        min_interval: u8,
16    },
17}