 (ns block-chain.wallet
-  (:require [clj-pgp.core :as pgp]
-            [clj-pgp.keyring :as keyring]
-            [clojure.java.io :as io]
-            [clj-pgp.generate :as pgp-gen])
+  (:require [clojure.java.io :as io])
   (:import
     (org.bouncycastle.openpgp
      PGPUtil)

(def private-key (read-pem-private-key "/Users/worace/Desktop/keys/private_key.pem"))
(def public-key (read-pem-public-key "/Users/worace/Desktop/keys/public_key.pem"))


(let [encrypted (encrypt (.getBytes "Pizza") public-key)]
  (println "decryted: " (map char (decrypt encrypted (.getPrivate private-key)))))


    (java.security.spec
     PKCS8EncodedKeySpec)))

(java.security.Security/addProvider
 (org.bouncycastle.jce.provider.BouncyCastleProvider.))

(defn decode64 [str]
  (javax.xml.bind.DatatypeConverter/parseBase64Binary str))

(defn keydata [filepath]
 (->> filepath
