feat(grin): address→npub bridge + mark relay same-instance-only

Enhance the grin address→user lookup to return the owner's linked npub (not just a
bool), so a bare grin slatepack address can resolve to its owner's npub and route
over the federated Nostr gift-wrap rail instead of only manual handoff. Doc-comment
the backend slatepack relay as a same-instance-only convenience — the federated
default transport is Nostr gift-wrap; the relay needs a recipient user_id and both
parties on this instance, so it is not the primary path in a public-backend world.
This commit is contained in:
jwinterm
2026-07-09 04:47:13 -04:00
parent 57ebb2a5aa
commit a7c4bbd238
4 changed files with 109 additions and 1 deletions
+2
View File
@@ -56,6 +56,7 @@ use utoipa::OpenApi;
crate::api::wallet::grin::scan,
crate::api::wallet::grin::height,
crate::api::wallet::grin::broadcast,
crate::api::wallet::grin::address_user,
crate::api::wallet::grin_relay::create,
crate::api::wallet::grin_relay::pending,
crate::api::wallet::grin_relay::get_relay,
@@ -144,6 +145,7 @@ use utoipa::OpenApi;
crate::api::wallet::grin::GrinHeightResponse,
crate::api::wallet::grin::GrinBroadcastRequest,
crate::api::wallet::grin::GrinBroadcastResponse,
crate::api::wallet::grin::GrinAddressUserResponse,
crate::api::wallet::grin_relay::CreateRelayRequest,
crate::api::wallet::grin_relay::RespondRelayRequest,
crate::api::wallet::grin_relay::FinalizeRelayRequest,