GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tuhoag/promark: A zero-knowledge and transparent proximity marketing platform using Hyperledger Fabric.

BranchesTags
Open more actions menu

Latest commit

 

History

230 Commits
230 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
config
config
 
 
docker
docker
 
 
exp_data
exp_data
 
 
scripts
scripts
 
 
src
src
 
 
tools
tools
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
analyse.md
analyse.md
 
 
docker.py
docker.py
 
 
main.sh
main.sh
 
 
settings.sh
settings.sh
 
 
test.go
test.go
 
 

Repository files navigation

ProMark: Privacy and Transparency-Aware Proximity Advertising Platform

Installation

  • Docker@3: https://docs.docker.com/get-docker/
  • [email protected]: https://docs.docker.com/compose/install/
  • [email protected]: https://www.python.org/downloads/
  • node.js: https://nodejs.org/en/download/
  • [email protected]: https://go.dev/doc/install
  • Hyperledger [email protected]: This project includes the binaries of Hyperledger [email protected] in the bin folder. If you don't want to use them, feel free to download them from the official Hyperledger Fabric Samples.

Structure

This project includes the following folders & files:

  • bin: Hyperledger Fabric binaries.
  • config: configurations of Hyperleder Fabric network (core.yaml, configtx.yaml) and digital certificates (crypto-config.yaml). network folder contains the settings of various network architecture.
  • docker: docker images for ProMark peers, services (e.g., crypto, log, prometheus), and templates used to generate docker-compose files for various network architecture.
  • exp_data: experimental results and figures visualizing the results.
  • scripts: base contains scripts to interact with Hyperledger Fabric binaries. The scripts can be used for various Hyperledger Fabric. The remaining scripts in scripts use those in base to deploy ProMark.
  • services: this folder is deprecated and will be removed in the next version.
  • src: contains ProMark primary source code
    • application (Node.js): contains source codes of the client application that interact with Hyperledger Fabric chaincode (smart contract),
    • chaincodes (Go): contains ProMark chaincodes,
    • caliper (Node.js): contains experimental simulation in Caliper,
    • ext (Go): contains the crypto service,
    • verifier (Go): contains source code of peer verifiers,
    • log (Go): contains log services,
    • visualization (Python): visualizes experimental results.
  • docker.py: source code to generate docker-compose files.
  • main.sh: the main script to interact with ProMark.
  • settings.sh: all ProMark environment variables.

Run the network

All the scripts required to interact with ProMark is in main.sh. However, the simplest way to run ProMark is to restart the whole network and deploy all the chaincodes.

  • Restart the network: $./main.sh restart <N_ORGS> <N_PEERS> all, where N_ORGS and N_PEERS are the number of orgnizations per organization type and the number of peers per organization.
  • Test all chaincodes: $./main.sh test <N_ORGS> <N_PEERS> to execute the test case that creates campaigns, generates tokens and their one-time versions, and add the token transactions to the ledger.

Run the simulation

The subcommand evaluate in main.sh contains all commands used to evaluate most important chaincodes.

  • Evaluate the CreateCampaign chaincode: $./main.sh evaluate <N_ORGS> <N_PEERS> campaign create
  • Evaluate the GeneratePoC chaincode: $./main.sh evaluate <N_ORGS> <N_PEERS> proof gen
  • Evaluate the GenerateTPoC chaincode: $./main.sh evaluate <N_ORGS> <N_PEERS> proof verifytpoc
  • Evaluate the AddCampaignTokenTransaction chaincode: $./main.sh evaluate <N_ORGS> <N_PEERS> proof add

Monitoring

To make it easier to debug ProMark, I created a script to monitor logs of all peers in ProMark network: $./main.sh monitor.

Ports

We export ProMark peers' ports to make it easier to debug ProMark. There are two types of organizations: advertisers (adv) and publisher (pub) with some additional services such as CA, couchdb, verifier,... Their ports can be calcualted as follows:

  • Peer <peerId>.<orgType><orgId>.promark.com: orgBasePort + orgId * 100 + peerId * 10, where orgBasePort of advertisers is 5000 and that of publishers is 6000.
  • CouchDB of peer <peerId>.<orgType><orgId>.promark.com: Peer port + 1.
  • API of peer <peerId>.<orgType><orgId>.promark.com: Peer Port + 2.

docker.py contains source codes to calculate the ports for the docker compose file.

Citation

@ARTICLE{promark,
  author={Hoang, Anh-Tu and Carminati, Barbara and Ferrari, Elena},
  journal={IEEE Transactions on Dependable and Secure Computing}, 
  title={ProMark: Ensuring Transparency and Privacy-Awareness in Proximity Marketing Advertising Campaigns}, 
  year={2024},
  pages={1-12},
  doi={10.1109/TDSC.2024.3478049}}

About

A zero-knowledge and transparent proximity marketing platform using Hyperledger Fabric.

Topics

golanghyperledger-fabricmulti-party-computationpedersen-commitmentshell-scriptzero-knowledge-proof

Resources

Readme
Activity

Stars

1 star

Watchers

2 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.