core: Added KeyChain API & implementation