CoolrfulDARkness/moontlcp/crypto/sm2 does not have a README file
pub struct PrivateKey {
// private fields
}impl Eq for PrivateKeyfn encode_sig_der(r : Bytes, s : Bytes) -> Bytesfn key_exchange_initiator(id_a : Bytes, priv_a : PrivateKey, eph_priv_a : PrivateKey, id_b : Bytes, pub_b : PublicKey, eph_pub_b : PublicKey, klen : Int) -> KeyExchangeResult raise Sm2Errorfn key_exchange_responder(id_b : Bytes, priv_b : PrivateKey, eph_priv_b : PrivateKey, id_a : Bytes, pub_a : PublicKey, eph_pub_a : PublicKey, klen : Int) -> KeyExchangeResult raise Sm2Errorfn sign_deterministic(priv_key : PrivateKey, id : Bytes, msg : Bytes) -> (Bytes, Bytes) raise Sm2Errorfn sign_with_k(priv_key : PrivateKey, id : Bytes, msg : Bytes, k : Bytes) -> (Bytes, Bytes) raise Sm2ErrorInstall
Download zipPure MoonBit, zero-FFI, unified Chinese national standard cryptography stack: Sans-I/O GM/T 0024-2023 (TLCP 1.1) dual-certificate protocol + GB/T 38635-2020 SM9 BN256 identity-based cryptography over a shared SM3/SM4/CT core.