@gala-chain/chaincode ∙ API
API > authenticateAsOriginChaincode
Function: authenticateAsOriginChaincode()
authenticateAsOriginChaincode(
ctx,dto,chaincode):Promise\<AuthenticateResult>
Authenticate as chaincode on the basis of the chaincodeId from the signed proposal. This is a reliable way to authenticate as chaincode, because the signed proposal is passed by a peer to the chaincode and can't be faked.
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
▪ chaincode: string