Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InMemoryAnchorService

In-memory anchor service - used locally, not meant to be used in production code

Hierarchy

  • InMemoryAnchorService

Implements

  • AnchorService
  • AnchorValidator

Index

Constructors

constructor

Accessors

ceramic

  • set ceramic(ceramic: Ceramic): void

url

  • get url(): string

Methods

_failCandidate

  • _failCandidate(candidate: Candidate, message?: string): void

_groupCandidatesByStreamId

  • _groupCandidatesByStreamId(candidates: Candidate[]): Promise<Record<string, Candidate[]>>

_publishAnchorCommit

  • _publishAnchorCommit(streamId: StreamID, commit: AnchorCommit): Promise<CID>

_selectValidCandidates

anchor

  • anchor(): Promise<void>

failPendingAnchors

  • failPendingAnchors(): Promise<void>

getSupportedChains

  • getSupportedChains(): Promise<Array<string>>

init

  • init(): Promise<void>

pollForAnchorResponse

requestAnchor

validateChainInclusion

  • validateChainInclusion(proof: AnchorProof): Promise<void>