pub fn from_type_and_public_key(type_id: i32, pub_key: &[u8; 32]) -> Self {
        Self {
            id: Self::calc_id(type_id, pub_key),
            keys: [Some(*pub_key), None, None],
            type_id
        }
    }
/// Create from type and public key
Create from type and public key
Create from type and public key
pub fn from_type_and_public_key(type_id: i32, pub_key: &[u8; 32]) -> Self {
        Self {
            id: Self::calc_id(type_id, pub_key),
            keys: [Some(*pub_key), None, None],
            type_id
        }
    }
pub fn from_type_and_public_key ( type_id : i32 , pub_key : & [ u8 ; 32 ] ) -> Self { Self { id : Self :: calc_id ( type_id , pub_key ) , keys : [ Some ( * pub_key ) , None , None ] , type_id } }
Create from type and public key
Create from type and public key
type_id
i32
pub_key
&[u8; 32]