update release server with nevekonet library

This commit is contained in:
creating2morrow 2023-07-11 21:43:51 -04:00
parent 01405e3d6f
commit f82c92769a
6 changed files with 33 additions and 23 deletions

View file

@ -108,6 +108,13 @@ most of the complex logic stays in neveko-core, exported from [lib.rs](./neveko-
[the manual](./docs/man.md)
## Library
* hosting various hacking, networking, IT etc. related resources
* http://c2m66oddrzozztxyzjegbdwtgbeiibq5vz2tpchmqamrzcahcfoq.b32.i2p/library/Books
* have a request for a new book? send a message to nevekonet I2P inspIRC #random
* see `light-reading` for curated (< 1mb) in-browser reading over i2p
## Donations
This is just a hobby project but if anything here is useful donations are much appreciated!

View file

@ -22,6 +22,7 @@ http://c2m66oddrzozztxyzjegbdwtgbeiibq5vz2tpchmqamrzcahcfoq.b32.i2p
- /canary.txt
- /download/neveko-x86_64-linux-gnu-v0.4.8-alpha.tar.bz2 - latest neveko download
- /download/neveko-x86_64-linux-gnu-v0.4.8-alpha.tar.bz2.sig - detached sig
- /library - knowledge is power
# Monero remote node (stagenet)
http://xmr3kaacphwkk4z2gp35bdl47lrrnzimmyqj4oliauqrjzqecofa.b32.i2p
@ -32,9 +33,9 @@ NEVEKO Links (Clear)
git clone https://github.com/creating2morrow/neveko.git
-----BEGIN PGP SIGNATURE-----
iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZKxCVRwcY3JlYXRpbmdf
dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NMcAYA/0M4RExS4oWIWbPG7y4K
jtPK0MErKQV+jWQNujT/oyZEAQD6Lq2DLG3lRS4DycEfukH8U53WEVCPfAWDoHFW
8v3vDA==
=PrlK
iJIEARYKADoWIQQEoRcoLQbE3ctKJgFaPK5QG49jTAUCZK3bORwcY3JlYXRpbmdf
dG9tb3Jyb3dAcHJvdG9uLm1lAAoJEFo8rlAbj2NMc8EA/2VekgaXzCQ7nyTs1Ysl
7zDhyVUf2LcnDYub/l7Uj5DoAQDgk9pmuR/n4NXdFTMMBpvQFhaxGq5tpQFgL5ma
cw6KDw==
=VxhW
-----END PGP SIGNATURE-----

View file

@ -564,12 +564,12 @@ pub async fn send_export_info(orid: &String, contact: &String) {
}
/// Customer begins multisig orchestration by requesting the prepare info
///
///
/// from the mediator and the vendor. In response they create an encrypted
///
///
/// multisig message with the requested data. Cusomter manages multisig by
///
/// injecting
///
/// injecting
async fn trigger_msig_info_request(
contact: String,
jwp: String,
@ -594,14 +594,17 @@ async fn trigger_msig_info_request(
}
}
Err(e) => {
error!("failed to {} info for order due to: {:?}", &request.msig_type, e);
error!(
"failed to {} info for order due to: {:?}",
&request.msig_type, e
);
Ok(Default::default())
}
}
}
/// Deconstruction pass-through so that we can send the request from an async
///
///
/// channel in the neveko-gui module.
pub async fn d_trigger_msig_info(
contact: &String,

View file

@ -488,7 +488,8 @@ fn update_wallet_lock(filename: &String, closing: bool) -> bool {
}
}
// TODO(c2m): search the app and use this output to either bail (false) or continue (true)
// TODO(c2m): search the app and use this output to either bail (false) or
// continue (true)
/// Performs the xmr rpc 'open_wallet' method
pub async fn open_wallet(filename: &String, password: &String) -> bool {

View file

@ -368,8 +368,7 @@ pub async fn transmit_order_request(
}
pub async fn init_mediator_wallet(orid: &String) {
let password = std::env::var(crate::MONERO_WALLET_PASSWORD)
.unwrap_or(utils::empty_string());
let password = std::env::var(crate::MONERO_WALLET_PASSWORD).unwrap_or(utils::empty_string());
let m_wallet = monero::create_wallet(orid, &password).await;
if !m_wallet {
log::error!("failed to create mediator wallet");

View file

@ -63,7 +63,7 @@ pub struct MarketApp {
m_order: models::Order,
orders: Vec<models::Order>,
our_prepare_info_tx: Sender<String>,
our_prepare_info_rx: Receiver<String>,
our_prepare_info_rx: Receiver<String>,
product_from_vendor: models::Product,
product_image: egui_extras::RetainedImage,
products: Vec<models::Product>,
@ -347,7 +347,7 @@ impl eframe::App for MarketApp {
// get prepare multisig info from vendor and mediator
// call prepare multisig and save to db
send_prepare_info_req(
self.our_prepare_info_tx.clone(),
self.our_prepare_info_tx.clone(),
ctx.clone(),
self.vendor_status.jwp.clone(),
mediator,
@ -1270,17 +1270,16 @@ fn send_prepare_info_req(
mediator: String,
orid: &String,
vendor: String,
)
{
) {
let m_orid: String = String::from(orid);
let v_orid: String = String::from(orid);
tokio::spawn(async move {
let prepare_info = monero::prepare_wallet().await;
let ref_prepare_info: &String = &prepare_info.result.multisig_info;
utils::write_gui_db(
String::from(crate::GUI_MSIG_PREPARE_DB_KEY),
utils::empty_string(),
String::from(ref_prepare_info)
let ref_prepare_info: &String = &prepare_info.result.multisig_info;
utils::write_gui_db(
String::from(crate::GUI_MSIG_PREPARE_DB_KEY),
utils::empty_string(),
String::from(ref_prepare_info),
);
// Request mediator and vendor while we're at it
// Will coordinating send this on make requests next