diff options
author | Jack Grigg <jack@z.cash> | 2017-06-06 19:21:34 +1200 |
---|---|---|
committer | Jack Grigg <jack@z.cash> | 2017-07-17 11:57:23 -0500 |
commit | 17fa3913ef7ba5f569ebc3695fab15b10dd914f0 (patch) | |
tree | f86b876dc96420a858e0cfe121f81923c471fcf2 /src/key.h | |
parent | e4a10860a4043afdda29bf7ed8e98f05d5341905 (diff) |
Specify ECDSA constant sizes as constants
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,5 +1,6 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers +// Copyright (c) 2017 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -17,17 +18,18 @@ /** * secp256k1: - * const unsigned int PRIVATE_KEY_SIZE = 279; - * const unsigned int PUBLIC_KEY_SIZE = 65; - * const unsigned int SIGNATURE_SIZE = 72; - * + */ +const unsigned int PRIVATE_KEY_SIZE = 279; +const unsigned int COMPRESSED_PRIVATE_KEY_SIZE = 214; +/** * see www.keylength.com * script supports up to 75 for single byte push */ /** * secure_allocator is defined in allocators.h - * CPrivKey is a serialized private key, with all parameters included (279 bytes) + * CPrivKey is a serialized private key, with all parameters included + * (PRIVATE_KEY_SIZE bytes) */ typedef std::vector<unsigned char, secure_allocator<unsigned char> > CPrivKey; |