# ECC Calculation Example with Nitrokey Start

**URL:** <https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640>\
**Category:** Misc\
**Created:** [November 30, 2021, 4:00am UTC](https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640 "2021-11-30T04:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chraymond](https://support.nitrokey.com/user_avatar/support.nitrokey.com/chraymond/32/989_2.png) [@chraymond](https://support.nitrokey.com/u/chraymond)\
**Post date:** [November 30, 2021, 4:00am UTC](https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640/1 "2021-11-30T04:00:53Z")

</div>

May I know if there is any example on how to integrate Nitrokey Start to trigger the ecc calculation functions?

---

<div class="post-metadata">

**Author:** ![szszszsz](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@szszszsz](https://support.nitrokey.com/u/szszszsz)\
**Post date:** [November 30, 2021, 10:44am UTC](https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640/2 "2021-11-30T10:44:11Z")

</div>

Hi!

1. You can use GPGME, which is a C API to GnuPG.
2. In case you would like to run it directly, you can sniff the traffic exchanged in step 1, or look into the specification itself:
  - [https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-3.4.pdf](https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-3.4.pdf)
  - [https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-2.0.pdf](https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-2.0.pdf)

Note: This spec is describing version 3.4. Nitrokey Start is implementing fully version 2.0, with some extensions taken from 3.4, notably the ECC support for selected algorithms.

---

<div class="post-metadata">

**Author:** ![szszszsz](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@szszszsz](https://support.nitrokey.com/u/szszszsz)\
**Post date:** [November 30, 2021, 10:55am UTC](https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640/3 "2021-11-30T10:55:52Z")

</div>

I think someone has used Nitrokey Start / GNUK as a Bitcoin wallet too as far as I remember, so perhaps you could find some related code in a web search.

---

<div class="post-metadata">

**Author:** ![chraymond](https://support.nitrokey.com/user_avatar/support.nitrokey.com/chraymond/32/989_2.png) [@chraymond](https://support.nitrokey.com/u/chraymond)\
**Post date:** [December 1, 2021, 6:18am UTC](https://support.nitrokey.com/t/ecc-calculation-example-with-nitrokey-start/3640/4 "2021-12-01T06:18:14Z")

</div>

Thanks for sharing, my plan is not only doing the signing, I want to trigger those modp256k1\_sub/modp256k1\_add/modp256k1\_mul and edward related functions indeed and it is difficult to find related example on the web.
