Table of Contents

Class ServerKeyRotationSweepPolicy

Namespace
NArk.Core.Sweeper
Assembly
NArk.Core.dll

Sweep policy that selects coins locked under a deprecated Arkade signer key whose collaborative-sweep cutoff has not yet passed (or has no cutoff).

When arkd rotates its signing key, existing VTXOs bound to the old signer must be re-enrolled under the current signer before the operator stops co-signing them. This policy surfaces those coins to the sweeper so they are collaboratively swept into a new VTXO under the current signer (regime 1 of the rotation funds model).

public class ServerKeyRotationSweepPolicy : ISweepPolicy
Inheritance
ServerKeyRotationSweepPolicy
Implements
Inherited Members

Constructors

ServerKeyRotationSweepPolicy(IClientTransport)

Sweep policy that selects coins locked under a deprecated Arkade signer key whose collaborative-sweep cutoff has not yet passed (or has no cutoff).

When arkd rotates its signing key, existing VTXOs bound to the old signer must be re-enrolled under the current signer before the operator stops co-signing them. This policy surfaces those coins to the sweeper so they are collaboratively swept into a new VTXO under the current signer (regime 1 of the rotation funds model).

public ServerKeyRotationSweepPolicy(IClientTransport clientTransport)

Parameters

clientTransport IClientTransport

Methods

SweepAsync(IEnumerable<ArkCoin>, CancellationToken)

Yields coins that should be swept from the given set.

public IAsyncEnumerable<ArkCoin> SweepAsync(IEnumerable<ArkCoin> coins, CancellationToken cancellationToken = default)

Parameters

coins IEnumerable<ArkCoin>
cancellationToken CancellationToken

Returns

IAsyncEnumerable<ArkCoin>