You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/website/root/glossary.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,10 @@ Below is a comprehensive list of definitions for some common terms used in the M
10
10
11
11
A beacon represents a point of the blockchain for which a [Mithril certificate](#certificate) is created. It embeds the [epoch](#epoch) of the [Cardano network](#cardano-network) that is targeted, and either the block number or the [immutable file number](#immutable-file-number).
12
12
13
+
## Cardano database
14
+
15
+
A Cardano database snapshot is a signed archive of the blockchain state that can be used by [Mithril clients](#mithril-client) to restore a [Cardano full node](#cardano-node). It is uniquely identified by its fingerprint or digest which is part of the message signed by the [Mithril network](#mithril-network).
16
+
13
17
## Cardano network
14
18
15
19
The Cardano network is a proof-of-stake blockchain platform that supports the ada cryptocurrency.
@@ -88,10 +92,6 @@ The Mithril multi-signature is an aggregate of [individual signatures](#individu
88
92
89
93
> More information is available on the [protocol page](./mithril/advanced/mithril-protocol/protocol.md).
90
94
91
-
## Snapshot
92
-
93
-
A Mithril snapshot is a signed archive of the blockchain state that can be used by [Mithril clients](#mithril-client) to restore a [Cardano full node](#cardano-node). It is uniquely identified by its fingerprint or digest which is part of the message signed by the [Mithril network](#mithril-network).
94
-
95
95
## Stake distribution
96
96
97
97
The Cardano stake distribution is the list of all the [stake pool operators'](#stake-pool-operator-spo) pool Id addresses and their associated share of the total stake of the [Cardano network](#cardano-network).
r###"No proof could be computed for Cardano transactions with hashes "'{}'".
114
+
115
+
Mithril may not have signed those transactions yet, please try again later."###,
116
+
cardano_transaction_proof
117
+
.non_certified_transactions
118
+
.join(","),
119
+
);
120
+
}
121
+
122
+
Ok(())
123
+
}
124
+
```
125
+
126
+
:::info
127
+
128
+
An full example is available in the [Mithril repository](https://github.com/input-output-hk/mithril/tree/main/examples/client-cardano-transaction/src/main.rs). To run it, execute the following command:
129
+
130
+
```bash
131
+
cargo run -p client-cardano-transaction <TRANSACTIONS_HASHES>
132
+
```
133
+
134
+
or directly from the example crate directory:
135
+
136
+
```bash
137
+
cargo run
138
+
```
139
+
140
+
:::
141
+
142
+
### Cardano stake distribution
143
+
144
+
Here is a basic example of the code targetting the `release-preprod` network aggregator:
An full example is available in the [Mithril repository](https://github.com/input-output-hk/mithril/tree/main/examples/client-cardano-stake-distribution/src/main.rs). To run it, execute the following command:
183
+
184
+
```bash
185
+
cargo run -p client-cardano-stake-distribution
186
+
```
187
+
188
+
or directly from the example crate directory:
189
+
190
+
```bash
191
+
cargo run
192
+
```
193
+
194
+
:::
195
+
196
+
### Cardano database
197
+
198
+
Here is a basic example of the code targetting the `release-preprod` network aggregator:
Snapshot download and certificate chain validation can take quite some time, even with a fast computer and network. We have implemented a feedback mechanism for them; more details are available in the [feedback sub-module](https://mithril.network/rust-doc/mithril_client/feedback/index.html).
110
244
111
-
An example of implementation with the crate [indicatif](https://crates.io/crates/indicatif) is available in the [Mithril repository](https://github.com/input-output-hk/mithril/tree/main/examples/client-snapshot/src/main.rs). To run it, execute the following command:
245
+
An example of implementation with the crate [indicatif](https://crates.io/crates/indicatif) is available in the [Mithril repository](https://github.com/input-output-hk/mithril/tree/main/examples/client-cardano-database/src/main.rs). To run it, execute the following command:
112
246
113
247
```bash
114
-
cargo run -p client-snapshot
248
+
cargo run -p client-cardano-database
115
249
```
116
250
117
251
or directly from the example crate directory:
@@ -122,46 +256,122 @@ cargo run
122
256
123
257
:::
124
258
125
-
Here is a working example of the code using the configuration parameters of the `release-preprod` network:
259
+
### Cardano database v2
260
+
261
+
:::danger
262
+
263
+
This feature is still unstable.
264
+
265
+
To use it, you need to add the `unstable` feature in your project's `Cargo.toml` file.
266
+
267
+
```
268
+
mithril-client = { version = "0.11.X", features = ["fs", "unstable"] }
269
+
```
270
+
271
+
:::
272
+
273
+
Below is a basic example using the new `CardanoDatabase` functions. Make sure the target aggregator signs `CardanoDatabase` incremental snapshot.
274
+
275
+
:::tip
276
+
277
+
You can verify that the aggregator signs **CardanoDatabase** by running the command below:
An full example is available in the [Mithril repository](https://github.com/input-output-hk/mithril/tree/main/examples/client-cardano-database-v2/src/main.rs). To run it, execute the following command:
362
+
363
+
```bash
364
+
cargo run -p client-cardano-database-v2
365
+
```
366
+
367
+
or directly from the example crate directory:
368
+
369
+
```bash
370
+
cargo run
371
+
```
372
+
373
+
:::
374
+
165
375
:::tip
166
376
167
377
You can read the complete [developer documentation](https://mithril.network/rust-doc/mithril_client/index.html).
0 commit comments