This project is adopted from the libra-1.0.1 (https://github.com/libra/libra) to publish modules and run arbitrary transaction script as the default setting. It primarily includes a custom rust package to test custom Libra modules with examples of modules and scripts that builds a credential verification application in libra blockchain.
After starting a Libra network, the bbchain-test
package present under testsuite/bbchain-test can be used to publish modules, scripts and run performance test in your libra network. The bbchain testsuite can be triggered using:
cargo run -p bbchain-test
This testsuite hosts modules and scripts for credential issuance/verification under the testsuite/bbchain-test/src/
directory
Custom modules created for credential issuance and verification can be found under testsuite/bbchain-test/src/modules/move. Here exists three different modules
- Proofs : This module consists of Libra resources and procedures that helps in credential issuance/verification
- EarmarkedProofs : This module consists of Libra resources and procedures that works as proofs for issuer/owners/holders in the process of credential registration, verification and issuance
- Issuer: This module consists of Libra resources and procedures that allows issuer instantiation with their resources.
Transaction scripts are included under testsuite/bbchain-test/src/modules/scripts and are seperated into directories representing each user group that perform actions through the deployed modules.
Please refer to https://github.com/pariweshsubedi/libra-kubernetes-document-verification
The bbchain-test
package can be modified to publish any custom modules/scripts by defining path to their source and dependencies.