1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

src/wif/codec.hpp: Adding signature encoders/decoders

This commit is contained in:
Henrik Hautakoski 2023-03-25 18:15:44 +01:00
parent 171db63de4
commit abdd84f257

View file

@ -65,6 +65,20 @@ bool priv_decoder_legacy(const std::vector<unsigned char>& buf, ec_privkey_t& pr
bool priv_decoder_k1(const std::vector<unsigned char>& buf, ec_privkey_t& priv);
/**
* Signature encoders
*/
typedef void (*sig_encoder_t)(const ec_signature_t& sig, unsigned char *buf);
void sig_encoder_k1(const ec_signature_t& sig, unsigned char *buf);
/**
* Signature decoders
*/
typedef bool (*sig_decoder_t)(const std::vector<unsigned char>& buf, ec_signature_t& sig);
bool sig_decoder_k1(const std::vector<unsigned char>& buf, ec_signature_t& sig);
}} // namespace libeosio::internal
#endif /* LIBEOSIO_CODEC_H */