about summary refs log tree commit diff
path: root/app/lib/proof_provider.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/proof_provider.rb')
-rw-r--r--app/lib/proof_provider.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/lib/proof_provider.rb b/app/lib/proof_provider.rb
new file mode 100644
index 000000000..102c50f4f
--- /dev/null
+++ b/app/lib/proof_provider.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module ProofProvider
+  SUPPORTED_PROVIDERS = %w(keybase).freeze
+
+  def self.find(identifier, proof = nil)
+    case identifier
+    when 'keybase'
+      ProofProvider::Keybase.new(proof)
+    end
+  end
+end