CanDoItAll.Ledger.Core 0.1.18

dotnet add package CanDoItAll.Ledger.Core --version 0.1.18
                    
NuGet\Install-Package CanDoItAll.Ledger.Core -Version 0.1.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CanDoItAll.Ledger.Core" Version="0.1.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CanDoItAll.Ledger.Core" Version="0.1.18" />
                    
Directory.Packages.props
<PackageReference Include="CanDoItAll.Ledger.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CanDoItAll.Ledger.Core --version 0.1.18
                    
#r "nuget: CanDoItAll.Ledger.Core, 0.1.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CanDoItAll.Ledger.Core@0.1.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CanDoItAll.Ledger.Core&version=0.1.18
                    
Install as a Cake Addin
#tool nuget:?package=CanDoItAll.Ledger.Core&version=0.1.18
                    
Install as a Cake Tool

CanDoItAll.Ledger.Core

Protocol contracts and value types for auditable CanDoItAll ledgers.

This is the dependency-light foundation for accounts, addresses, amounts, tokens, UTXOs, transactions, signatures, validation results, chain state, and storage abstractions. Choose it when implementing a driver, store, validator, or integration that needs the Ledger wire and domain contracts without a host or persistence provider.

Requirements

  • .NET 10

Install

dotnet add package CanDoItAll.Ledger.Core

No dependency-injection registration is required.

Validate External Values

using CanDoItAll.Ledger.Core;

static Amount ValidateExpense(decimal value)
{
    Amount amount = Amount.FromDecimal(value);
    amount.EnsureNonNegative(nameof(value));
    return amount;
}

static Address ParseAddress(string text) =>
    Address.TryParse(text, out Address address)
        ? address
        : throw new FormatException("Invalid CanDoItAll Ledger address.");

Value-object constructors are intentionally lightweight and don't universally validate protocol input. Parse or explicitly validate values received from users, files, databases, or networks.

Main Contracts

  • LedgerTransaction, TransactionInput, and TransactionOutput
  • LedgerId, Address, TxId, OutPoint, Amount, and TokenId
  • ILedgerStore and ILedgerConfirmationStore
  • hashing, canonicalization, signature, clock, and admin-signer abstractions
  • ValidationResult, ValidationError, and transaction submission results

Compatibility Notes

  • Public contract changes can affect JSON payloads, transaction hashes, signatures, persistence, and node interoperability.
  • A public BusinessObjectId is derived from the confirmed output outpoint. BusinessObjectLineageKey is internal protocol correlation state; the two identities are not interchangeable.
  • Use the canonicalizer and hasher from CanDoItAll.Ledger.Cryptography for transaction IDs. Do not hash arbitrary JSON serialization.
  • Storage implementations must preserve ledger, scenario, outpoint, and confirmation semantics defined by these contracts.

See the runtime architecture and full source.

This package is part of the CanDoItAll ecosystem and uses the repository's MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on CanDoItAll.Ledger.Core:

Package Downloads
CanDoItAll.Ledger.Cryptography

Canonical hashing, address derivation, signatures, key vaults, and platform-neutral crypto drivers for CanDoItAll Ledger.

CanDoItAll.Ledger.Engine

Deterministic validation and execution pipeline for CanDoItAll Ledger transactions.

CanDoItAll.Ledger.BusinessObjects

Account, business-object, rule, commerce, secure-messaging, and transaction-building services for CanDoItAll Ledger.

CanDoItAll.Ledger.Persistence.EFCore

Provider-neutral EF Core stores, history, projections, snapshots, and schema contracts for CanDoItAll Ledger.

CanDoItAll.Ledger.Storage.InMemory

Thread-safe in-memory ledger store for tests and disposable single-process development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.18 22 7/31/2026
0.1.17 50 7/30/2026