fix: operator id fetching on scripts

This commit is contained in:
Rafael Taranto 2019-11-20 13:02:06 +00:00 committed by Josh Harvey
parent 07f4bdfb66
commit 0fd0d21599
3 changed files with 13 additions and 12 deletions

View file

@ -13,5 +13,5 @@ if (process.argv.length !== 4) {
process.exit(3)
}
const masterSeed = new Buffer(masterSeedHex, 'hex')
console.log(hkdf(masterSeed, 32, {salt: 'lamassu-server-salt', info: label}).toString('hex'))
const masterSeed = Buffer.from(masterSeedHex, 'hex')
console.log(hkdf(masterSeed, 32, { salt: 'lamassu-server-salt', info: label }).toString('hex'))