@@ -29,8 +29,9 @@ pub struct Bank<C: sov_modules_api::Context> {
29
29
}
30
30
```
31
31
32
- At first glance, this definition might seem a little bit intimidating because of the generic ` C ` . Don't worry, we'll explain that
33
- generic in detail later. For now, just notice that a module is a struct with an address and some ` #[state] ` fields specifying
32
+ At first glance, this definition might seem a little bit intimidating because of the generic ` C ` .
33
+ Don't worry, we'll explain that generic in detail later.
34
+ For now, just notice that a module is a struct with an address and some ` #[state] ` fields specifying
34
35
what kind of data this module has access to. Under the hood, the ` ModuleInfo ` derive macro will do some magic to ensure that
35
36
any ` #[state] ` fields get mapped onto unique storage keys so that only this particular module can read or write its state values.
36
37
@@ -175,7 +176,7 @@ pub trait Spec {
175
176
176
177
As you can see, a ` Spec ` for a rollup specifies the concrete types that will be used for many kinds of cryptographic operations.
177
178
That way, you can define your business logic in terms of _ abstract_ cryptography, and then instantiate it with cryptography which
178
- is efficient in your particular choice of zkvm .
179
+ is efficient in your particular choice of ZKVM .
179
180
180
181
In addition to the ` Spec ` trait, the Module System provides a simple ` Context ` trait which is defined like this:
181
182
@@ -191,7 +192,7 @@ pub trait Context: Spec + Clone + Debug + PartialEq {
191
192
Modules are expected to be generic over the ` Context ` type. This trait gives them a convenient handle to access all of the cryptographic operations
192
193
defined by a ` Spec ` , while also making it easy for the Module System to pass in authenticated transaction-specific information which
193
194
would not otherwise be available to a module. Currently, a ` Context ` is only required to contain the ` sender ` (signer) of the transaction,
194
- but this trait might be extended in future.
195
+ but this trait might be extended in the future.
195
196
196
197
Putting it all together, recall that the Bank struct is defined like this.
197
198
0 commit comments