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

fix doc for AuthenticationKey #5415

Merged
merged 2 commits into from
Dec 3, 2022
Merged

fix doc for AuthenticationKey #5415

merged 2 commits into from
Dec 3, 2022

Conversation

zhiqiangxu
Copy link
Contributor

@zhiqiangxu zhiqiangxu commented Nov 2, 2022

This change is Reviewable

@@ -354,7 +354,7 @@ impl AccountAuthenticator {
}
}

/// A struct that represents an account authentication key. An account's address is the last 16
/// A struct that represents an account authentication key. An account's address is the last `AccountAddress::LENGTH`
Copy link
Contributor

@alinush alinush Nov 2, 2022

Choose a reason for hiding this comment

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

@davidiw, an account's address is set to be the authentication key used to create it, right? Because right now we assume |auth_key| == |addr|.

Copy link
Contributor

Choose a reason for hiding this comment

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

muahaha

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry I got distracted...

  • There's no derived address -- it is just the same as the authentication key
  • There's no prefix -- it is always []

We should clean up the documentation and the code. The AuthenticationKey is now just a way to derive an account address from a source of authentication (or something). I'd rather do a proper clean up rather than a single nit.

davidiw
davidiw previously approved these changes Nov 2, 2022
@davidiw davidiw dismissed their stale review November 2, 2022 22:05

give more feedback

@davidiw davidiw merged commit 4421fa4 into aptos-labs:main Dec 3, 2022
@Markuze Markuze mentioned this pull request Dec 5, 2022
areshand pushed a commit to areshand/aptos-core-1 that referenced this pull request Dec 18, 2022
* fix doc for AuthenticationKey

* Update types/src/transaction/authenticator.rs

Co-authored-by: David Wolinsky <isaac.wolinsky@gmail.com>
@Markuze Markuze mentioned this pull request Dec 26, 2022
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.

3 participants