Skip to content

OCRVblockchain/fabchanger

Repository files navigation

Fabchanger

Tool for easy Hyperledger Fabric network reconfiguration by committing a new configuration transaction



Reference


  1. Build Fabchanger:

    go build -o fabchanger cmd/main.go
    
  2. Generate new crypto materials

    Edit config/config.yaml

    Generate configs:

     ./fabchanger --mode generate --join org
    
  3. Create connection profile and refer to it from config/config.yaml.

  4. Run command:

    ./connectOrg.sh
    
  5. Sign configuration transaction

    Sign as admin specified in config/config.yaml:

    ./fabchanger --mode sign -f ./wrappedDelta.pb -o ./wrappedDelta.pb 
    

    Repeat this step for all orgs (change credentials in config/config.yaml and run command specified above)

    Commit tx to orderer:

    ./fabchanger --mode update -f ./wrappedDelta.pb
    



  1. Build Fabchanger:

      go build -o fabchanger cmd/main.go
    
  2. Generate new crypto materials

    Edit config/config.yaml

    Generate configs:

    ./fabchanger --mode generate --join orderer
    
  3. Create connection profile and refer to it from config/config.yaml.

  4. Run command:

    ./connectOrderer.sh
    
  5. Sign configuration transaction

    Sign as admin specified in config/config.yaml:

      ./fabchanger --mode sign -f ./wrappedDelta.pb -o ./wrappedDelta.pb 
    

    Repeat this step for all orgs (change credentials in config/config.yaml and run command specified above)

    Commit tx to orderer:

      ./fabchanger --mode update -f ./wrappedDelta.pb
    

About

Tool for Hyperledger Fabric network reconfiguration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages