mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 23:34:19 +01:00
the std::Error is not needed
This commit is contained in:
@@ -10,8 +10,8 @@ rumqttd = "0.11.0"
|
|||||||
pretty_env_logger = "0.4.0"
|
pretty_env_logger = "0.4.0"
|
||||||
confy = "0.4.0"
|
confy = "0.4.0"
|
||||||
tokio = { version = "1.4.0", features = ["rt", "rt-multi-thread", "macros"] }
|
tokio = { version = "1.4.0", features = ["rt", "rt-multi-thread", "macros"] }
|
||||||
vls-protocol = { path = "../../validating-lightning-signer/vls-protocol" }
|
vls-protocol = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer" }
|
||||||
vls-proxy = { path = "../../validating-lightning-signer/vls-proxy" }
|
vls-proxy = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer" }
|
||||||
sphinx-key-parser = { path = "../parser" }
|
sphinx-key-parser = { path = "../parser" }
|
||||||
secp256k1 = { version = "0.20", features = ["rand-std", "bitcoin_hashes"] }
|
secp256k1 = { version = "0.20", features = ["rand-std", "bitcoin_hashes"] }
|
||||||
anyhow = {version = "1", features = ["backtrace"]}
|
anyhow = {version = "1", features = ["backtrace"]}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
vls-protocol = { path = "../../validating-lightning-signer/vls-protocol" }
|
vls-protocol = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer" }
|
||||||
serde = { version = "1.0", default-features = false }
|
serde = { version = "1.0", default-features = false }
|
||||||
serde_bolt = { version = "0.2", default-features = false }
|
serde_bolt = { version = "0.2", default-features = false }
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ pub fn request_from_msg<T: ser::Serialize + DeBolt>(
|
|||||||
) -> vls_protocol::Result<Vec<u8>> {
|
) -> vls_protocol::Result<Vec<u8>> {
|
||||||
let mut md = MsgDriver::new_empty();
|
let mut md = MsgDriver::new_empty();
|
||||||
msgs::write_serial_request_header(&mut md, sequence, dbid)?;
|
msgs::write_serial_request_header(&mut md, sequence, dbid)?;
|
||||||
msgs::write(&mut md, msg).expect("failed to serial write");
|
msgs::write(&mut md, msg)?;
|
||||||
Ok(md.bytes())
|
Ok(md.bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,8 +38,8 @@ pub fn raw_response_from_msg<T: ser::Serialize + DeBolt>(
|
|||||||
|
|
||||||
pub fn request_from_bytes<T: DeBolt>(msg: Vec<u8>) -> vls_protocol::Result<(T, u16, u64)> {
|
pub fn request_from_bytes<T: DeBolt>(msg: Vec<u8>) -> vls_protocol::Result<(T, u16, u64)> {
|
||||||
let mut m = MsgDriver::new(msg);
|
let mut m = MsgDriver::new(msg);
|
||||||
let (sequence, dbid) = msgs::read_serial_request_header(&mut m).expect("read ping header");
|
let (sequence, dbid) = msgs::read_serial_request_header(&mut m)?;
|
||||||
let reply: T = msgs::read_message(&mut m).expect("failed to read ping message");
|
let reply: T = msgs::read_message(&mut m)?;
|
||||||
Ok((reply, sequence, dbid))
|
Ok((reply, sequence, dbid))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sphinx-key-parser = { path = "../parser" }
|
sphinx-key-parser = { path = "../parser" }
|
||||||
vls-protocol-signer = { path = "../../validating-lightning-signer/vls-protocol-signer", default-features = false, features = ["secp-lowmemory", "vls-std"] }
|
vls-protocol-signer = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer", default-features = false, features = ["secp-lowmemory"] }
|
||||||
anyhow = {version = "1", features = ["backtrace"]}
|
anyhow = {version = "1", features = ["backtrace"]}
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
sphinx-key-signer = { path = "../signer" }
|
sphinx-key-signer = { path = "../signer" }
|
||||||
sphinx-key-parser = { path = "../parser" }
|
sphinx-key-parser = { path = "../parser" }
|
||||||
vls-protocol = { path = "../../validating-lightning-signer/vls-protocol" }
|
vls-protocol = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer" }
|
||||||
vls-protocol-signer = { path = "../../validating-lightning-signer/vls-protocol-signer", default-features = false, features = ["secp-lowmemory", "vls-std"] }
|
vls-protocol-signer = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer", default-features = false, features = ["secp-lowmemory"] }
|
||||||
anyhow = {version = "1", features = ["backtrace"]}
|
anyhow = {version = "1", features = ["backtrace"]}
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
rumqttc = "0.12.0"
|
rumqttc = "0.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user