diff options
Diffstat (limited to 'gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala')
-rw-r--r-- | gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala b/gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala new file mode 100644 index 0000000..108ee00 --- /dev/null +++ b/gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala @@ -0,0 +1,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] + +}
\ No newline at end of file |