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

Hare sig #795

Merged
merged 5 commits into from Apr 17, 2019
Merged

Hare sig #795

merged 5 commits into from Apr 17, 2019

Conversation

gavraz
Copy link
Contributor

@gavraz gavraz commented Apr 8, 2019

  • Added new signer verifier
  • Removed pub key from hare proto
  • Fully replaced hare sig with public extraction

cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
hare/algorithm.go Outdated Show resolved Hide resolved
hare/algorithm.go Outdated Show resolved Hide resolved
signing/verifier.go Outdated Show resolved Hide resolved
signing/verifier.go Outdated Show resolved Hide resolved
signing/verifier.go Outdated Show resolved Hide resolved
if len(buff) < 32 {
return nil, errors.New("buffer too small")
}
return &EdSigner{privKey: buff, pubKey: buff[:32]}, nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ask @barakshani if there is any way to validate that the private key matches the public key

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what is the context here, but if you hold the private key, you can always recompute the public key from it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sign and verify.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@barakshani 's solution is more elegant and efficient

signing/signer.go Show resolved Hide resolved
signing/signer.go Outdated Show resolved Hide resolved
signing/signer.go Outdated Show resolved Hide resolved
signing/verifier.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
cmd/node/node.go Show resolved Hide resolved
cmd/node/node.go Outdated Show resolved Hide resolved
hare/algorithm.go Outdated Show resolved Hide resolved
signing/signer.go Show resolved Hide resolved
@gavraz gavraz merged commit 6325434 into develop Apr 17, 2019
@y0sher y0sher deleted the hare_sig branch September 10, 2019 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants