Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

transientMap in node.js and getTransient in chaincode

Can somebody explain the usage of transientMap in channel.sendTransactionProposal(request, timeout) and getTransient() in chaincode with an usecase. What is so special with data of getTransient() when compared to normal arguments

like image 637
Darshu Bc Avatar asked Apr 28 '26 05:04

Darshu Bc


1 Answers

Regular arguments are part of the endorsement proposal and therefore persisted, while transient map is not. Therefore if you would like to pass some data which you do not want to be kept in endorsement proposal you can use GetTransient API. For example if you are doing application level encryption you can pass keys and crypto material within transient map.

like image 88
Artem Barger Avatar answered Apr 30 '26 18:04

Artem Barger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!