Skip to content

Commit 456f312

Browse files
committed
length
1 parent 96dfb2b commit 456f312

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/node-binance-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ export default class Binance {
664664
const APISECRET = this.Options.APISECRET || this.APISECRET;
665665
let signature = '';
666666
if (APISECRET.includes ('PRIVATE KEY')) {
667-
// if less than safe 150 length, then it can't be RSA key
668-
if (APISECRET.length < 150) {
667+
// if less than the below length, then it can't be RSA key
668+
if (APISECRET.length < 500) {
669669
const privateKey = new Uint8Array (this.unarmorKey (APISECRET).slice (16));
670670
const encodedQuery = new TextEncoder().encode(query);
671671
const signatureInit = ed25519.sign (encodedQuery, privateKey);

0 commit comments

Comments
 (0)