Поправки багов

This commit is contained in:
Book Pauk
2021-02-10 20:18:41 +07:00
parent 37aa9b84ae
commit ca924148a5
5 changed files with 40 additions and 17 deletions

View File

@@ -13,6 +13,10 @@ export function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
export function toHex(buf) {
return Buffer.from(buf).toString('hex');
}
export function stringToHex(str) {
return Buffer.from(str).toString('hex');
}