Bitcoin Forum
November 18, 2024, 02:27:09 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: `bitcoin-core/secp256k1` vs `bitcoin/src/secp256k1` - what to use?  (Read 173 times)
nonconformist (OP)
Full Member
***
Offline Offline

Activity: 386
Merit: 104


IDENA.IO - Proof-Of-Person Blockchain


View Profile
August 16, 2020, 11:25:16 AM
Merited by ABCbits (1)
 #1

There are two secp256k1 implementations that are related to Bitcoin-Core:

https://github.com/bitcoin-core/secp256k1

https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

What is the more authoritative implementation? What secp256k1 library should be used?

c_atlas
Member
**
Offline Offline

Activity: 140
Merit: 56


View Profile
August 16, 2020, 08:38:59 PM
Merited by suchmoon (4), Husna QA (2), pooya87 (1), ABCbits (1)
 #2

There are two secp256k1 implementations that are related to Bitcoin-Core:

https://github.com/bitcoin-core/secp256k1

https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

What is the more authoritative implementation? What secp256k1 library should be used?
It seems like https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1 is a subtree of the standalone bitcoin-core/secp256k1 repo. I would use bitcoin-core/secp256k1, it looks like libbtcoin forked it and it looks more up to date than the official bitcoin repo.

If you want to check for yourself, just look through this recent commit log
https://github.com/bitcoin/bitcoin/commit/8903a1a0a78a705402123d2a5c465217cb9d791c
and compare the files to bitcoin-core/secp256k1, you'll see it's the same.
pooya87
Legendary
*
Offline Offline

Activity: 3640
Merit: 11040


Crypto Swap Exchange


View Profile
August 17, 2020, 04:21:04 AM
 #3

both of them are the same exact thing developed and maintained by pretty much same exact people (see contributors). the difference is that it is worked on under bitcoin-core github account and in a separate repository and the stable versions are pulled to bitcoin account in bitcoin/bitcoin repository.

the benefit is that if a developer wanted to use libsecp256k1 in their project they don't have to download the much bigger project (bitcoin core) and extract the libsecp256k1 from it. they can easily download a standalone repository and compile that without having to remove the extra parts (bitcoin core related parts).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!