Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BN256G1Point

Hierarchy

  • BN256G1Point

Implements

Index

Constructors

constructor

Properties

Private g1

g1: G1

Static MARSHAL_ID

MARSHAL_ID: Buffer = Buffer.from("bn256.g1")

Methods

add

base

clone

data

  • data(): Buffer

embed

  • Parameters

    • data: Buffer
    • Optional callback: function
        • (length: number): Buffer
        • Parameters

          • length: number

          Returns Buffer

    Returns BN256G1Point

embedLen

  • embedLen(): number

equals

  • equals(p2: Point): boolean

getElement

  • getElement(): G1

marshalBinary

  • marshalBinary(): Buffer

marshalSize

  • marshalSize(): number

mul

neg

null

pair

pick

  • Parameters

    • Optional callback: function
        • (length: number): Buffer
        • Parameters

          • length: number

          Returns Buffer

    Returns BN256G1Point

set

sub

toProto

  • toProto(): Buffer

toString

  • toString(): string

unmarshalBinary

  • unmarshalBinary(buf: Buffer): void

Static hashToPoint

Generated using TypeDoc