aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorJack Grigg <jack@z.cash>2017-06-06 19:21:34 +1200
committerJack Grigg <jack@z.cash>2017-07-17 11:57:23 -0500
commit17fa3913ef7ba5f569ebc3695fab15b10dd914f0 (patch)
treef86b876dc96420a858e0cfe121f81923c471fcf2 /src/key.h
parente4a10860a4043afdda29bf7ed8e98f05d5341905 (diff)
downloadbitcoin-17fa3913ef7ba5f569ebc3695fab15b10dd914f0.tar.xz
Specify ECDSA constant sizes as constants
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/key.h b/src/key.h
index 2c6f151727..dc7b941f42 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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;