Skip to content

Commit 0f1d89b

Browse files
committed
feat(docs): move docs to accounts section
1 parent 69cb74c commit 0f1d89b

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

Diff for: docs/learn/advanced/18-module-account.md

-19
This file was deleted.

Diff for: docs/learn/beginner/03-accounts.md

+17
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,23 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.52.0-beta.2/codec/address/bech32_co
9595
| Validator Operator | cosmosvaloper |
9696
| Consensus Nodes | cosmosvalcons |
9797

98+
99+
### Module Accounts
100+
101+
#### Address Generation
102+
103+
Module account addresses are generated deterministically from the module name, as defined in [ADR-028](../../architecture/adr-028-public-key-addresses.md)
104+
105+
Definition of account permissions is done during the app initialization.
106+
107+
```go reference
108+
https://github.com/cosmos/cosmos-sdk/blob/3a03804c148d0da8d6df1ad839b08c50f6896fa1/simapp/app.go#L130-L141
109+
```
110+
111+
```go reference
112+
https://github.com/cosmos/cosmos-sdk/blob/3a03804c148d0da8d6df1ad839b08c50f6896fa1/simapp/app.go#L328
113+
```
114+
98115
### Public Keys
99116

100117
Public keys in Cosmos SDK are defined by `cryptotypes.PubKey` interface. Since public keys are saved in a store, the `cryptotypes.PubKey` extends the `proto.Message` interface:

0 commit comments

Comments
 (0)