aboutsummaryrefslogtreecommitdiff
path: root/gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala
blob: 108ee00af8f4e7c90397f4a06688c3f13a07d8ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.github.jodersky.skeybase
package openpgp

import scala.util.Try

trait Backend {

  /** Imports a key into this backend so that it is available for verification. */
  def importKey(key: String): Unit

  /**
   * verifies a signed statement.
   * @param signed the statement to verify
   * @param fingerprint the fingerprint of the key that allegedly signed this statement
   */
  def verifySignature(signed: String, fingerprint: String): Try[String]

}