Skip to content

vcoolish/ba-permissioned-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ba-permissioned-token

ERC20 Token implementation on Hyperledger Fabric

steps to start network and application

install prereqs, composer, fabric etc. Assuming to use HLFV12 with composer v0.20.5+

run scripts: /fabric-dev-servers/startFabric.sh

/fabric-dev-servers/createPeerAdminCard.sh

run commands: in bna folder bna folder - is project folder ?

mkdir ./dist && composer archive create --sourceType dir --sourceName . -a ./dist/[email protected]

composer network install -a ./dist/[email protected] -c PeerAdmin@hlfv1

composer network start --networkName ba_token --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file token-admin.card

composer card import --file token-admin.card

composer-rest-server -c admin@ba_token -a false

Create Participant

composer participant add -c admin@ba_token -d '{"$class":"org.ba_token.ba.TokenHolder","participantId":"tokenHolder1", "balance":"0", "participantInfo":{"$class":"org.ba_token.ba.ParticipantInfo","firstName":"Jon","lastName":"Smith"}}'

About

ERC20 Token implementation on Hyperledger Fabric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published