The btcec package implements elliptic curve cryptography, helps you working with bitcoin public, private keys and addresses. It's also the algorithm needed to sign and verify data.
Read more...
Understanding btcd - Part 2: Key and Address