Function contentTopicToShardIndex

  • Given a string, determines which autoshard index to use for its pubsub topic. Based on the algorithm described in the RFC: https://rfc.vac.dev/spec/51//#algorithm

    Parameters

    • contentTopic: string
    • networkShards: number = 8

    Returns number

Generated using TypeDoc