test/functional/test_framework/key.py
def mul(self, ps):
        """Compute a (multi) point multiplication

        ps is a list of (Jacobian tuple, scalar) pairs.
        """
        r = (0, 1, 0)
        for i in range(255, -1, -1):
            r = self.double(r)
            for (p, n) in ps:
                if ((n >> i) & 1):
                    r = self.add(r, p)
        return r
Compute a (multi) point multiplication

        ps is a list of (Jacobian tuple, scalar) pairs.
        
Compute a (multi) point multiplication
ps is a list of (Jacobian tuple, scalar) pairs.
Compute a ( multi ) point multiplication ps is a list of ( Jacobian tuple scalar ) pairs .
def mul(self, ps):
        r = (0, 1, 0)
        for i in range(255, -1, -1):
            r = self.double(r)
            for (p, n) in ps:
                if ((n >> i) & 1):
                    r = self.add(r, p)
        return r
def mul ( self , ps ) : r = ( 0 , 1 , 0 ) for i in range ( 255 , - 1 , - 1 ) : r = self . double ( r ) for ( p , n ) in ps : if ( ( n >> i ) & 1 ) : r = self . add ( r , p ) return r
Compute a (multi) point multiplication
ps is a list of (Jacobian tuple, scalar) pairs.
Compute a ( multi ) point multiplication ps is a list of ( Jacobian tuple scalar ) pairs .
"""Compute a (multi) point multiplication

        ps is a list of (Jacobian tuple, scalar) pairs.
        """
self
ps