entropy-shared 0.4.0

Shared types used by the Entropy chain node and Entropy Threshold Signing Server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::X25519PublicKey;
use serde::{Deserialize, Serialize};
use subxt::utils::AccountId32;

/// Details of a TSS server
/// This is different from `entropy_shared::ValidatorInfo` in that it is used for interacting
/// with the client rather than with the chain - since it uses types which we cannot use in the
/// chain runtime
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub struct ValidatorInfo {
    pub x25519_public_key: X25519PublicKey,
    pub ip_address: String,
    pub tss_account: AccountId32,
}