Skip to content

Instantly share code, notes, and snippets.

@justinmoon
Created March 7, 2020 23:18
Show Gist options
  • Select an option

  • Save justinmoon/930d7839862a058dfa1aa4a8a2e811c3 to your computer and use it in GitHub Desktop.

Select an option

Save justinmoon/930d7839862a058dfa1aa4a8a2e811c3 to your computer and use it in GitHub Desktop.
const spawnCkcc = require('./src/utils/ckcc.js')
const spawnHwi = require('./src/utils/hwi.js')
spawnHwi(['--fingerprint=f25d9737', 'getxpub', "m/0"])
.then(r => console.log('hwi success', r))
.catch(e => console.log('hwi error', e))
spawnCkcc(['xpub', "m/0"])
.then(r => console.log('ckcc success', r))
.catch(e => console.log('ckcc error', e))
spawnHwi(['--fingerprint=f25d9737', 'getxpub', "m/0"])
.then(r => console.log('hwi success', r))
.catch(e => console.log('hwi error', e))
spawnCkcc(['xpub', "m/0"])
.then(r => console.log('ckcc success', r))
.catch(e => console.log('ckcc error', e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment