identify node by pubkey

This commit is contained in:
Carsten Otto
2021-11-12 09:41:17 +01:00
parent 9c2afa0abc
commit 3459f2ad8d
7 changed files with 41 additions and 22 deletions

View File

@@ -23,6 +23,10 @@ public record Node(@Nonnull String alias, int lastUpdate, @Nonnull Pubkey pubkey
return new Builder();
}
public static Node forPubkey(Pubkey pubkey) {
return Node.builder().withPubkey(pubkey).build();
}
@Override
public String toString() {
return alias;