ma-core 0.14.0

DIDComm service library: inboxes, outboxes, DID document publishing, and transport abstraction
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Iroh transport backend.

pub mod channel;
mod endpoint;

use crate::error::Result;
use crate::{DidDocumentResolver, EncryptionKey};
use std::sync::Arc;

pub(crate) async fn new_endpoint(
    secret_bytes: [u8; 32],
    recipient_key: EncryptionKey,
    resolver: Arc<dyn DidDocumentResolver>,
    ipv6: bool,
) -> Result<endpoint::IrohEndpoint> {
    endpoint::IrohEndpoint::new(secret_bytes, recipient_key, resolver, ipv6).await
}