.
Some checks are pending
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run
Rust / build (macos-latest, stable) (pull_request) Waiting to run
Rust / build (ubuntu-latest, stable) (pull_request) Waiting to run
Rust / build (windows-latest, stable) (pull_request) Waiting to run
Some checks are pending
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run
Rust / build (macos-latest, stable) (pull_request) Waiting to run
Rust / build (ubuntu-latest, stable) (pull_request) Waiting to run
Rust / build (windows-latest, stable) (pull_request) Waiting to run
This commit is contained in:
@@ -23,21 +23,17 @@ struct GlobalDeviceRegistry(Entity<DeviceRegistry>);
|
|||||||
impl Global for GlobalDeviceRegistry {}
|
impl Global for GlobalDeviceRegistry {}
|
||||||
|
|
||||||
/// Device Registry
|
/// Device Registry
|
||||||
|
///
|
||||||
|
/// NIP-4e: https://github.com/nostr-protocol/nips/blob/per-device-keys/4e.md
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct DeviceRegistry {
|
pub struct DeviceRegistry {
|
||||||
/// Device signer
|
/// Device signer
|
||||||
///
|
|
||||||
/// NIP-4e: https://github.com/nostr-protocol/nips/blob/per-device-keys/4e.md
|
|
||||||
pub device_signer: Entity<Option<Arc<dyn NostrSigner>>>,
|
pub device_signer: Entity<Option<Arc<dyn NostrSigner>>>,
|
||||||
|
|
||||||
/// Device requests
|
/// Device requests
|
||||||
///
|
|
||||||
/// NIP-4e: https://github.com/nostr-protocol/nips/blob/per-device-keys/4e.md
|
|
||||||
requests: Entity<HashSet<Event>>,
|
requests: Entity<HashSet<Event>>,
|
||||||
|
|
||||||
/// Device state
|
/// Device state
|
||||||
///
|
|
||||||
/// NIP-4e: https://github.com/nostr-protocol/nips/blob/per-device-keys/4e.md
|
|
||||||
state: DeviceState,
|
state: DeviceState,
|
||||||
|
|
||||||
/// Async tasks
|
/// Async tasks
|
||||||
|
|||||||
Reference in New Issue
Block a user