-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
@@ -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` |
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.
@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|
.
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.
muahaha
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.
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.
* fix doc for AuthenticationKey * Update types/src/transaction/authenticator.rs Co-authored-by: David Wolinsky <isaac.wolinsky@gmail.com>
This change is