Skip to main content

Class: Group

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Group(args)

Parameters

NameType
argsObject
args.xstring | number | boolean | Field
args.ystring | number | boolean | Field

Defined in

snarky.d.ts:653

new Group(x, y)

Parameters

NameType
xstring | number | boolean | Field
ystring | number | boolean | Field

Defined in

snarky.d.ts:657

Properties

x

x: Field

Defined in

snarky.d.ts:639


y

y: Field

Defined in

snarky.d.ts:640


generator

Static generator: Group

Defined in

snarky.d.ts:662

Methods

add

add(y): Group

Parameters

NameType
yGroup

Returns

Group

Defined in

snarky.d.ts:642


assertEquals

assertEquals(y): void

Parameters

NameType
yGroup

Returns

void

Defined in

snarky.d.ts:648


equals

equals(y): Bool

Parameters

NameType
yGroup

Returns

Bool

Defined in

snarky.d.ts:649


neg

neg(): Group

Returns

Group

Defined in

snarky.d.ts:644


scale

scale(y): Group

Parameters

NameType
yScalar

Returns

Group

Defined in

snarky.d.ts:645


sub

sub(y): Group

Parameters

NameType
yGroup

Returns

Group

Defined in

snarky.d.ts:643


toJSON

toJSON(): JSONValue

Returns

JSONValue

Defined in

snarky.d.ts:651


add

Static add(x, y): Group

Parameters

NameType
xGroup
yGroup

Returns

Group

Defined in

snarky.d.ts:663


assertEqual

Static assertEqual(x, y): void

Parameters

NameType
xGroup
yGroup

Returns

void

Defined in

snarky.d.ts:669


check

Static check(g): void

Parameters

NameType
gGroup

Returns

void

Defined in

snarky.d.ts:684


equal

Static equal(x, y): Bool

Parameters

NameType
xGroup
yGroup

Returns

Bool

Defined in

snarky.d.ts:670


fromJSON

Static fromJSON(__namedParameters): null | Group

Parameters

NameType
__namedParametersObject
__namedParameters.xstring | number
__namedParameters.ystring | number

Returns

null | Group

Defined in

snarky.d.ts:677


neg

Static neg(x): Group

Parameters

NameType
xGroup

Returns

Group

Defined in

snarky.d.ts:665


ofFields

Static ofFields(fields): Group

Parameters

NameType
fieldsField[]

Returns

Group

Defined in

snarky.d.ts:673


scale

Static scale(x, y): Group

Parameters

NameType
xGroup
yScalar

Returns

Group

Defined in

snarky.d.ts:666


sizeInFields

Static sizeInFields(): number

Returns

number

Defined in

snarky.d.ts:674


sub

Static sub(x, y): Group

Parameters

NameType
xGroup
yGroup

Returns

Group

Defined in

snarky.d.ts:664


toFields

Static toFields(x): Field[]

Parameters

NameType
xGroup

Returns

Field[]

Defined in

snarky.d.ts:672


toJSON

Static toJSON(x): JSONValue

Parameters

NameType
xGroup

Returns

JSONValue

Defined in

snarky.d.ts:676