Browse Source

ecdsa: clarify why typeForce call is disabled until 2.0.0

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
59143a9c85
  1. 3
      src/ecdsa.js

3
src/ecdsa.js

@ -12,9 +12,10 @@ var ONE = new Buffer([1])
function deterministicGenerateK(curve, hash, d, checkSig) {
typeForce('Buffer', hash)
typeForce('BigInteger', d)
// FIXME: remove/uncomment for 2.0.0
// typeForce('Function', checkSig)
// FIXME: remove in 2.0.0
if (typeof checkSig !== 'function') {
console.warn('deterministicGenerateK requires a checkSig callback in 2.0.0, see #337 for more information')

Loading…
Cancel
Save