| 45 | // publicSeed + 32-byte publicKeyHash) |
| 46 | |
| 47 | static WinternitzAddress parseWinternitzAddressFromHex(const std::string &hex) { |
| 48 | std::vector<uint8_t> bytes = fromHex(hex, 64); |
| 49 | |
| 50 | WinternitzAddress address; |
| 51 | std::copy(bytes.begin(), bytes.begin() + 32, address.publicSeed.begin()); |
| 52 | std::copy(bytes.begin() + 32, bytes.end(), address.publicKeyHash.begin()); |
| 53 | return address; |
| 54 | } |
| 55 | |
| 56 | // Helper: parse a hex string into a Signature (vector<array<uint8_t, 32>>) |
| 57 | static Signature parseSignatureFromHex(const std::string &hex) { |
no test coverage detected