I am using the GoLang
SDK to interact with a Fabric network in chaincode, but I cannot find a way to get the certificate from a transaction ID to find out who signed the transaction.
Asked
Active
Viewed 327 times
0
1 Answers
0
For client SDK, you can use QueryTransaction
as found here which returns a ProcessedTransaction
object based on the tx id. This will have information of the signer of the transaction. The object will look like this. You then use the object in this function to get a transaction envelope and finally use GetSignature
function. This wil return bytes so you got to convert to string.

Varun Agarwal
- 1,587
- 14
- 29
-
thanks you, but I just have ID of a transaction, so how to get certificate of sender – TienThanh May 13 '19 at 13:39
-
@TiếnThànhNguyễn Just updated the answer. This will work. – Varun Agarwal May 13 '19 at 14:07
-
yep, Thank you for all your help! – TienThanh May 13 '19 at 14:14