使用区块链证书的工具
cert-schema_pastda的Python项目详细描述
[![构建状态](https://travis-ci.org/blockchain-certificates/cert-schema.svg?branch=master)(https://travis-ci.org/blockchain-certificates/cert-schema)
[![PYPI版本](https://badge.fury.io/py/cert schema.svg)(https://badge.fury.io/py/cert-schema)
证书架构
证书架构项目包含区块链证书JSON架构和JSON LD规范。
这些是[开放徽章](http://open badges.org/)模式的扩展,允许
要在区块链上注册和验证的证书内容。
cert schema python包允许根据json验证区块链证书
模式。这与根据存储的内容验证证书内容不同
在区块链上。请参阅证书验证程序项目。
JSON LD
在1.2中,我们添加了一个json-ld模式来提供语义丰富的链接数据。
[证书json ld](cert_schema/schema/1.2/context.json)
JSON模式原始
-[区块链证书json模式](cert_schema/schema/1.2/blockchain-certificate-1.2.json)
-[证书文档json模式](cert_schema/schema/1.2/certificate-document-1.2.json)
-[断言json模式](cert_schema/schema/1.2/assertion-1.2.json)
-[证书json模式](cert_schema/schema/1.2/certificate-1.2.json)
-[颁发者json模式](cert_schema/schema/1.2/issuer-1.2.json)
-[区块链收据json模式](cert_schema/schema/1.2/blockchain-receipt-1.2.json)
-[颁发者标识json模式](cert_schema/schema/1.2/issuer-id-1.2.json)
在本地运行python代码
1.确保您有一个python环境。[建议](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)
2.git克隆存储库并更改到目录
```猛击
Git克隆https://github.com/blockchain-certificates/cert-schema.git&;cd证书模式
```
3.运行证书架构安装程序
```猛击
PIP安装。
```
将包发布到pypi
-[首次信息](http://peterdowns.com/posts/first-time-with-pypi.html)
-发布脚本:`./release_package.sh`
单元测试
该项目使用tox对几个python环境进行验证。
1.确保您有一个python环境。[建议](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)
2.运行测试
```
/运行测试.sh
```
从架构编译标记
请注意,要标记的json模式不能很好地处理ref模式,因此您将
需要手动更新任何“未定义”引用。
`scripts/generate\markdown.js`从json构建标记格式的模式
联系
如有疑问,请联系[info@blockcerts.org](邮箱:info@blockcerts.org)
[![PYPI版本](https://badge.fury.io/py/cert schema.svg)(https://badge.fury.io/py/cert-schema)
证书架构
证书架构项目包含区块链证书JSON架构和JSON LD规范。
这些是[开放徽章](http://open badges.org/)模式的扩展,允许
要在区块链上注册和验证的证书内容。
cert schema python包允许根据json验证区块链证书
模式。这与根据存储的内容验证证书内容不同
在区块链上。请参阅证书验证程序项目。
JSON LD
在1.2中,我们添加了一个json-ld模式来提供语义丰富的链接数据。
[证书json ld](cert_schema/schema/1.2/context.json)
JSON模式原始
-[区块链证书json模式](cert_schema/schema/1.2/blockchain-certificate-1.2.json)
-[证书文档json模式](cert_schema/schema/1.2/certificate-document-1.2.json)
-[断言json模式](cert_schema/schema/1.2/assertion-1.2.json)
-[证书json模式](cert_schema/schema/1.2/certificate-1.2.json)
-[颁发者json模式](cert_schema/schema/1.2/issuer-1.2.json)
-[区块链收据json模式](cert_schema/schema/1.2/blockchain-receipt-1.2.json)
-[颁发者标识json模式](cert_schema/schema/1.2/issuer-id-1.2.json)
在本地运行python代码
1.确保您有一个python环境。[建议](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)
2.git克隆存储库并更改到目录
```猛击
Git克隆https://github.com/blockchain-certificates/cert-schema.git&;cd证书模式
```
3.运行证书架构安装程序
```猛击
PIP安装。
```
将包发布到pypi
-[首次信息](http://peterdowns.com/posts/first-time-with-pypi.html)
-发布脚本:`./release_package.sh`
单元测试
该项目使用tox对几个python环境进行验证。
1.确保您有一个python环境。[建议](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)
2.运行测试
```
/运行测试.sh
```
从架构编译标记
请注意,要标记的json模式不能很好地处理ref模式,因此您将
需要手动更新任何“未定义”引用。
`scripts/generate\markdown.js`从json构建标记格式的模式
联系
如有疑问,请联系[info@blockcerts.org](邮箱:info@blockcerts.org)