       placement : 'below'
 
 
-  getPublicKeys: ->
-    (cred.publicKey for cred in @credentials)
-
-
   pistachio: ->
     """
       {{> @waitingView}}

kd             = require 'kd'
JView          = require 'app/jview'

curryIn        = require 'app/util/curryIn'
showError      = require 'app/util/showError'

          @setCredential credential


    if @credentials.length > 0
      [credential] = @credentials

      remote.api.JCredential.one credential, (err, credential) =>
        if err
        then @setNotVerified 'Credentials not valid'
        else @setCredential credential
    else
      @setNotVerified()


  setCredential: (credential) ->

    return @setNotVerified()  unless credential

    @credentials      = [credential.publicKey]
    {provider, title} = credential
    @setVerified "
      A credential titled as '#{title}' for #{provider} provider is selected.
