Protobuf schema for Ulord claims and spec for unet:// URIs
Uschema is a protobuf schema that defines how claims are structured and validated in the Ulord blockchain. There is also code to construct, parse, and validate unet:// URIs.
Add git+https://github.com/UlordChain/Uschema.git#egg=unetschema
to requirements.txt
To install in development mode, run pip install -r requirements.txt; pip install -e .
from the repo directory.
There are compiled protobuf files in unetschema/schema (see the files that end in _pb2.py), so compiling fresh is not necessary for most.
- macOS: brew install protobuf
- Ubuntu: sudo apt-get install protobuf-compiler python-protobuf
protoc --proto_path=./unetschema/proto --python_out=./unetschema/schema ./unetschema/proto/*.proto