fix: resolve cyclic imports in avatarplaceholder
bt moving types from data module identitykey, guardnode, snode, swarmnode to a separate filepull/3083/head
parent
55efa4a718
commit
b13e907753
@ -0,0 +1,22 @@
|
|||||||
|
export type IdentityKey = {
|
||||||
|
id: string;
|
||||||
|
publicKey: ArrayBuffer;
|
||||||
|
firstUse: boolean;
|
||||||
|
nonblockingApproval: boolean;
|
||||||
|
secretKey?: string; // found in medium groups
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GuardNode = {
|
||||||
|
ed25519PubKey: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export interface Snode {
|
||||||
|
ip: string;
|
||||||
|
port: number;
|
||||||
|
pubkey_x25519: string;
|
||||||
|
pubkey_ed25519: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type SwarmNode = Snode & {
|
||||||
|
address: string;
|
||||||
|
};
|
Loading…
Reference in New Issue