目录
David Reis

Feature/update python, libs, protobufs and fix CA 1.5.15 header authentication (#199)

  • fix: docker lib bumb and test fixes for fabric 1.4.6

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: check environment scripts

Signed-off-by: David Reis davidfdr@gmail.com

  • Update auth header token for CA

Signed-off-by: Muthu muthu.sundaravadivel@in.ibm.com

  • fix: pytho 3.12, regen protobufs and other python libs

Signed-off-by: David Reis davidfdr@gmail.com

  • Updated the method

Signed-off-by: Muthu muthu.sundaravadivel@in.ibm.com

  • Update the Header

Signed-off-by: Muthu muthu.sundaravadivel@in.ibm.com

  • reade.md

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: debug information

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: update full path parameter for auth

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: debu

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: update string_to_sign

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: update string_to_sign

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: update string_to_sign

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: update string_to_sign

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: added full parh to generateAuthToken method

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: added full parh to generateAuthToken method - b64encode fullpath

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: debug

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: debug 2

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: debug 3

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: debug 4

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: debug 5

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: remove host from fullpath string

Signed-off-by: David Reis davidfdr@gmail.com

  • fix: genCRL sent path

Signed-off-by: David Reis davidfdr@gmail.com

  • feature: flake8 test warnings

Signed-off-by: David Reis davidfdr@gmail.com

  • feat: testing with CA version 1.5.15

Signed-off-by: David Reis davidfdr@gmail.com


Signed-off-by: David Reis davidfdr@gmail.com Signed-off-by: Muthu muthu.sundaravadivel@in.ibm.com Co-authored-by: David Reis david@gmail.com Co-authored-by: Muthu muthu.sundaravadivel@in.ibm.com

1年前470次提交

Fabric-SDK-Py

Fabric-SDK-Py is the Python 3.x implementation of Hyperledger Fabric SDK!

Currently, it mainly supports Fabric 1.4.x version.

pyenv instructions

  1. Follow instructions: https://github.com/pyenv/pyenv?tab=readme-ov-file#installation
  2. Install Python 3:
 pyenv install 3.12
 pyenv global 3.12
 pip3 install virtualenv

Pre-requisite

The SDK requires the Python3 and Libssl pkgs.

Run the following cmd to install the pre-requisites if you do not have:

OS command
Ubuntu/Debian sudo apt-get install python-dev python3-dev libssl-dev
Redhat/CentOS sudo yum install python-devel python3-devel openssl-devel
MacOS brew install python python3 openssl

More details to build the crypto lib, can be found at Install Python Cryotography Lib.

Tutorial

Read the Tutorial (Source) to get familiar with the APIs. A jupyter notebook explaining the sample code can be found here.

Quick Testing

Use Virtual Env

virtualenv helps provide a clean environment, suggest to use it to test.

$ pip3 install virtualenv # install the virtualenv tool if not installed
$ make venv  # create a virtual env
$ source venv/bin/activate
$ # Do the testing here
$ deactivate  # deactive the virtual env
$ make clean # clean the temporary files

Run Integration Testing

The following command will run the testing.

$ make check # Check environment and run tests
$ make test # Only run test cases
$ tox -e py3 -- test/integration/ca_test.py  # Run specified test case

Generating Docker images

The following command will build the Docker image hyperledger/fabric-sdk-py.

$ make image

Regenerating protos

Make sure you have grpcio-tools installed (pip install grpcio-tools)

$ make proto

Change Logs

See Change Log for the commit logs. Run make changelog to update the changelog before new release.

Bug, Question and Code Contributions

Welcome for any kind of contributions, e.g., bugs, questions and documentation!

Recommend to read How to Contribution before taking action.

License

The Hyperledger Fabric-SDK-Py software uses the Apache License Version 2.0 software license.

Creative Commons License
This document is licensed under a Creative Commons Attribution 4.0 International License.

    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号