title: How can I convert a ECDSA curve specification from the SEC2 form into the form needed by Go?
body: <p>I`m trying to implement ECDSA in the curve secp256k1 in Google Go.</p>
  
  <p>Secp256k1 is defined by the SECG standard (SEC 2, part 2, <a href="http://www.secg.org/collateral/sec2_final.pdf" rel="nofollow">Recommended Elliptic Curve Domain Parameters over <sub>p</sub></a>, page 15) in terms of parameters p, a, b, G compressed, G uncompressed, n and h.</p>
  
  <p>In <a href="http://golang.org/pkg/crypto/elliptic/#Curve" rel="nofollow">Go's crypto library</a>, the curves are defined by parameters P, N, B, Gx, Gy and BitSize. How do I convert parameters given by SECG into the ones needed by Go?</p>