Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
offshiftXFT
offshift-commandline
Commits
8fc6490c
Commit
8fc6490c
authored
2 years ago
by
XFT
Browse files
Options
Download
Email Patches
Plain Diff
padding fix
parent
9f863721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
controllers/services.js
controllers/services.js
+1
-1
No files found.
controllers/services.js
View file @
8fc6490c
...
...
@@ -295,7 +295,7 @@ global.serviceController = {
nullifier
:
helpers
.
rbigint
(
31
)
}
const
saveNote
=
`0x
${
depositObject
.
nullifier
.
toString
(
16
,
'
hex
'
).
pad
End
(
62
,
'
0
'
)}${
depositObject
.
secret
.
toString
(
16
,
'
hex
'
).
pad
End
(
62
,
'
0
'
)}
`
;
const
saveNote
=
`0x
${
depositObject
.
nullifier
.
toString
(
16
,
'
hex
'
).
pad
Start
(
62
,
'
0
'
)}${
depositObject
.
secret
.
toString
(
16
,
'
hex
'
).
pad
Start
(
62
,
'
0
'
)}
`
;
const
preimage
=
Buffer
.
concat
([
depositObject
.
nullifier
.
leInt2Buff
(
31
),
depositObject
.
secret
.
leInt2Buff
(
31
)])
depositObject
.
commitment
=
helpers
.
pedersenHash
(
preimage
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment