Made some methods public in BasicKeyChain. Fixes in deterministic key generation