cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
eth_sig.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 * Copyright (c) 2026 Cryptnox SA
4 */
5
11
12#ifndef ETH_SIG_H
13#define ETH_SIG_H
14
15#include <stdint.h>
16#include <stdbool.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
43bool eth_sig_parity(const uint8_t hash[32], const uint8_t r[32],
44 const uint8_t s[32], const uint8_t pub64[64],
45 uint8_t *v_out);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* ETH_SIG_H */
bool eth_sig_parity(const uint8_t hash[32], const uint8_t r[32], const uint8_t s[32], const uint8_t pub64[64], uint8_t *v_out)
Verify (r, s) over hash against pub64 and return its y-parity.
Definition eth_sig.cpp:16