Skip to main content

secp256k1Add

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.20.0


@midnight-ntwrk/compact-runtime / secp256k1Add

Function: secp256k1Add()

function secp256k1Add(a, b): Secp256k1Point;

Internal

The Compact builtin ecAdd function for secp256k1 points.

This function adds two elliptic curve points. The points are assumed to be valid, points passed from compiler-generated code are always valid ones.

Parameters​

a​

Secp256k1Point

b​

Secp256k1Point

Returns​

Secp256k1Point