mirror of
https://github.com/Such-Software/smirk-backend-core.git
synced 2026-10-17 07:21:32 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user