Add 'gen-keyring' API - a keyring generator.