From 43a7b1e89ce3f049327c2f27887f171740b0a908 Mon Sep 17 00:00:00 2001 From: Dennis Date: Fri, 2 Jun 2023 00:34:35 +0800 Subject: [PATCH] v1.0.1 release Fix bug --- README.md | 2 ++ mindlakesdk/keyhelper.py | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 569f404..712ee9c 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ Full doc: [https://mind-network.gitbook.io/mind-lake-sdk](https://mind-network.g * v1.0 * Initial Release +* v1.0.1 + * Fix bug ## License diff --git a/mindlakesdk/keyhelper.py b/mindlakesdk/keyhelper.py index 7c62763..ad63487 100644 --- a/mindlakesdk/keyhelper.py +++ b/mindlakesdk/keyhelper.py @@ -96,7 +96,7 @@ def prepareKeys(web3, walletAccount): else: mk = mindlakesdk.utils.genAESKey() sk = mindlakesdk.utils.genRSAKey() - skBytes = sk.exportKey('DER') + skBytes = sk.exportKey('DER', pkcs=8) skIV = mindlakesdk.utils.get_random_bytes(16) skCipher = mindlakesdk.utils.aesEncrypt(mk, skIV, skBytes) skCipher = skIV + skCipher diff --git a/pyproject.toml b/pyproject.toml index 150c184..eb19ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "mindlakesdk" -version = "v1.0.0" +version = "v1.0.1" authors = [ { name="Mind Labs", email="biz@mindnetwork.xyz" }, ]