Save private key in localstorage