quartzjer/node-telehash — pull request #2 by s-k (2013-03-30 21:45:52+00:00)
Title: 'public' and 'private' keywords are a problem if using Google Closure

I am testing the library with ClojureScript, which is internally using Google Closure. However, Google Closure throws an error if you use 'public' as a property name. Also, 'public' and 'private' are FutureReservedWords in strict mode of ECMAScript:

See http://www.ecma-international.org/ecma-262/5.1/#sec-7.6.1.2

So, I changed the properties 'public' and 'private' to 'publicKey' and 'privateKey'.

Best Regards
Stephen Kockentiedt