chia-blockchain/tests/core/cmds
Jeff c107001334
Add SigningMode and update verify_signature RPC to work with sign_message_by_* RPCs (#14213)
* Updated `verify_signature` RPC to support signatures made by `sign_message_by_*` RPCs

* Updated RPC to use "signing_mode" param name with value "chip_0002"
Added CHIP_0002_SIGN_MESSAGE_PREFIX string constant

* Tests for verify_signature

* Update chia/wallet/wallet.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Adds SigningMode enum with CHIP-0002 and BLS message augmentation schemes
chia keys sign/verify support JSON output
chia keys verify now accepts the -b as_bytes option

* Fix a mypy warning

* Updated link to CHIP-0002

* isort

* Fix tests

* improve error handling

* comment how test data was generated

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-01-25 12:44:37 -06:00
..
__init__.py [CLI] chia keys derive [wallet-address | child-key | search] (#9184) 2022-01-25 20:42:16 -08:00
config.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_beta.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_keys.py Add SigningMode and update verify_signature RPC to work with sign_message_by_* RPCs (#14213) 2023-01-25 12:44:37 -06:00
test_wallet.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00