Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • G1

Index

Constructors

constructor

Properties

Private p

Static Private ELEM_SIZE

ELEM_SIZE: number = 256 / 8

Static Private MARSHAL_SIZE

MARSHAL_SIZE: number = G1.ELEM_SIZE * 2

Methods

add

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

clone

  • clone(): G1

equals

  • equals(o: any): boolean
  • Parameters

    • o: any

    Returns boolean

    true when both are equal, false otherwise

getPoint

isInfinity

  • isInfinity(): boolean
  • Returns boolean

    true when infinity, false otherwise

marshal

  • marshal(): Buffer

marshalSize

  • marshalSize(): number

neg

  • neg(a: G1): void

scalarBaseMul

  • scalarBaseMul(k: BN): void

scalarMul

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

setBase

  • setBase(): void

setInfinity

  • setInfinity(): void

toString

  • toString(): string

unmarshal

  • unmarshal(bytes: Buffer): void

Static hashToPoint

  • hashToPoint(msg: Buffer): G1

Generated using TypeDoc