Add local storage saving for pub key.