decode static method

Future<OhttpKeys> decode({
  1. required List<int> bytes,
})

Construct a configuration from the encoded server configuration.

Implementation

static Future<OhttpKeys> decode({required List<int> bytes}) async {
  try {
    final res = await FfiOhttpKeys.decode(bytes: bytes);
    return OhttpKeys._(field0: res.field0);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}