libtropic
C library for TROPIC01 chip

◆ lt_ed25519_sign_open()

int lt_ed25519_sign_open ( const uint8_t *  msg,
const uint16_t  msg_len,
const uint8_t *  pubkey,
const uint8_t *  rs 
)
Parameters
msgMessage to be checked
msg_lenLength of the message
pubkeySigner's public key
rsR and S part of the message's signature
Returns
int 0 if signature is valid, otherwise 1