Skip to content

Commit 2f047d6

Browse files
committed
base64 fix
1 parent c85232f commit 2f047d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/identity-chaincode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,13 @@ func (t *IdentityChainCode) GetIdentity(stub shim.ChaincodeStubInterface, args [
732732
identity.ProviderEnrollmentID = enrollmentID
733733
identity.IdentityCode = row.Columns[1].GetString_()
734734
identity.IdentityTypeCode = row.Columns[2].GetString_()
735-
identity.EncryptedPayload = row.Columns[3].GetString_()
735+
identity.EncryptedPayload = encodeBase64(row.Columns[3].GetBytes())
736736
identity.IssuerCode = row.Columns[4].GetString_()
737737
identity.IssuerOrganization = row.Columns[5].GetString_()
738-
identity.EncryptedKey = row.Columns[6].GetString_()
738+
identity.EncryptedKey = encodeBase64(row.Columns[6].GetBytes())
739739
identity.MetaData = row.Columns[7].GetString_()
740740
identity.IssuerVerified = row.Columns[8].GetBool()
741-
identity.EncryptedAttachmentURI = row.Columns[9].GetString_()
741+
identity.EncryptedAttachmentURI = encodeBase64(row.Columns[9].GetBytes())
742742
identity.CreatedBy = row.Columns[10].GetString_()
743743
identity.CreatedOnTxTimestamp = row.Columns[11].GetInt64()
744744
identity.LastUpdatedBy = row.Columns[12].GetString_()

0 commit comments

Comments
 (0)