github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/protocol/didexchange/didex_default.go (about) 1 // +build !ACAPyInterop 2 3 /* 4 Copyright SecureKey Technologies Inc. All Rights Reserved. 5 6 SPDX-License-Identifier: Apache-2.0 7 */ 8 9 package didexchange 10 11 import ( 12 "fmt" 13 14 "github.com/hyperledger/aries-framework-go/pkg/doc/did" 15 ) 16 17 const ( 18 doACAPyInterop = false 19 ) 20 21 // Interop: this is a stub method, that is substituted for special functionality 22 // when the ACAPyInterop flag is enabled. 23 // This can be removed when https://github.com/hyperledger/aries-cloudagent-python/issues/1048 is fixed. 24 func convertPeerToSov(doc *did.Doc) (*did.Doc, error) { 25 return doc, nil 26 } 27 28 func interopRecipientKey(doc *did.Doc) (string, error) { 29 return "", fmt.Errorf("recipientKeyAsDIDKey: invalid DID Doc service type: '%v'", doc.Service[0].Type) 30 }