UNPKG

@jmcanterafonseca-iota/anchoring-channels

Version:

Powered by IOTA Streams, Anchor Channels is an easy to be used library that allows to anchor messages to the Tangle.

23 lines (22 loc) 697 B
import { Address, Subscriber } from "@jmcanterafonseca-iota/iota_streams_wasm"; export declare class ChannelHelper { /** * Generates a new seed * @param length Seed length * * @returns The seed */ static generateSeed(length?: number): string; /** * Finds an anchorage message on the channel by going through the messages * * @param subs Subscriber * @param anchorageID The anchorage identifier * * @returns whether it has been found and the link to the anchorage on the Channel */ static findAnchorage(subs: Subscriber, anchorageID: string): Promise<{ found: boolean; anchorageLink?: Address; }>; }