安装库:npm install sm-crypto// 使用sm-crypto库constsm2=require('sm-crypto').sm2;// SM2公钥// #SM2公钥通常以"04"开头,表示未压缩格式(包含完整的x和y坐标)constpublicKey="0493C2A3