Similar Items: Computing multi-scalar multiplication on memory-constrained devices