Skip to content

Instantly share code, notes, and snippets.

View alilee's full-sized avatar

Alister Lee alilee

  • shortepic.com
  • Melbourne, Australia
View GitHub Profile
@danneu
danneu / 1-codec.clj
Created November 10, 2013 11:58
a rough implementation/dump of the bitcoin wire protocol (codec.clj) and some usage examples (chan.clj). https://github.com/ztellman/gloss/issues/27
(ns blockdude.codec
(:require [clojure.string :as str]
[gloss.core :as gloss-core :refer :all
:exclude [byte-count]]
[blockdude.hash :as hash]
[blockdude.util :refer :all]
[gloss.core.codecs :refer [identity-codec]]
[gloss.io :refer :all
:exclude [contiguous decode encode]])
(:import [java.lang Character]