Options
All
  • Public
  • Public/Protected
  • All
Menu

The AttesterChain extends an Attester's creation process and functionality to on-chain compatibility.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly address

address: string

The address of the Attester's keyring pair .

Readonly keyringPair

keyringPair: KeyringPair

The keypair for the blockchain identity.

Readonly privateKey

privateKey: AttesterPrivateKey

Readonly publicKey

Methods

buildUpdateAccumulatorTX

  • buildUpdateAccumulatorTX(accumulator: Accumulator): Promise<SubmittableExtrinsic<"promise">>
  • Builds a transaction that updates the stored accumulator for the attester that will sign this transaction. The transaction must be signed and send, the accumulator will won't be updated otherwise.

    Parameters

    Returns Promise<SubmittableExtrinsic<"promise">>

    An object which can be used to submit a transaction in Blockchain.signAndSend.

createAccumulator

  • createAccumulator(): ReturnType<IAttester["createAccumulator"]>

issueAttestation

revokeAttestation

startAttestation

  • startAttestation(): ReturnType<IAttester["startAttestation"]>

Static buildFromMnemonic

Static buildFromURI

Static create

Static genKeyPair

  • genKeyPair(__namedParameters?: { keyLength: undefined | 1024 | 2048 | 4096; maxAttributes: undefined | number; validityDuration: undefined | number }): Promise<{ privateKey: AttesterPrivateKey; publicKey: AttesterPublicKey }>
  • Generates a new key pair.

    Parameters

    • Default value __namedParameters: { keyLength: undefined | 1024 | 2048 | 4096; maxAttributes: undefined | number; validityDuration: undefined | number } = {}
      • keyLength: undefined | 1024 | 2048 | 4096
      • maxAttributes: undefined | number
      • validityDuration: undefined | number

    Returns Promise<{ privateKey: AttesterPrivateKey; publicKey: AttesterPublicKey }>

    A newly generated key pair.

Static generateMnemonic

  • generateMnemonic(): string

Generated using TypeDoc