Skip to main content

No project description provided

Project description

Weidentity-Python-SDK

Weidentity-Python-SDK

支持版本

Python3.6+

How to use

  1. 下载weidentity python sdk
pip install pyweidentity
  1. 托管模式示例
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)
  1. 轻客户端模式示例
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyweidentity-1.1.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file pyweidentity-1.1.tar.gz.

File metadata

  • Download URL: pyweidentity-1.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyweidentity-1.1.tar.gz
Algorithm Hash digest
SHA256 7820b1567c250846ab2158a61cb08a7b433635554d6ad754d6e8b4f0aa951353
MD5 ecaa7470aabe0d8d667501a56c0bf2d6
BLAKE2b-256 e6653065b6e7b0c23630a3af18e640cb33aebfac8a32199fc60a19f4aab96202

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page