A simple paper wallet generator for Dero HE in wasm
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
415B

  1. import './wasm_exec.js'
  2. import { readFileSync } from 'fs';
  3. const go = new Go();
  4. const mod = await WebAssembly.compile(readFileSync('./main.wasm'));
  5. const instance = await WebAssembly.instantiate(mod, go.importObject);
  6. go.run(instance)
  7. console.log(getLanguages())
  8. let testnet = false
  9. let mainnet = true
  10. console.log(generateDeroAddress(testnet, "English"))
  11. console.log(generateDeroAddress(mainnet, "Français"))