Skip to content

Operations on heterogenous matrices #1538

@s5bug

Description

@s5bug

I'm implementing an algorithm right now that operates on bilinear groups, and the pairing crate splits these into five different types of numbers.

The following operations are of importance to me:

  • G1Projective + G1AffineG1Projective
  • G2Projective + G2AffineG2Projective
  • pairing(G1Affine, G2Affine) → Gt

I want the first two to be available component-wise (i.e. suppling a custom addition function to Matrix +) and the final one to be available as a multiplication operation (i.e. supplying a custom function to Matrix *). Is there a way I can do this?

Another (family of) operation(s) I ran into needing after submitting this issue: multiplying an Matrix<G1Affine, or a Matrix<G2Affine, by a Matrix<Scalar, , for which there is G1Affine * ScalarG1Projective (likewise for G2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions