Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RFCs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documents
RFCs
Commits
8a139ad0
Commit
8a139ad0
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[RFC17] fix: secret key conversion: must use crypto_box_seed_keypair
parent
44a1ef08
No related branches found
No related tags found
1 merge request
!13
Tx comment encrypt
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rfc/0017_transaction_comment_encryption.md
+4
-4
4 additions, 4 deletions
rfc/0017_transaction_comment_encryption.md
with
4 additions
and
4 deletions
rfc/0017_transaction_comment_encryption.md
+
4
−
4
View file @
8a139ad0
...
...
@@ -2,8 +2,8 @@
This RFC defines a format for encrypting transaction comments for the case of transactions involving a single issuer key and a single receiver key.
Let
`Si`
the ed
25519 secret key
of the issuer and
`Pi`
its associated ed25519 public key.
Let
`Sr`
the ed
25519 secret key
of the receiver and
`Pr`
its associated ed25519 public key.
Let
`Si`
the
se
ed of the issuer and
`Pi`
its associated ed25519 public key.
Let
`Sr`
the
se
ed of the receiver and
`Pr`
its associated ed25519 public key.
## Convert Ed25519 keys to x25519 keys
...
...
@@ -13,9 +13,9 @@ The first step is to convert the Ed25519 keys into x25519 keys (also called curv
Use the first 32 bytes of the extended secret key.
The extended secret key is derived from the seed by the NaCl function
`crypto_
sign_ed25519
_seed_keypair`
.
The extended secret key is derived from the seed by the NaCl function
`crypto_
box
_seed_keypair`
.
Let
`Si' = Si[..32]`
;
Let
`Si' =
crypto_box_seed_keypair(
Si
)
[..32]`
;
### Convert Ed25519 public key to x25519 public key
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment