Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GfP

Index

Constructors

constructor

Properties

Private v

v: BN

Static Private ELEM_SIZE

ELEM_SIZE: number = 256 / 8

Methods

add

compareTo

  • compareTo(o: any): 0 | -1 | 1
  • Parameters

    • o: any

    Returns 0 | -1 | 1

    -1 when o is greater, 1 when smaller and 0 when equal

equals

  • equals(o: any): boolean
  • Parameters

    • o: any

    Returns boolean

    true when equal, false otherwise

getValue

  • getValue(): BN

invmod

  • invmod(p: BN): GfP

isOne

  • isOne(): boolean

isZero

  • isZero(): boolean

mod

  • mod(p: BN): GfP

mul

negate

  • negate(): GfP

pow

  • pow(k: BN): GfP

shiftLeft

  • shiftLeft(k: number): GfP

signum

  • signum(): -1 | 0 | 1
  • Returns -1 | 0 | 1

    -1 for a negative, 1 for a positive and 0 for zero

sqr

sub

toBytes

  • toBytes(): Buffer

toHex

  • toHex(): string

toString

  • toString(): string

Generated using TypeDoc