encode and decode keys using standard bitcoin format
change ns to bitcoin
use clojure conventions for conversions