This commit is contained in:
Christien Rioux 2023-07-21 09:48:08 -04:00
parent 674a4d26f3
commit 19424cf202

View File

@ -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