Various utility functions

Hierarchy

  • Utils

Constructors

Methods

  • Trigger anchor for a stream.

    Parameters

    • ceramic: Ceramic

      Ceramic Core instance.

    • stream: Stream

      Stream to trigger anchor on.

    Returns Promise<void>

  • Attempts to load CACAO capability from IPFS if present in protected header of commit

    Returns

    a Cacao capability object if found, else null

    Parameters

    • commit: any

      the commit to load the capability for

    • dispatcher: Dispatcher

      instance of dispatcher to load from IPFS

    Returns Promise<Cacao>

  • Return CommitData (with commit, JWS envelope, and/or anchor proof/timestamp, as applicable) for the specified CID

    Parameters

    • dispatcher: Dispatcher
    • cid: CID<unknown, number, number, Version>
    • Optional streamId: StreamID
    • Optional timestamp: number

    Returns Promise<CommitData>