@MisterTicot
So, even if I kind of agree with you on this, please note that the official federation server behaves in this way. Here is how I tested it:
$ go get -u github.com/stellar/go/services/federation
$ cat federation.cfg
port = 8000
[database]
type = "postgres"
dsn = "postgres://localhost/federation_sample?sslmode=disable"
[queries]
federation = "SELECT id FROM people WHERE name = ? AND domain = ?"
reverse-federation = "SELECT name, domain FROM people WHERE id = ?"
[tls]
certificate-file = "/tmp/localhost.crt"
private-key-file = "/tmp/localhost.key"
$ ./federation --conf federation.cfg &
$ psql -U postgres federation_sample
psql (9.2.23)
Type "help" for help.
federation_sample=# \pset null '(null)'
Null display is "(null)".
federation_sample=#
federation_sample=# select * from "people" where name='szil2' or name='sig';
id | name | domain | signature | signature_rev | memo | memo_type
----------------------------------------------------------+-------+-------------+-------------+---------------+--------+-----------
GD2GJPL3UOK5LX7TWXOACK2ZPWPFSLBNKL3GTGH6BLBNISK4BGWMFBBC | szil2 | stellar.org | | | |
GA2GJPL3UOK5LX7TWXOACK2ZPWPFSLBNKL3GTGH6BLBNISK4BGWMFBBC | sig | stellar.org | test | | (null) | (null)
(2 rows)
federation_sample=# \q
$ curl -k 'https://localhost:8000/federation?q=szil2*stellar.org&type=name'
{"account_id":"GD2GJPL3UOK5LX7TWXOACK2ZPWPFSLBNKL3GTGH6BLBNISK4BGWMFBBC","memo":""}
We patched (and submitted a pull request to) the official federation server to support DKIF and we are using this version for our federation service.
We could open an issue (I had a look but could not find one) to the official federation server about this and see why did they decide to return an empty valued memo field in the json and I am happy to follow what they decide.