Sebastian Falbesoner
100e8a75bf
rpc: check and throw specific pubkey parsing errors in HexToPubKey
...
In the helper `HexToPubKey`, check for three different causes of legacy
public key parsing errors (in this order):
- pubkey is not a hex string
- pubkey doesn't have a valid length (33 or 65 bytes) [NEW]
- pubkey is cryptographically invalid, i.e. not on curve
(`IsFullyValid` check)
and throw a specific error message for each one. Note that the error
code is identical for all of them (-5), so this doesn't break RPC API
compatibility.
The helper is currently used for the RPCs `createmultisig` and
`addmultisigaddress`. The length checks can be removed from the
call-sites and error message checks in the functional tests are adapted.
2024-02-09 13:35:23 +01:00
..
2024-01-02 11:12:32 -05:00
2024-01-23 21:01:32 -03:00
2024-01-26 18:56:41 -05:00
2023-12-04 15:39:15 -04:00
2024-01-11 11:01:28 -06:00
2024-01-05 10:42:10 +00:00
2024-02-05 14:21:10 +00:00
2024-02-01 13:52:05 +01:00
2024-01-31 21:20:05 +02:00
2024-02-08 15:59:53 +00:00
2024-02-09 13:35:23 +01:00
2023-12-08 06:54:00 -03:00
2024-01-04 14:40:28 +00:00
2024-02-03 17:59:43 +01:00
2024-01-05 11:22:31 +01:00
2024-02-08 09:05:00 -05:00
2023-12-11 18:22:13 +01:00
2023-12-15 15:20:54 +01:00
2024-02-08 13:49:15 -05:00
2024-01-15 16:19:53 -05:00
2024-01-05 17:16:38 +00:00
2024-01-09 15:27:08 -06:00
2023-12-11 13:08:46 -05:00
2023-12-04 15:39:15 -04:00
2024-02-01 13:52:05 +01:00
2023-12-11 18:22:13 +01:00
2023-12-11 18:22:13 +01:00
2024-01-05 17:12:38 +01:00
2024-02-01 13:52:05 +01:00
2024-01-10 14:11:32 -05:00
2024-01-07 16:24:08 -06:00
2024-01-31 15:58:47 -05:00
2023-12-04 15:39:15 -04:00
2024-01-16 15:29:18 +01:00
2024-01-16 15:29:18 +01:00
2024-01-16 15:29:18 +01:00
2023-12-15 11:03:25 +10:00
2023-12-20 15:59:48 +10:00
2024-01-26 18:56:41 -05:00
2024-01-02 11:12:32 -05:00
2024-02-07 09:23:42 +00:00
2024-02-03 17:59:43 +01:00
2024-02-01 13:52:05 +01:00
2024-01-15 10:28:20 -03:00
2024-01-31 11:44:41 -05:00
2024-01-31 15:33:57 -05:00
2024-01-23 11:49:32 +01:00
2023-12-06 11:22:42 -05:00
2024-01-18 19:29:34 +01:00
2024-01-23 10:25:16 -03:00
2024-01-23 10:25:16 -03:00
2024-01-16 10:58:57 +01:00
2024-01-05 10:42:10 +00:00
2023-12-22 09:58:18 +01:00
2023-12-22 09:58:19 +01:00
2024-01-05 17:16:38 +00:00
2024-02-01 13:52:05 +01:00
2024-01-10 14:11:32 -05:00
2024-01-18 21:54:56 +00:00
2024-01-18 21:54:56 +00:00
2023-12-08 13:14:46 +00:00
2023-12-08 13:14:46 +00:00
2023-12-07 11:06:01 +01:00
2024-02-01 13:52:05 +01:00
2024-01-05 17:16:38 +00:00
2024-01-02 12:40:11 +01:00