question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add addressPrefix parameter, merging with progressCallback, scryptParams and network into options argument

See original GitHub issue

Thoughts @jprichardson ?

If we lost progressCallback, it would be a breaking change.

encrypt(buffer, compressed, passphrase[, options])
decrypt(encryptedKey, passhprase[, options])

Where options is

{
  progressCallback: () => {},
  addressPrefix: 0x00,
  N: 16384,
  r: 8,
  p: 8
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dalitsairiocommented, May 17, 2018

@youssefgh yes, this would solve your problem. If this feature were developed, you would just have to pass addressPrefix: 0x6F and you’d be fine for the testnet. I’d appreciate an options parameter a lot 💪

1reaction
jprichardsoncommented, Jun 18, 2017

These seems solid now that I think about it. What about moving compressed to options as well? This really simplifies things especially if we have sane defaults IMHO.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bip38 from bitcoinjs - GithubHelp
bip38 is a standard process to encrypt bitcoin and crypto currency private ... Add addressPrefix parameter, merging with progressCallback, scryptParams and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found