No project description provided
Project description
Weidentity-Python-SDK
Weidentity-Python-SDK
支持版本
Python3.6+
How to use
- 下载weidentity python sdk
pip install pyweidentity
- 托管模式示例
from pyweidentity.weidentityService import weidentityService
URL = "http://192.168.80.144:6001"
# WeIdentity RestService URL
weid = weidentityService(URL)
create_weid = weid.create_weidentity_did()
print(create_weid)
- 轻客户端模式示例
from pyweidentity.weidentityClient import weidentityClient
import random
URL = "http://192.168.80.144:6001"
# WeIdentity RestService URL
weid = weidentityClient(URL)
privKey = "0xc4a116fb87ae9b8b87842b0f46e1bbf71c37fdae1104fd6d3fd2041e23c8c68e"
nonce = str(random.randint(1, 999999999999999999999999999999))
create_weid = weid.create_weidentity_did(privKey, nonce)
print(create_weid)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyweidentity-2.0.0.tar.gz
(6.4 kB
view details)
File details
Details for the file pyweidentity-2.0.0.tar.gz.
File metadata
- Download URL: pyweidentity-2.0.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
851dee439a75fbb0f84f4fd65da106a8edd4115c73a5090764f542ba59cfb8f3
|
|
| MD5 |
959b3b7373f13f642524f13cef25bc9b
|
|
| BLAKE2b-256 |
1638e889795cbf5d54a9b0c3b0039e03882e8aa4fb07f8aab48364cc03237f7f
|