Change size of operatorId (#190)
Server was expecting 32 characters and the code was generating 64.
This commit is contained in:
parent
3c37898046
commit
57c029a821
1 changed files with 4 additions and 6 deletions
|
|
@ -30,8 +30,6 @@ function mapCoin (info, deviceId, cryptoCode) {
|
|||
const cashInRate = showRates ? _.invoke('cashIn.toNumber', rates) : null
|
||||
const cashOutRate = showRates ? _.invoke('cashOut.toNumber', rates) : null
|
||||
|
||||
|
||||
|
||||
return {
|
||||
cryptoCode,
|
||||
cashInFee,
|
||||
|
|
@ -155,5 +153,5 @@ function update (info) {
|
|||
}
|
||||
|
||||
function computeOperatorId (masterSeed) {
|
||||
return hkdf(masterSeed, 32, {salt: 'lamassu-server-salt', info: 'operator-id'}).toString('hex')
|
||||
return hkdf(masterSeed, 16, { salt: 'lamassu-server-salt', info: 'operator-id' }).toString('hex')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue