Skip to content

PositiveSecurity/hlf-baseToken-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hlf-baseToken-model

Description

This repository contains a TLA+ model and configuration file for model checking (with Apalache BMC) the HyperLedger Fabric BaseToken logic. The model follows the logic of the token implementation and focuses on core operations (transfers, buy/buyback, emission, rates, limits, fees). The reference implementation: https://github.com/anoideaopen/foundation/tree/main/token

Installation and Run

Apalache installation

Follow the Apalache installation guide: https://apalache-mc.org/docs/apalache/installation/index.html

Run

Bounded Model Checking:

apalache-mc check --config=BaseTokenApalache.cfg --length=5 --discard-disabled BaseToken.tla

Simulation mode:

apalache-mc simulate --config=BaseTokenApalache.cfg --length=12 --max-run=100 --discard-disabled BaseToken.tla

Publications

Article (in Russian): https://habr.com/p/993688/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages