@Spencer yes the Duniter protocol was voluntarily designed to allow swap exchanges (and many other things), this article should interest you: https://duniter.org/en/transactions-0-2-overview/
So Duniter already allows what you want to do. Anyone can develop swap exchange software by exploiting the Duniter BMA API 