migrationcc

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 2 Imported by: 0

README

migrationcc

Go Report Card Go Reference GitHub License

Go Security vulnerability scan GitHub go.mod Go version (branch) GitHub Tag

Chaincode for migration from old to new hlf

TOC

Description

Chaincode for unloading the state from the channel and ensuring data migration between hlf networks

API

Init chaincode

Initializes migration chaincode setup user information for migration process

Args:

-c '{"Args":[migrationMspID,migrationUserSKI]}'

Args:

[0] migrationMspID     - msp id for user who responsible for migration process
[1] migrationUserSKI       - SKI HLF user who responsible for migration process
Invoke requests
  • exportEnd - end of migration calculate the total hash of all keys and values during migration

    • NO Batch tx
    • Signed by: migration user with migrationMspID and migrationUserSKI
    • Args: [pageSize int32]
    • Applied changes: write hash of all keys and values to chaincode event
  • exportChunkKV - get a set of keys and values and write hash to chaincode event

    • NO Batch tx
    • Signed by: migration user with migrationMspID and migrationUserSKI
    • Args: [pageSize int32, bookmark string, onlyKeys bool]
    • Applied changes: write hash of keys and values to chaincode event
  • importChunkKV - add a set of keys and values to the state and write the hash to the chaincode event

    • NO Batch tx
    • Signed by: migration user with migrationMspID and migrationUserSKI
    • Args: [entries proto.Entries]
    • Applied changes: write keys and values to state, hash of keys and values write to chaincode event
  • commitMigrationInfo - commit info about previous hlf version

    • NO Batch tx
    • Signed by: migration user with migrationMspID and migrationUserSKI
    • Args: [migrationInfo proto.MigrationInfo]
    • Applied changes: write info about previous hlf version to chaincode event

License

Apache 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mock
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL