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
<PackageReference Include="CanDoItAll.Ledger.Core" Version="0.1.18" />
<PackageVersion Include="CanDoItAll.Ledger.Core" Version="0.1.18" />
<PackageReference Include="CanDoItAll.Ledger.Core" />
paket add CanDoItAll.Ledger.Core --version 0.1.18
#r "nuget: CanDoItAll.Ledger.Core, 0.1.18"
#:package CanDoItAll.Ledger.Core@0.1.18
#addin nuget:?package=CanDoItAll.Ledger.Core&version=0.1.18
#tool nuget:?package=CanDoItAll.Ledger.Core&version=0.1.18
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, andTransactionOutputLedgerId,Address,TxId,OutPoint,Amount, andTokenIdILedgerStoreandILedgerConfirmationStore- 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
BusinessObjectIdis derived from the confirmed output outpoint.BusinessObjectLineageKeyis internal protocol correlation state; the two identities are not interchangeable. - Use the canonicalizer and hasher from
CanDoItAll.Ledger.Cryptographyfor 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 | Versions 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. |
-
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.