Paper wallet for Hush, which you can use with no internet access while wearing a tinfoil hat inside of a Faraday cage. https://hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
509 B

mod utils;
use hushpaperlib::paper::{generate_wallet, double_sha256};
use wasm_bindgen::prelude::*;
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen]
pub fn get_wallet(zaddrs: u32, taddrs: u32, entropy: String) -> String {
let w = generate_wallet(false, false, zaddrs, taddrs, &double_sha256(entropy.as_bytes()));
return w;
}