Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • G2

Index

Constructors

constructor

Properties

Private p

Static Private ELEM_SIZE

ELEM_SIZE: number = 256 / 8

Static Private MARSHAL_SIZE

MARSHAL_SIZE: number = G2.ELEM_SIZE * 4

Methods

add

  • add(a: G2, b: G2): void

clone

  • clone(): G2

equals

  • equals(o: any): boolean
  • Parameters

    • o: any

    Returns boolean

    true when both are equal, false otherwise

getPoint

isInfinity

  • isInfinity(): boolean

marshal

  • marshal(): Buffer

marshalSize

  • marshalSize(): number

neg

  • neg(a: G2): void

scalarBaseMul

  • scalarBaseMul(k: BN): void

scalarMul

  • scalarMul(a: G2, k: BN): void

setBase

  • setBase(): void

setInfinity

  • setInfinity(): void

toString

  • toString(): string

unmarshal

  • unmarshal(bytes: Buffer): void

Generated using TypeDoc