java-stellar-sdk
java-stellar-sdk copied to clipboard
Support the Stellar memo convention.
https://github.com/stellar/stellar-protocol/issues/28
Steps that need to happen when you handle an incoming message:
- you receive a tx
- Do you already have a preimage of the memo?
- no -> Fetch the preimage
- Look up the home domain of the source account
- Fetch the stellar.toml
- or, Look for a "msg_server" key on the account
- ask the MESSAGE_SERVER for the preimage of the tx memo
- Look up the home domain of the source account
- Check signature on any signed blocks.
- Are there blocks that are encrypted?
- Do we have the key?
- yes -> decrypt
- no -> ignore
after processing, the sdk should for each operation provide:
- note
- user info
- routing info
We need to think a bit how we are going to implement this in the various sdk's @nullstyle