hc_deepkey_types/key_meta.rs
1use hdi::prelude::*;
2
3// This is expected to have some compatibility with Lair Key API
4// #[derive(Debug, Clone, Serialize, Deserialize)]
5// pub enum KeyType {
6// AppUI,
7// AppSig,
8// AppEncryption,
9// TLS,
10// }
11
12#[hdk_entry_helper]
13#[derive(Clone)]
14pub struct KeyMeta {
15 // TODO: make sure we can ensure there is only 1 key anchor creation action
16 pub app_binding_addr: ActionHash,
17 pub key_index: u32,
18 pub key_registration_addr: ActionHash,
19 pub key_anchor_addr: ActionHash,
20 pub derivation_seed: Option<Vec<u8>>,
21 pub derivation_bytes: Option<Vec<u8>>,
22 // pub key_type: KeyType,
23}