CanDoItAll.Ledger.Cryptography.Browser 0.1.18

dotnet add package CanDoItAll.Ledger.Cryptography.Browser --version 0.1.18
                    
NuGet\Install-Package CanDoItAll.Ledger.Cryptography.Browser -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.Cryptography.Browser" 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.Cryptography.Browser" Version="0.1.18" />
                    
Directory.Packages.props
<PackageReference Include="CanDoItAll.Ledger.Cryptography.Browser" />
                    
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.Cryptography.Browser --version 0.1.18
                    
#r "nuget: CanDoItAll.Ledger.Cryptography.Browser, 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.Cryptography.Browser@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.Cryptography.Browser&version=0.1.18
                    
Install as a Cake Addin
#tool nuget:?package=CanDoItAll.Ledger.Cryptography.Browser&version=0.1.18
                    
Install as a Cake Tool

CanDoItAll.Ledger.Cryptography.Browser

Web Crypto and IndexedDB implementations for browser-based CanDoItAll Ledger accounts.

Use this Razor Class Library in Blazor WebAssembly applications that create, import, unlock, and use locally encrypted account vaults. It implements the platform-neutral cryptography and vault contracts from CanDoItAll.Ledger.Cryptography.

Requirements

  • .NET 10
  • Blazor WebAssembly
  • A secure browser context: HTTPS in deployed environments or trusted localhost

Install

dotnet add package CanDoItAll.Ledger.Cryptography.Browser

Register

using CanDoItAll.Ledger.Cryptography.Browser;

builder.Services.AddCanDoItAllBrowserCrypto();

The registration supplies:

  • BrowserLedgerCryptoDriver and ILedgerCryptoDriver;
  • BrowserIndexedDbAccountVaultStore and IAccountVaultStore;
  • AccountVaultService.

The driver imports its JavaScript module from:

_content/CanDoItAll.Ledger.Cryptography.Browser/candoitall-ledger-crypto.js

Do not add a manual script element for this module.

Browser Storage And Security

  • IndexedDB storage is scoped to the browser origin. Changing scheme, host, or port creates a separate storage boundary.
  • Users and browsers can clear IndexedDB. Provide an encrypted export and tested restore flow; there is no automatic password or key recovery.
  • Private-key material is encrypted at rest. Vault ID, display name, address, algorithm, public key, KDF metadata, and timestamps remain plaintext. Unlocked keys are available to the running page for signing, so treat content-security policy, dependency safety, and XSS prevention as key-protection controls.
  • Browser storage is local custody, not a server-side HSM or managed key vault.
  • Never embed node API secrets or privileged signing keys in a published WASM application.

See the AccountApp reference host, base cryptography package, and project documentation.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.18 20 7/31/2026
0.1.17 32 7/30/2026