Cashu-TS - v4.5.1
    Preparing search index...

    Interface OutputDataCreator

    Injectable output-construction strategy used by Wallet.

    The canonical and maintained implementation is the Noble Curves based default exposed through OutputData.create*() and adapted by DefaultOutputDataCreator. This interface provides an escape hatch for runtime-specific needs, but compatibility and maintenance outside the default implementation are the integrator's responsibility.

    interface OutputDataCreator {
        createDeterministicData(
            amount: AmountLike,
            seed: Uint8Array,
            counter: number,
            keyset: HasKeysetKeys,
            customSplit?: AmountLike[],
        ): OutputDataLike[];
        createP2PKData(
            p2pk: P2PKOptions,
            amount: AmountLike,
            keyset: HasKeysetKeys,
            customSplit?: AmountLike[],
        ): OutputDataLike[];
        createRandomData(
            amount: AmountLike,
            keyset: HasKeysetKeys,
            customSplit?: AmountLike[],
        ): OutputDataLike[];
        createSingleDeterministicData(
            amount: AmountLike,
            seed: Uint8Array,
            counter: number,
            keysetId: string,
        ): OutputDataLike;
        createSingleP2PKData(
            p2pk: P2PKOptions,
            amount: AmountLike,
            keysetId: string,
        ): OutputDataLike;
        createSingleRandomData(
            amount: AmountLike,
            keysetId: string,
        ): OutputDataLike;
    }
    Index

    Methods