[CHORE] Modified functions not to overwrite entire prototype
working on public key recovery