Incorrect test address from admin server
woodser opened this issue · 1 comments
Running ./src/monero-lws-admin --network test create_admin
gives this result:
{"address":"9sAejnQ9EBR111111111111111111111111111111111158LRbrc6UMRoz1ZnUWGiscDUfXDZHcmf1CiQW6F2NxTMT6zULn","key":"e59fdce5b27b8b0c664feb895debef40f8d78f6a2f59a3afa761d14a644d2500"}
The address can't be right, can it?
This is correct, although perhaps something should be done to make it visually more appealing. The spend secret and spend pub are zeroed out for "admin" accounts - they aren't intended to be usable accounts. So that long list of 1
s corresponds to a zeroed out spend pubkey.
The zeroed pub key maps to a valid (x,y) though, so attempting to send to this address will likely succeed, except the spend secret is incorrect for this (x,y) so I'm not sure if the funds could be recovered. If they can be recovered, then someone is likely to steal them because the secret key would be trivial to find for an attacker too.
Perhaps I should find an invalid encoding for the public key, this will break up the list of 1
s, and ensure that the address is never used outside of its intended purpose.