chore: server code formatting

This commit is contained in:
Rafael Taranto 2025-05-12 15:35:00 +01:00
parent aedabcbdee
commit 68517170e2
234 changed files with 9824 additions and 6195 deletions

View file

@ -1,7 +1,7 @@
const bip39 = require('bip39')
const os = require('os')
function fromSeed (seed) {
function fromSeed(seed) {
const words = bip39.entropyToMnemonic(seed).split(' ')
let mnemonic = ''
@ -11,7 +11,7 @@ function fromSeed (seed) {
return mnemonic
}
function toEntropyBuffer (mnemonic) {
function toEntropyBuffer(mnemonic) {
const hex = bip39.mnemonicToEntropy(mnemonic.split('\n').join(' ').trim())
return Buffer.from(hex.trim(), 'hex')
}