ecdsa: clarify why typeForce call is disabled until 2.0.0

This commit is contained in:
Daniel Cousens 2015-01-09 09:10:16 +11:00
parent 6938c8f8cc
commit 59143a9c85

View file

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