Skip to content

@gala-chain/chaincodeAPI


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

Source

chaincode/src/contracts/authenticate.ts:348