@cashu/cashu-ts
    Preparing search index...

    Function getKeepAmounts

    • Creates a list of amounts to keep based on the proofs we have and the proofs we want to reach.

      Parameters

      • proofsWeHave: Proof[]

        Complete set of proofs stored (from current mint)

      • amountToKeep: number

        Amount to keep.

      • keys: Keys

        Keys of current keyset.

      • targetCount: number

        The target number of proofs to reach.

      Returns number[]

      An array of amounts to keep.