create static method
Implementation
static Future<SessionInitializer> create(
{required Url directory,
required OhttpKeys ohttpKeys,
required String address,
required BigInt expireAfter,
required Network network,
required Url ohttpRelay}) async {
try {
final res = await FfiSessionInitializer.newInstance(
directory: directory,
ohttpKeys: ohttpKeys,
ohttpRelay: ohttpRelay,
address: address,
expireAfter: expireAfter,
network: network);
return SessionInitializer._(field0: res.field0);
} on error.PayjoinError catch (e) {
throw mapPayjoinError(e);
}
}