mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
16 lines
568 B
C
16 lines
568 B
C
#ifndef __ZKP_BIP340_H__
|
|
#define __ZKP_BIP340_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
int zkp_bip340_get_public_key(const uint8_t *private_key_bytes,
|
|
uint8_t *public_key_bytes);
|
|
int zkp_bip340_sign_digest(const uint8_t *private_key_bytes,
|
|
const uint8_t *digest, uint8_t *signature_bytes,
|
|
uint8_t *auxiliary_data);
|
|
int zkp_bip340_verify_digest(const uint8_t *public_key_bytes,
|
|
const uint8_t *signature_bytes,
|
|
const uint8_t *digest);
|
|
|
|
#endif
|