pub async fn gen_transport<T: NodeType>(
identity: Keypair,
stake_table: Option<Arc<RwLock<T::Membership>>>,
auth_message: Option<Vec<u8>>,
consensus_key_to_pid_map: Arc<Mutex<BiMap<T::SignatureKey, PeerId>>>,
) -> Result<Boxed<(PeerId, StreamMuxerBox)>, NetworkError>
Expand description
Generates an authenticated transport checked against the stake table. If the stake table or authentication message is not provided, the transport will not participate in stake table authentication.
ยงErrors
If we could not create a DNS transport