Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a PowTask.

Hierarchy

  • PowTask

Implements

Index

Constructors

  • Constructs a new PowTask.

    Parameters

    Returns PowTask

Properties

Exponent?: "aggregatorPubkey" | "scalar"

PowTask Exponent.

aggregatorPubkey?: string

PowTask aggregatorPubkey.

scalar?: number

PowTask scalar.

Methods

  • toJSON(): {}
  • Converts this PowTask to JSON.

    Returns {}

    JSON object

    • [k: string]: any
  • Creates a new PowTask instance using the specified properties.

    Parameters

    Returns PowTask

    PowTask instance

  • decode(reader: Uint8Array | Reader, length?: number): PowTask
  • Decodes a PowTask message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

    Returns PowTask

    PowTask

  • decodeDelimited(reader: Uint8Array | Reader): PowTask
  • Decodes a PowTask message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns PowTask

    PowTask

  • encode(message: IPowTask, writer?: Writer): Writer
  • Encodes the specified PowTask message. Does not implicitly verify messages.

    Parameters

    • message: IPowTask

      PowTask message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

  • encodeDelimited(message: IPowTask, writer?: Writer): Writer
  • Encodes the specified PowTask message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IPowTask

      PowTask message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

  • Creates a PowTask message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {}

      Plain object

      • [k: string]: any

    Returns PowTask

    PowTask

  • toObject(message: PowTask, options?: IConversionOptions): {}
  • Creates a plain object from a PowTask message. Also converts values to other types if specified.

    Parameters

    • message: PowTask

      PowTask

    • Optional options: IConversionOptions

    Returns {}

    Plain object

    • [k: string]: any
  • verify(message: {}): string
  • Verifies a PowTask message.

    Parameters

    • message: {}

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc