selector
This commit is contained in:
parent
674a4d26f3
commit
19424cf202
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user