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