MarcoFalke bfaed1ab2e
Merge #12460: Assert CPubKey::ValidLength to the pubkey's header-relevant size
f8c249ab91 Assert CPubKey::ValidLength to the pubkey's header-relevent size (Ben Woosley)

Pull request description:

  A pubkey's length is specific to its type which is indicated by its header value. GetLen returns the header-indicated length, so this change ensures that a key matches its header-indicated length.

  And replace some magic values with their constant equivalents.

Tree-SHA512: b727b39a631babe0932326396fc4d796ade8ec1e37454ff0c709ae9b78ecbd0cfdf59d84089ba8415e6efa7bc180e3cd39a14ddaf0871cbac54b96851e1b7b44
2018-04-04 17:50:32 -04:00
..
2018-02-16 08:59:28 -05:00
2017-09-29 16:02:39 +02:00
2018-02-10 09:55:54 -05:00
2018-03-06 21:52:53 +01:00
2018-03-21 10:54:17 +01:00
2018-03-21 11:57:57 +08:00
2018-02-11 10:48:15 +01:00
2018-03-06 19:52:19 +00:00
2018-03-06 19:52:19 +00:00
2018-03-13 17:04:31 -07:00
2018-02-27 11:42:06 -08:00
2018-03-21 08:34:44 +02:00
2018-03-21 08:34:44 +02:00
2018-03-13 17:04:31 -07:00
2018-01-23 13:16:56 -05:00
2018-03-22 10:28:56 -04:00
2018-03-14 23:10:39 -07:00
2018-03-21 08:34:44 +02:00
2018-01-28 13:21:25 +01:00
2018-03-21 08:34:44 +02:00
2018-03-06 20:28:08 -08:00