(self, raw_data)
| 123 | self.hash_alg = getattr(self, f"SHA{sha_type}") |
| 124 | |
| 125 | def prepare_key(self, raw_data): |
| 126 | key = ECKey.import_key(raw_data) |
| 127 | if key["crv"] != self.curve: |
| 128 | raise ValueError( |
| 129 | f'Key for "{self.name}" not supported, only "{self.curve}" allowed' |
| 130 | ) |
| 131 | return key |
| 132 | |
| 133 | def sign(self, msg, key): |
| 134 | op_key = key.get_op_key("sign") |
nothing calls this directly
no test coverage detected