redgold 0.1.25

p2p database / compute engine & portfolio target models
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;
use redgold_schema::RgResult;
use redgold_schema::structs::PublicKey;
use crate::party::data_enrichment::PartyInternalData;
use crate::party::party_watcher::PartyWatcher;

impl PartyWatcher {

    pub async fn handle_key_rotations(&self, data: &mut HashMap<PublicKey, PartyInternalData>) -> RgResult<()> {
        // TODO Mark successor keys, also in party internal data mark its current state
        for (key, dat) in data.iter_mut() {
        }
        Ok(())
    }
}