mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-29 20:16:33 -05:00
Network check upon spot price request
This commit is contained in:
parent
02974811ad
commit
af60d3bb54
15 changed files with 245 additions and 76 deletions
|
|
@ -37,6 +37,17 @@ use serde::{Deserialize, Serialize};
|
|||
use sha2::Sha256;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[serde(remote = "Network")]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum network {
|
||||
#[serde(rename = "Mainnet")]
|
||||
Bitcoin,
|
||||
Testnet,
|
||||
Signet,
|
||||
Regtest,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
|
||||
pub struct SecretKey {
|
||||
inner: Scalar,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue