Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-15669

Add error handling

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • v2.0.0
    • fabric-crypto
    • (Please add steps to reproduce)

    Description

      func (msp *bccspmsp) getIdentityFromConf(idBytes []byte) (Identity, bccsp.Key, error) {

           // get a cert

          cert, err := msp.getCertFromPem(idBytes)

          if err != nil{

               return nil, nil, err

          }

          // get the public key in the right format

          certPubK, err := msp.bccsp.KeyImport(cert, &bccsp.X509PublicKeyImportOpts{Temporary: true})

       

          mspId, err := newIdentity(cert, certPubK, msp)

          if err != nil {

               return nil, nil, err

          }

          return mspId, certPubK, nil

      {color:#000000}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            tyanj tong yanjuan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: