-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add coding guidelines #917
Conversation
Recognize pubkey as a noun meaning the public key of a keypair.
We'll avoid introducing three-letter terms to free up the namespace for three-letter acronyms. But recognize the term "sigverify", a verb, to verify a digital signature.
@@ -149,7 +149,7 @@ mod tests { | |||
} | |||
} | |||
|
|||
fn gen_n_pubkeys(seed: [u8; 32], n: i64) -> HashSet<PublicKey> { | |||
fn gen_n_pubkeys(seed: [u8; 32], n: i64) -> HashSet<Pubkey> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generate? We use gen_
a few ways, not all of our making. But we use generate_
too...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CriesofCarrots, I missed this comment. Yes, I can fix that up in a separate PR. I can also rename GenKeys to KeyGenerator while I'm in the neighborhood.
Bumps [rollup](https://github.com/rollup/rollup) from 2.34.0 to 2.34.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v2.34.0...v2.34.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add Rust coding guidelines and update the codebase to reflect those guidelines.
I've asked all active contributors to review these guidelines. If you don't agree, please speak up! This only works when everyone's on board!
Noteworthy changes:
keypair
andpubkey
as words.sig
as a word.Fixes #803