Isolate OHTTP Gateway operation to a separate abstract module from payjoin-directory/src/lib.rs so that it serves as a reference for other implementations like Cashu Dev Kit, Nostr Relays etc. It should separate support for our x-ohttp-allowed-purposes mechanism and ohttp_keys and and ohttp decapsulation from the main lib file.
After this is done, investigate if this could be made into a tiny gateway crate.
Isolate OHTTP Gateway operation to a separate abstract module from
payjoin-directory/src/lib.rsso that it serves as a reference for other implementations like Cashu Dev Kit, Nostr Relays etc. It should separate support for ourx-ohttp-allowed-purposesmechanism and ohttp_keys and and ohttp decapsulation from the main lib file.After this is done, investigate if this could be made into a tiny gateway crate.