mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-27 08:55:35 -04:00
selector
This commit is contained in:
parent
674a4d26f3
commit
19424cf202
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue