Skip to content

Transaction failure only when i am using AES GCM ciphertext (NodeJs) #2623

Answered by yacovm
eduhenrique asked this question in Q&A
Discussion options

You must be logged in to vote

What is the endorsement policy? Does it require at least 2 peers? (in example, org1 and org2)?
Notice that you set a random IV:

let iv = cryptoImported.randomBytes(12);

This would make your ciphertext random.
You can try sending the IV as a chaincode parameter, since the IV is not secret (only the key is).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eduhenrique
Comment options

Answer selected by eduhenrique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants