• A quick helper to generate a v0 CID containing a readable string, for easy testing & debugging.

    If an argument is provided, it will be inserted in the string and padded with X characters to make it a valid CID. The string must be Base58btc, so must be alphanumeric minus the Il0O characters.

    If no argument is provided, a simple process-unique CID will be created, containing "mockXipfsXcid" followed by an incrementing numeric id (using A instead of 0, which is not valid base58btc). This is not globally unique like a UUID, but is intended to provide easy debugging when tracing ids in a test run or similar.

    Parameters

    • value: string = ...

    Returns string

Generated using TypeDoc