bitcoinjs/bitcoinjs-lib — pull request #87 by Dcousens (2014-03-24 16:39:50+00:00)
Title: Adds compression flag to toHex/toBin and tests

As the title says, this allows you to simply get the compressed or non-compressed public key.
This functionality already existed in `toBytes`, I just made it accessible from the other output formats.