secp256k1/include
Tim Ruffing 328aaef22a
Merge #845: Extract the secret key from a keypair
33cb3c2b1f Add secret key extraction from keypair to constant time tests (Elichai Turkel)
36d9dc1e8e Add seckey extraction from keypair to the extrakeys tests (Elichai Turkel)
fc96aa73f5 Add a function to extract the secretkey from a keypair (Elichai Turkel)

Pull request description:

  With schnorrsig if you need to tweak the secret key (for BIP32) you must use the keypair API to get compatible secret/public keys which you do by calling `secp256k1_keypair_xonly_tweak_add()`, but after that there's no currently a way to extract the secret key back for storage.
  so I added a `secp256k1_keypair_seckey` function to extract the key

ACKs for top commit:
  jonasnick:
    ACK 33cb3c2b1f
  real-or-random:
    ACK 33cb3c2b1f code inspection, tests pass

Tree-SHA512: 11212db38c8b87a87e2dc35c4d6993716867b45215b94b20522b1b3164ca63d4c6bf5192a6bff0e9267b333779cc8164844c56669a94e9be72df9ef025ffcfd4
2021-01-12 10:56:14 +01:00
..
secp256k1.h fixed typo 2020-12-22 22:31:29 +01:00
secp256k1_ecdh.h Rename private key to secret key in public API (with the exception of function names) 2020-03-30 20:51:47 +00:00
secp256k1_extrakeys.h Add a function to extract the secretkey from a keypair 2020-12-19 11:00:25 +02:00
secp256k1_preallocated.h Fix typo in secp256k1_preallocated.h 2019-07-18 08:35:42 +08:00
secp256k1_recovery.h Rename msg32 to msghash32 in ecdsa_sign/verify and add explanation 2020-12-04 14:12:38 +00:00
secp256k1_schnorrsig.h schnorrsig: Add BIP-340 compatible signing and verification 2020-09-06 19:00:03 +00:00