mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Acknowledge Substrate's ordering and move to a multi-key wallet setup
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
use crate::{Coin, coins::monero::Monero};
|
||||
use std::rc::Rc;
|
||||
|
||||
use rand::rngs::OsRng;
|
||||
|
||||
use crate::{Coin, coins::monero::Monero, wallet::{WalletKeys, Wallet}};
|
||||
|
||||
#[tokio::test]
|
||||
async fn test() {
|
||||
println!("{}", Monero::new("http://127.0.0.1:18081".to_string()).get_height().await.unwrap());
|
||||
let monero = Monero::new("http://127.0.0.1:18081".to_string());
|
||||
println!("{}", monero.get_height().await.unwrap());
|
||||
let mut keys = frost::tests::key_gen::<_, <Monero as Coin>::Curve>(&mut OsRng);
|
||||
let mut wallet = Wallet::new(monero);
|
||||
wallet.acknowledge_height(0, 0);
|
||||
wallet.add_keys(&WalletKeys::new(Rc::try_unwrap(keys.remove(&1).take().unwrap()).unwrap(), 0));
|
||||
dbg!(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user