mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
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:
+6
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user