• Check that the given message is valid

    Parameters

    • opts: { messageFromKey: (key: string) => Promise<SignedPost> }

      A function that returns a message given a key

    • msg: SignedPost

      The message to check

    • Optionalpath: number[]

      Used internally, for recursion

    Returns Promise<{ isOk: boolean; path: number[] }>

    The validity and the path through the list.