Conversation
|
|
||
| ## What is an account | ||
|
|
||
| An account is a container for a user's balances and a way to authorize transactions. |
There was a problem hiding this comment.
An account is a container for a user's balances
this statement technically isn't correct.. although, conceptually probably not bad to think about it this way. accounts really only have this saved:
type BaseAccount struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
PubKey *anypb.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
}x/bank is the one that stores balances, it does so by mapping address-denom -> balance
if it's not meant to be technically accurate, its likely fine. but just thought i'd flag.
|
|
||
| An address is not the same thing as a public key. The address is derived from the public key, but it does not reveal the public key directly. | ||
|
|
||
| When an account receives tokens for the first time, only the address is needed. The chain can credit balances to that address without knowing the public key. |
There was a problem hiding this comment.
for the first time
seems to imply that this is not the case after the first time 🤔
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intro pages to accounts and txs, msgs, and queries. These are part of the new intro section.
These need further revision and working before merging