Skip to content

Commit

Permalink
base64 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IkoroVictor committed Mar 16, 2017
1 parent c85232f commit 2f047d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/identity-chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,13 @@ func (t *IdentityChainCode) GetIdentity(stub shim.ChaincodeStubInterface, args [
identity.ProviderEnrollmentID = enrollmentID
identity.IdentityCode = row.Columns[1].GetString_()
identity.IdentityTypeCode = row.Columns[2].GetString_()
identity.EncryptedPayload = row.Columns[3].GetString_()
identity.EncryptedPayload = encodeBase64(row.Columns[3].GetBytes())
identity.IssuerCode = row.Columns[4].GetString_()
identity.IssuerOrganization = row.Columns[5].GetString_()
identity.EncryptedKey = row.Columns[6].GetString_()
identity.EncryptedKey = encodeBase64(row.Columns[6].GetBytes())
identity.MetaData = row.Columns[7].GetString_()
identity.IssuerVerified = row.Columns[8].GetBool()
identity.EncryptedAttachmentURI = row.Columns[9].GetString_()
identity.EncryptedAttachmentURI = encodeBase64(row.Columns[9].GetBytes())
identity.CreatedBy = row.Columns[10].GetString_()
identity.CreatedOnTxTimestamp = row.Columns[11].GetInt64()
identity.LastUpdatedBy = row.Columns[12].GetString_()
Expand Down

0 comments on commit 2f047d6

Please sign in to comment.