def METHOD_NAME(senderIndex, recipientIndex):
    i = senderIndex
    j = recipientIndex
    A_i = pubkeyCoeffs(i)
    METHOD_NAME = ecSum(
        [ A_i[k].scalarMult(j^k) for k in [0..M] ]
    )
    return METHOD_NAME