Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(examples/cbdc): fix mismatch of Fabric identities in GET and POST requests #2802

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

AndreAugusto11
Copy link
Contributor

@AndreAugusto11 AndreAugusto11 commented Oct 17, 2023

docs(examples/cbdc): fix mismatch of Fabric identities in GET, POST requests

The state keys were not being generated correctly for some reason
It was working before without code changes so my best guess is that
the Fabric ledger/SDK versions were changed and that's what tripped it
up somehow.

Fixes #2739

[skip ci]

Co-authored-by: Peter Somogyvari [email protected]

Signed-off-by: André Augusto [email protected]
Signed-off-by: Peter Somogyvari [email protected]

cc: @petermetz @Anusha-Padmanabhan

@petermetz petermetz changed the title fix(cbdc): fix mismatch of Fabric identities in GET and POST requests docs(examples/cbdc): fix mismatch of Fabric identities in GET and POST requests Oct 18, 2023
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndreAugusto11 I verified and it works. The caveat is still there that you have to manually refresh the page after having minted the tokens, but that's totally fine for a demo IMO.

FYI: I refactored the commit message and the PR title to not clutter the release notes showing this as a bug-fix in production code (it's an example so it won't make it to production)

LGTM

…equests

The state keys were not being generated correctly for some reason
It was working before without code changes so my best guess is that
the Fabric ledger/SDK versions were changed and that's what tripped it
up somehow.

Fixes hyperledger-cacti#2739

[skip ci]

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: André Augusto <[email protected]>
Signed-off-by: Peter Somogyvari <[email protected]>
@sandeepnRES sandeepnRES enabled auto-merge (rebase) October 18, 2023 04:42
@sandeepnRES sandeepnRES merged commit 43980b0 into hyperledger-cacti:main Oct 18, 2023
@AndreAugusto11 AndreAugusto11 deleted the fix-#2739 branch October 18, 2023 08:15
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Nov 30, 2023
* What I believe has been an update to the Fabric SDK has lead the application to break
due to having the Fabric identities hardcoded (for the Fabric-Ethereum ID mapping)
* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint function was changed
* This commit changes the crypto material files and reverts the workaround
in PR hyperledger-cacti#2802
* The crypto material is only used in the frontend for testing and to show information
in the frontend (e.g., requesting the balance of a specific user based on the identity)
* For the critical operations, access control is being performed by the chaincode
by using the call  in the begining of the relevant methods

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Nov 30, 2023
* What I believe has been an update to the Fabric SDK has led the application to break due to having the Fabric identities hardcoded (for the Fabric-Ethereum ID mapping)
* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint function was changed
* This commit changes the crypto material files and reverts the workaround in PR hyperledger-cacti#2802
* The crypto material is only used for testing and to show information in the frontend (e.g., requesting the balance of a specific user based on the identity)
* For critical operations, access control is being performed by the chaincode by using the call at the begining of the relevant methods
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Nov 30, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping)
* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
function was changed
* This commit changes the crypto material files and
reverts the workaround in PR hyperledger-cacti#2802
The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)
* For critical operations, access control is being performed
by the chaincode by using the call at the begining of the
relevant methods

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Dec 2, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914
AndreAugusto11 pushed a commit to AndreAugusto11/cacti that referenced this pull request Dec 2, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914
AndreAugusto11 pushed a commit to AndreAugusto11/cacti that referenced this pull request Dec 2, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Dec 2, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Dec 2, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping)
* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
function was changed
* This commit changes the crypto material files and
reverts the workaround in PR hyperledger-cacti#2802
The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)
* For critical operations, access control is being performed
by the chaincode by using the call at the begining of the
relevant methods

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Dec 3, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
AndreAugusto11 added a commit to AndreAugusto11/cacti that referenced this pull request Dec 3, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
petermetz pushed a commit to AndreAugusto11/cacti that referenced this pull request Dec 5, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
petermetz pushed a commit that referenced this pull request Dec 5, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in #2739

* An initial fix was deployed in #2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR #2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes #2914

Signed-off-by: André Augusto <[email protected]>
sandeepnRES pushed a commit to sandeepnRES/cacti that referenced this pull request Dec 21, 2023
* What I believe has been an update to the Fabric SDK
has led the application to break due to having the Fabric
identities hardcoded (for the Fabric-Ethereum ID mapping).
This was first noted in hyperledger-cacti#2739

* An initial fix was deployed in hyperledger-cacti#2802 but only the Mint
was changed, which caused other functions to be breaking
at the moment (e.g., Escrow)

* This commit changes the crypto material files and reverts
the workaround in PR hyperledger-cacti#2802

* The crypto material is only used for testing and to show
information in the frontend (e.g., requesting the balance
of a specific user based on the identity)

* For critical operations, access control is being
performed by the chaincode by using the call at the
begining of the relevant methods

Fixes hyperledger-cacti#2914

Signed-off-by: André Augusto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs(examples/cbdc): fix successful minting on chaincode results in balance 0
3 participants