Slatepack Workflow (#423)

* debugging tor sends

* use fixed yeast version of hyper-socks2

* send command working according to slatepack

* changes to handling proof address

* modifications of recieve command to work with slatepack and to attempt to return to sender via TOR

* finalize command tested

* attempting to add invoice processing

* fixes to tests, propagation of test mode where needed

* modify return values of api functions that can send as sync

* cleanup, testing and post_tx function

* revert changes to API, many test fixes

* deprecate http on the command-line warning
This commit is contained in:
Yeastplume
2020-06-03 08:39:23 +01:00
committed by GitHub
parent 4fe6bf1c23
commit 60ab3728ab
28 changed files with 1425 additions and 738 deletions
+6 -1
View File
@@ -75,7 +75,7 @@ impl OnionV3Address {
}
/// Return as onion v3 address string
fn to_ov3_str(&self) -> String {
pub fn to_ov3_str(&self) -> String {
// calculate checksum
let mut hasher = Sha3_256::new();
hasher.input(b".onion checksum");
@@ -91,6 +91,11 @@ impl OnionV3Address {
let ret = BASE32.encode(&address_bytes);
ret.to_lowercase()
}
/// return as http url
pub fn to_http_str(&self) -> String {
format!("http://{}.onion", self.to_ov3_str())
}
}
impl fmt::Display for OnionV3Address {