2 #include "ypc/common/crypto_prefix.h" 
    3 #include "ypc/stbox/stx_status.h" 
   10   template <
typename BytesType>
 
   11   static uint32_t check(
const BytesType &private_key, 
const BytesType &msg,
 
   15     auto ret = ecc::generate_pkey_from_skey(private_key, pkey);
 
   19     ret = ecc::verify_signature(msg, 
allowance, pkey);
 
   23   template <
typename BytesType>
 
   24   static uint32_t generate(
const BytesType &private_key, 
const BytesType &msg,
 
   26     uint32_t ret = ecc::sign_message(private_key, msg, 
allowance);