{"_id":"@caict-bif/bif-encryption","_rev":"5-feecf2f836d4438162f334f5c5fb7083","name":"@caict-bif/bif-encryption","dist-tags":{"latest":"1.3.0"},"versions":{"1.1.0":{"name":"@caict-bif/bif-encryption","version":"1.1.0","author":{"name":"zhangbo"},"license":"ISC","_id":"@caict-bif/bif-encryption@1.1.0","maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"dist":{"shasum":"00788bfd6f7e373dbd7398d480341072906fb2b2","tarball":"https://registry.npmjs.org/@caict-bif/bif-encryption/-/bif-encryption-1.1.0.tgz","fileCount":10,"integrity":"sha512-hd9x+XPQtjg4D2k+MFww5fa62R3yW1pxemVuctZFG5yDJkn7t1MFwpyJlRWlKDC6QOAA5B9EFpmjF4rE4RMnaQ==","signatures":[{"sig":"MEUCIB9O7dqq8x2rR6Qb8VI8Z7goWDyHIkNV5lGB2jpgDByLAiEA6gTELhI3GnmFxRRtP9PbLC7mCD0GJFHtg2DfVy2IpuU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":83918},"main":"index.js","gitHead":"574778098bd9e78ad2487f2d96f1ebd43b73229d","scripts":{"test":"node --test test/bif-encryption.test.js","capture-golden":"node test/golden.capture.js"},"_npmUser":{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"},"repository":{"url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","directories":{},"_nodeVersion":"20.20.2","dependencies":{"long":"^5.2.3","bip39":"^3.1.0","brdc-sjcl":"^1.0.9","is-type-of":"^1.4.0","json-bigint":"^1.0.0","bignumber.js":"^9.1.2","@noble/curves":"^1.9.7","@noble/hashes":"^1.8.0","brdc-sm-crypto":"^0.3.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bif-encryption_1.1.0_1786807096104_0.49274499543727046","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@caict-bif/bif-encryption","version":"1.2.0","author":{"name":"zhangbo"},"license":"ISC","_id":"@caict-bif/bif-encryption@1.2.0","maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"dist":{"shasum":"c9ef502905060f952753ef747d2978a16f3f9f0c","tarball":"https://registry.npmjs.org/@caict-bif/bif-encryption/-/bif-encryption-1.2.0.tgz","fileCount":11,"integrity":"sha512-VdYI3w/aye8N9u6p+8G+gIn2lf810s9Vob1nwrmmcoHcxDUgV8Pg5zgqRReyjOS36mDrUeZM3+u6VSodMqU8CQ==","signatures":[{"sig":"MEUCIQC/vqJ69p47RQhijuPOIx1wamY8mNHnhP0yonx/Oxvh2wIgHAKGK5AbzP+8VXbkX91GN4lW6kTie75SI/uYHoMAs4E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90689},"main":"index.js","types":"index.d.ts","gitHead":"93ef858d70de9646749e70409bb53166424afe1e","scripts":{"test":"node --test test/bif-encryption.test.js","capture-golden":"node test/golden.capture.js"},"_npmUser":{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"},"repository":{"url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","directories":{},"_nodeVersion":"20.20.2","dependencies":{"long":"^5.2.3","bip39":"^3.1.0","brdc-sjcl":"^1.0.9","is-type-of":"^1.4.0","json-bigint":"^1.0.0","bignumber.js":"^9.1.2","@noble/curves":"^1.9.7","@noble/hashes":"^1.8.0","brdc-sm-crypto":"^0.3.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bif-encryption_1.2.0_1786902176364_0.13683280913139528","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@caict-bif/bif-encryption","version":"1.2.1","author":{"name":"zhangbo"},"license":"ISC","_id":"@caict-bif/bif-encryption@1.2.1","maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"dist":{"shasum":"9b569aec453ee7049b557ea91e454be4bc12baed","tarball":"https://registry.npmjs.org/@caict-bif/bif-encryption/-/bif-encryption-1.2.1.tgz","fileCount":11,"integrity":"sha512-Muk/8rxTpMjuFkgH72AFdlURygGi5LuW1MMcFfFnxTYbWbiS5ylcCV//Z3sJyPmoISXiFvnt2Ds5EntKnwbjVQ==","signatures":[{"sig":"MEYCIQCue/KV2UgbL6ZHV0znQi+nM2sBrHpen9MbNcHDHL0WrwIhAMpKSwqLBwh5UED+AliH6nuW/SCXlhfoOE4qr6zNWJAI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90787},"main":"index.js","types":"index.d.ts","gitHead":"93ef858d70de9646749e70409bb53166424afe1e","scripts":{"test":"node --test test/bif-encryption.test.js","capture-golden":"node test/golden.capture.js"},"_npmUser":{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"},"repository":{"url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","directories":{},"_nodeVersion":"20.20.2","dependencies":{"long":"^5.2.3","bip39":"^3.1.0","brdc-sjcl":"^1.0.9","is-type-of":"^1.4.0","json-bigint":"^1.0.0","bignumber.js":"^9.1.2","@noble/curves":"^1.9.7","@noble/hashes":"^1.8.0","brdc-sm-crypto":"^0.3.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bif-encryption_1.2.1_1786902288831_0.26861027014940486","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@caict-bif/bif-encryption","version":"1.2.2","author":{"name":"zhangbo"},"license":"ISC","_id":"@caict-bif/bif-encryption@1.2.2","maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"dist":{"shasum":"06c84cbb78295dea8efa63e34b8b586314c1ddc1","tarball":"https://registry.npmjs.org/@caict-bif/bif-encryption/-/bif-encryption-1.2.2.tgz","fileCount":11,"integrity":"sha512-TdgCH/xYGaI8c3JcngiL2Hir1RynTseZ0BbjZgmqLeVsZvNPaZxlNQkqUajD/8qovzRFrxzXGCaTuV83cv9pOw==","signatures":[{"sig":"MEYCIQCXnHEoUGIE5Ka9VjARf6UFeoFvsCnRS7RXiYzn359kpgIhANdEkP4O6wQq8gVGMjho52P7DohVFW9ZRkIWtp6qAhk5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90813},"main":"index.js","types":"index.d.ts","gitHead":"93ef858d70de9646749e70409bb53166424afe1e","scripts":{"test":"node --test test/bif-encryption.test.js","capture-golden":"node test/golden.capture.js"},"_npmUser":{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"},"repository":{"url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","directories":{},"_nodeVersion":"20.20.2","dependencies":{"long":"^5.2.3","bip39":"^3.1.0","brdc-sjcl":"^1.0.9","is-type-of":"^1.4.0","json-bigint":"^1.0.0","bignumber.js":"^9.1.2","@noble/curves":"^1.9.7","@noble/hashes":"^1.8.0","brdc-sm-crypto":"^0.3.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bif-encryption_1.2.2_1786902359780_0.5302564333367457","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@caict-bif/bif-encryption","version":"1.3.0","description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","main":"index.js","types":"index.d.ts","scripts":{"capture-golden":"node test/golden.capture.js","test":"node --test test/bif-encryption.test.js"},"author":{"name":"zhangbo"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git"},"publishConfig":{"access":"public"},"dependencies":{"@noble/curves":"^1.9.7","@noble/hashes":"^1.8.0","bignumber.js":"^9.1.2","bip39":"^3.1.0","brdc-sjcl":"^1.0.9","brdc-sm-crypto":"^0.3.7","is-type-of":"^1.4.0","json-bigint":"^1.0.0","long":"^5.2.3"},"_id":"@caict-bif/bif-encryption@1.3.0","gitHead":"ba0f9ab3565227ef637298a838f98e386dff3e29","bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-7+UI6CylJ7jCU0nRAlZpESqDlsC5njP0vhDEsulIZl7xclshUNzbS3A31HETN+oamx5zi4SEZBCyoBRnDdfjeg==","shasum":"5195deb60aa1715084f8897953d0a7cdc11ac33d","tarball":"https://registry.npmjs.org/@caict-bif/bif-encryption/-/bif-encryption-1.3.0.tgz","fileCount":11,"unpackedSize":101244,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDVcaabYnJFwAbAjBMpunEllvZfyR8xirrGqxGKkRY3JAiAEZPUme1TkoxMSchDwERlnhclcCq1h4X7UIsWZzDVFFQ=="}]},"_npmUser":{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"},"directories":{},"maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bif-encryption_1.3.0_1786955286512_0.3713116426431775"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T15:18:15.978Z","modified":"2026-08-17T08:28:06.896Z","1.1.0":"2026-08-15T15:18:16.245Z","1.2.0":"2026-08-16T17:42:56.494Z","1.2.1":"2026-08-16T17:44:48.975Z","1.2.2":"2026-08-16T17:45:59.930Z","1.3.0":"2026-08-17T08:28:06.658Z"},"bugs":{"url":"https://github.com/caict-4iot-dev/bop-typescript-sdk/issues"},"author":{"name":"zhangbo"},"license":"ISC","homepage":"https://github.com/caict-4iot-dev/bop-typescript-sdk#readme","repository":{"type":"git","url":"git+https://github.com/caict-4iot-dev/bop-typescript-sdk.git"},"description":"星火链 BIF 密钥生成、HD 派生、签名与 keystore 加密工具库","maintainers":[{"name":"zhangbo3","email":"zhangbo3@caict.ac.cn"}],"readme":"# 基础包\r\n\r\n该工具包主要用于加密以及解密的，index中封装的是相对应的方法\r\n\r\n## node版本\r\n\r\nv20.0.0\r\n\r\n## 主要功能：\r\n\r\n一、**生成公私钥地址**\r\n\r\n| **Ed25519算法生成** | **getBidAndKeyPair()**      |\r\n| ------------------- | --------------------------- |\r\n| **SM2算法生成**     | **getBidAndKeyPairBySM2()** |\r\n\r\n二、**私钥对象使用**\r\n\r\n| **签名方式构造**       | **privateKeyManager()**      |\r\n| ---------------------- | ---------------------------- |\r\n| **私钥构造**           | **privateKeyManagerByKey()** |\r\n| **根据私钥获取公钥**   | **getEncPublicKey()**        |\r\n| **原生私钥转星火私钥** | **getEncPrivateKeyByRaw()**  |\r\n| **原生公钥转星火公钥** | **getEncPublicKeyByRaw()**   |\r\n| **签名**               | **sign()**                   |\r\n\r\n三、**公钥对象使用**\r\n\r\n| **构造对象** | **publicKeyManager()** |\r\n| ------------ | ---------------------- |\r\n| **验签**     | **verify()**           |\r\n\r\n四、**密钥存储器**\r\n\r\n| **生成密钥存储器** | **generateKeyStore()** |\r\n| ------------------ | ---------------------- |\r\n| **解析密钥存储器** | **decipherKeyStore()** |\r\n\r\n五、助记词\r\n\r\n| **生成助记词** | **generateMnemonicCode()** |\r\n| -------------- | -------------------------- |\r\n\r\n","readmeFilename":"README.md"}