penumbra_sdk_sct/
state_key.rs1pub mod config {
2 pub fn sct_params() -> &'static str {
3 "sct/config/sct_params"
4 }
5}
6
7pub mod block_manager {
8 pub fn block_height() -> &'static str {
9 "sct/block_manager/block_height"
10 }
11
12 pub fn current_block_timestamp() -> &'static str {
13 "sct/block_manager/block_timestamp"
14 }
15
16 pub fn block_timestamp(height: u64) -> String {
17 format!("sct/block_manager/historical_block_timestamp/{}", height)
18 }
19}
20
21pub mod epoch_manager {
22 pub fn epoch_by_height(height: u64) -> String {
23 format!("sct/epoch_manager/epoch_by_height/{}", height)
24 }
25
26 pub fn epoch_change_at_height(height: u64) -> String {
27 format!("sct/epoch_manager/pending_epoch_changes/{}", height)
28 }
29
30 pub fn end_epoch_early() -> &'static str {
31 "sct/epoch_manager/end_epoch_early"
32 }
33}
34
35pub mod nullifier_set {
36 use crate::Nullifier;
37
38 pub fn spent_nullifier_lookup(nullifier: &Nullifier) -> String {
39 format!("sct/nullifier_set/spent_nullifier_lookup/{}", nullifier)
40 }
41
42 pub fn pending_nullifiers() -> &'static str {
43 "sct/nullifier_set/pending_nullifiers"
44 }
45}
46
47pub mod tree {
48 pub fn anchor_by_height(height: u64) -> String {
49 format!("sct/tree/anchor_by_height/{}", height)
50 }
51
52 pub fn anchor_lookup(anchor: penumbra_sdk_tct::Root) -> String {
53 format!("sct/tree/anchor_lookup/{}", anchor)
54 }
55
56 pub fn state_commitment_tree() -> &'static str {
57 "sct/tree/state_commitment_tree"
58 }
59
60 pub fn note_source(note_commitment: &penumbra_sdk_tct::StateCommitment) -> String {
61 format!("sct/tree/note_source/{}", note_commitment)
62 }
63}
64
65pub mod cache {
66 pub fn cached_state_commitment_tree() -> &'static str {
67 "sct/cache/cached_state_commitment_tree"
68 }
69}
70
71pub mod ambient {
72 pub fn current_source() -> &'static str {
73 "sct/ambient/current_source"
74 }
75}