We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96dfb2b commit 456f312Copy full SHA for 456f312
1 file changed
src/node-binance-api.ts
@@ -664,8 +664,8 @@ export default class Binance {
664
const APISECRET = this.Options.APISECRET || this.APISECRET;
665
let signature = '';
666
if (APISECRET.includes ('PRIVATE KEY')) {
667
- // if less than safe 150 length, then it can't be RSA key
668
- if (APISECRET.length < 150) {
+ // if less than the below length, then it can't be RSA key
+ if (APISECRET.length < 500) {
669
const privateKey = new Uint8Array (this.unarmorKey (APISECRET).slice (16));
670
const encodedQuery = new TextEncoder().encode(query);
671
const signatureInit = ed25519.sign (encodedQuery, privateKey);
0 commit comments