summaryrefslogtreecommitdiff
path: root/NOTES
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2011-02-10 18:30:07 -0800
committerDavid Barksdale <amatus.amongus@gmail.com>2011-02-10 18:30:07 -0800
commitf21ee8771ea536074593192c11d3183ad2fd3568 (patch)
tree429d4ae6bc29f5b8b84730901e20cd67dcba5233 /NOTES
parent85a92c0112e74709c08a168c802cee05fd9198b4 (diff)
Lots of changes, added many new functions to the applet.
Diffstat (limited to 'NOTES')
-rw-r--r--NOTES2
1 files changed, 1 insertions, 1 deletions
diff --git a/NOTES b/NOTES
index 8e56fae..987d2a7 100644
--- a/NOTES
+++ b/NOTES
@@ -1,7 +1,7 @@
(use '(org.gnu.clojure.gnunet bloomfilter core crypto exception filesharing hello hostlist inet iostream message parser peer tcp transport udp util))
(def random (java.security.SecureRandom.))
(def keypair (generate-rsa-keypair! random))
-(def my-peer (new-peer {:keypair keypair :random random}))
+(def my-peer (new-peer {:public-key (.getPublic keypair) :private-key (.getPrivate keypair) :random random}))
(.start (:selector-thread my-peer))
(activate-tcp! my-peer 5678)
(configure-inet-addresses! my-peer "tcp" (get-local-addresses) 5678)