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.
In the simplest case, having a
keys
array rather than agetPrivateKey()
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.