# ecMulGenerator

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / ecMulGenerator

# Function: ecMulGenerator()

```
function ecMulGenerator(b): JubjubPoint;
```

The Compact builtin `ecMulGenerator` function

This function multiplies the primary group generator of the embedded curve by a scalar (in multiplicative notation)

## Parameters[​](#parameters "Direct link to Parameters")

### b[​](#b "Direct link to b")

`bigint`

## Returns[​](#returns "Direct link to Returns")

[`JubjubPoint`](https://docs.midnight.network/api-reference/compact-runtime/interfaces/JubjubPoint.md)
