From 19424cf2026b1cfba5675f89eeb0d2586d078058 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Fri, 21 Jul 2023 09:48:08 -0400 Subject: [PATCH] selector --- veilid-flutter/lib/routing_context.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/veilid-flutter/lib/routing_context.dart b/veilid-flutter/lib/routing_context.dart index 778c3fbe..32d51213 100644 --- a/veilid-flutter/lib/routing_context.dart +++ b/veilid-flutter/lib/routing_context.dart @@ -84,6 +84,15 @@ class DHTRecordDescriptor with _$DHTRecordDescriptor { _$DHTRecordDescriptorFromJson(json); } +extension DHTRecordDescriptorExt on DHTRecordDescriptor { + KeyPair? ownerKeyPair() { + if (ownerSecret == null) { + return null; + } + return KeyPair(key: owner, secret: ownerSecret!); + } +} + ////////////////////////////////////// /// ValueSubkeyRange