Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signer: use genesis id as domain separator for protocol messages #3503

Closed
dshulyak opened this issue Aug 27, 2022 · 0 comments
Closed

signer: use genesis id as domain separator for protocol messages #3503

dshulyak opened this issue Aug 27, 2022 · 0 comments
Assignees

Comments

@dshulyak
Copy link
Contributor

dshulyak commented Aug 27, 2022

part of: spacemeshos/pm#135
depends on: #3505

https://github.com/spacemeshos/go-spacemesh/blob/develop/signing/signer.go

  • initialize EdSigner with GenesisID (preferably pass as an option to NewEdSigner/NewEdSignerFromBuffer/NewEDVerifier)
  • prefix message that is to be signed and verified with GenesisID
@evt evt assigned evt and unassigned evt Sep 1, 2022
@WilfredTA WilfredTA mentioned this issue Sep 12, 2022
19 tasks
bors bot pushed a commit that referenced this issue Sep 30, 2022
closes: #3503

- added option to prefix message before signing and verifying
- signing.ExtractPublicKey replaced ed25519.ExtractPublicKey, so that we can use prefixed verifier

more efficient version won't allocate new buffer when message is being prefixed, but that requires changes in spacemesh/ed25519 library
@bors bors bot closed this as completed in bef8c97 Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants