[Pkg-bitcoin-commits] [libsecp256k1] 29/37: Merge #459: Add pubkey prefix constants to include/secp256k1.h

Jonas Smedegaard dr at jones.dk
Fri Aug 18 11:27:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libsecp256k1.

commit f532bdc9f77f7bbf7e93faabfbe9c483f0a9f75f
Merge: cac7c55 bc61b91
Author: Pieter Wuille <pieter.wuille at gmail.com>
Date:   Thu Aug 10 16:41:39 2017 -0700

    Merge #459: Add pubkey prefix constants to include/secp256k1.h
    
    bc61b91 add pubkey prefix constants to include/secp256k1.h (Andrew Poelstra)
    
    Pull request description:
    
      In future multisig implementations we will need to pass nonces around, which are algebraically pubkeys but should not be decodable as pubkeys. The way to do this is to change the prefix byte from the ordinary 0x02/0x03 to something else. However, some forks (notably `secp256k1-zkp`) have started using some bytes for their own encodings, and if we continue to use hardcoded constants the risk of conflict is increased.
    
      This commit puts the prefixes used by the main library into the `include/secp256k1.h` so that the constants we're using will at least be in a standard easy-to-reference place.
    
    Tree-SHA512: 37fa25be5074b7c519a9c69421320a62f32a3818f144254eb57f96c6657b993fc01962a5c670574275d1c59b095a6c89e60736123f032d6736907284eac526d7

 include/secp256k1.h |  7 +++++++
 src/eckey_impl.h    | 11 ++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)


-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git



More information about the Pkg-bitcoin-commits mailing list