CanDoItAll.Ledger.BusinessObjects
0.1.18
dotnet add package CanDoItAll.Ledger.BusinessObjects --version 0.1.18
NuGet\Install-Package CanDoItAll.Ledger.BusinessObjects -Version 0.1.18
<PackageReference Include="CanDoItAll.Ledger.BusinessObjects" Version="0.1.18" />
<PackageVersion Include="CanDoItAll.Ledger.BusinessObjects" Version="0.1.18" />
<PackageReference Include="CanDoItAll.Ledger.BusinessObjects" />
paket add CanDoItAll.Ledger.BusinessObjects --version 0.1.18
#r "nuget: CanDoItAll.Ledger.BusinessObjects, 0.1.18"
#:package CanDoItAll.Ledger.BusinessObjects@0.1.18
#addin nuget:?package=CanDoItAll.Ledger.BusinessObjects&version=0.1.18
#tool nuget:?package=CanDoItAll.Ledger.BusinessObjects&version=0.1.18
CanDoItAll.Ledger.BusinessObjects
Account and business-object services for applications built on CanDoItAll Ledger.
Use this package when an application needs higher-level account workflows, encrypted account backups, transaction construction and signing, typed business objects, ownership and commerce transitions, permission rules, or secure messages. A submitted transaction becomes authoritative only after a Ledger node or in-process engine accepts it.
Requirements
- .NET 10
- An
ILedgerGatewayandILedgerReadClientfor live account operations
Install
dotnet add package CanDoItAll.Ledger.BusinessObjects
Create A Business-Object Payload
using CanDoItAll.Ledger.BusinessObjects;
BusinessObjectFamilyDefinition definition =
BusinessObjectFamilyCatalog.FindOrDefault("invoice");
BusinessObjectMediaPayload payload = BusinessObjectPayloadBuilder.CreatePayload(
definition,
name: "INV-2026-001",
description: "Agent infrastructure expense",
text: "Approved hosting and model usage",
tags: "#expense #agent",
dataItems: []);
string stateJson = BusinessObjectPayloadBuilder.Serialize(payload);
Register Account Services
using CanDoItAll.Ledger.BusinessObjects;
builder.Services.AddBusinessObjectAccountLayer();
This registers account setup, vault, backup, signing, casting, and transaction
building services. It deliberately does not choose a remote or in-process
ledger. For a remote node, use
CanDoItAll.Ledger.Sdk and AddLedgerSdkWithNodeDriver(...); that composition
provides the gateway and read client.
AddBusinessObjectLedgerLayer() selects InProcessLedgerGateway. The host must
also register the complete engine, store, cryptography, clock, and policy
dependencies required by that gateway.
Server applications that need content-addressed attachments can call
AddBusinessObjectIpfsStorage(apiBaseUri, gatewayBaseUri). Do not call this
server-side registration from WebAssembly applications. Register a
browser-safe HTTP upload service or driver instead.
Security And Data Notes
- Protect account private keys and encrypted backups as sensitive material.
- Always password-protect portable account backups. An export without a password can contain unencrypted private-key material.
- The default in-memory vault store is disposable and is not a custody or recovery system.
- Transaction builders prepare signed intent; node validation and confirmation determine acceptance.
- Public business-object identity is derived from its confirmed output outpoint. Do not substitute an internal lineage key as the public ID.
See the SDK, project documentation, and AccountApp example.
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
- CanDoItAll.Ledger.Core (>= 0.1.18)
- CanDoItAll.Ledger.Cryptography (>= 0.1.18)
- CanDoItAll.Ledger.Engine (>= 0.1.18)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on CanDoItAll.Ledger.BusinessObjects:
| Package | Downloads |
|---|---|
|
CanDoItAll.Ledger.Rules.NCalc
Invariant-culture NCalc adapter for CanDoItAll Ledger account-rule expressions. |
|
|
CanDoItAll.Ledger.Sdk
Typed node client and dependency-injection integration for CanDoItAll Ledger account and transaction workflows. |
|
|
CanDoItAll.Ledger.Components
Reusable Blazor components and workspaces for ledger accounts, transactions, business objects, analytics, and node operations. |
GitHub repositories
This package is not used by any popular GitHub repositories.