ecdsa: clarify why typeForce call is disabled until 2.0.0
This commit is contained in:
parent
6938c8f8cc
commit
59143a9c85
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue