add registration script, missing real public key generation