Commit 8fc6490c authored by XFT's avatar XFT
Browse files

padding fix

parent 9f863721
......@@ -295,7 +295,7 @@ global.serviceController = {
nullifier: helpers.rbigint(31)
}
const saveNote = `0x${depositObject.nullifier.toString(16, 'hex').padEnd(62, '0')}${depositObject.secret.toString(16, 'hex').padEnd(62, '0')}`;
const saveNote = `0x${depositObject.nullifier.toString(16, 'hex').padStart(62, '0')}${depositObject.secret.toString(16, 'hex').padStart(62, '0')}`;
const preimage = Buffer.concat([depositObject.nullifier.leInt2Buff(31), depositObject.secret.leInt2Buff(31)])
depositObject.commitment = helpers.pedersenHash(preimage);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment