{#if !bunkerInfo?.available}

Remote Signing Not Available

This relay does not have bunker mode enabled, or ACL mode is set to "none".

Remote signing requires the relay operator to enable ACL mode "follows" or "managed".

{:else if canAccess}

Remote Signing (NIP-46 Bunker)

{#if error}
{error}
{/if} {#if isLoading && !bunkerInfo}
Loading bunker information...
{:else if bunkerInfo}

How it works: Start the bunker service to allow remote apps (like Smesh) to request signatures from your ORLY account. Share the QR code or bunker URL with your client app.

Bunker Service

{isServiceActive ? 'Active' : 'Inactive'}
{#if !userPrivkey}
Bunker service requires nsec login. Please log in with your private key to enable remote signing.
{:else}
{#if isServiceActive} {:else} {/if}
{#if isServiceActive && connectedClients.length > 0}
Connected Clients ({connectedClients.length})
{#each connectedClients as client}
{client.pubkey.substring(0, 16)}... Connected {new Date(client.connectedAt).toLocaleTimeString()}
{/each}
{/if} {/if}

Connection Details

Relay: {bunkerInfo.relay_url}
Your npub: {userPubkey}
Secret: {bunkerSecret}
{/if}
{:else if isLoggedIn}

Access Denied

You need write access to use remote signing. Your current access level: {currentEffectiveRole || "read-only"}

{:else}

Please log in to access remote signing.

{/if}