dashhive / DashTx.js

Create TX hex for payments and such
MIT License
3 stars 0 forks source link

ref! only support `getPrivateKey()`, drop `keys` array #57

Closed coolaj86 closed 6 months ago

coolaj86 commented 6 months ago

In the simplest case, having a keys array rather than a getPrivateKey() method seems more convenient.

However, beyond any simple test case, trying to track the order of the keys array becomes obnoxious and error prone.

The goal for DashTx is not to be a n00b-friendly tx library (no such thing can exist), but it is to make developing wallets easy - and the getPrivateKey() function does much better at that.