DataProofsDotnet.Legacy
1.5.0
Prefix Reserved
dotnet add package DataProofsDotnet.Legacy --version 1.5.0
NuGet\Install-Package DataProofsDotnet.Legacy -Version 1.5.0
<PackageReference Include="DataProofsDotnet.Legacy" Version="1.5.0" />
<PackageVersion Include="DataProofsDotnet.Legacy" Version="1.5.0" />
<PackageReference Include="DataProofsDotnet.Legacy" />
paket add DataProofsDotnet.Legacy --version 1.5.0
#r "nuget: DataProofsDotnet.Legacy, 1.5.0"
#:package DataProofsDotnet.Legacy@1.5.0
#addin nuget:?package=DataProofsDotnet.Legacy&version=1.5.0
#tool nuget:?package=DataProofsDotnet.Legacy&version=1.5.0
dataproofs-dotnet
Securing mechanisms for documents and credentials in .NET — the single home for both proof families defined by the W3C and IETF securing-mechanism landscape.
| Package | What it gives you |
|---|---|
DataProofsDotnet.Core |
W3C VC Data Integrity 1.0: proof model, add/verify pipeline, cryptosuite registry, JCS suites (eddsa-jcs-2022, ecdsa-jcs-2019), verification-method resolver abstraction |
DataProofsDotnet.Jose |
JWS, JWE, JWT, JWK; SD-JWT (RFC 9901) with Key Binding; SD-JWT VC; VC-JOSE-COSE (JOSE half) |
DataProofsDotnet.Cose |
COSE_Sign1 (RFC 9052), CWT (RFC 8392), VC-JOSE-COSE (COSE half) |
DataProofsDotnet.Rdfc |
JSON-LD / RDFC-1.0 canonicalization, offline-default document loader, RDFC suites (eddsa-rdfc-2022, ecdsa-rdfc-2019), bbs-2023 selective disclosure |
DataProofsDotnet.Legacy |
Pre–Data-Integrity Linked-Data-Signature suites (Ed25519Signature2020, EcdsaSecp256r1Signature2019), JCS + RDFC variants — opt-in, for interop with existing corpora only |
DataProofsDotnet.Extensions.DependencyInjection |
AddDataProofs(...) composition |
All cryptography routes through NetCrypto; all
multiformats (multibase, multicodec, Multikey) and JCS through
NetCid. Keys held in a NetCrypto IKeyStore are never
exported — signing accepts an ISigner or key-store alias, and JWE ECDH key agreement accepts an
opaque IEcdhKey, never raw private bytes.
Getting started
git clone https://github.com/moisesja/dataproofs-dotnet.git
cd dataproofs-dotnet
dotnet build DataProofsDotnet.sln
dotnet test DataProofsDotnet.sln
Runnable, narrated examples for every feature live under samples/ — each doubles as
a CI smoke test. Start with samples/README.md.
RDFC canonicalization fails closed on data loss
JSON-LD processing drops what it cannot turn into RDF, and whatever it drops is not signed. So the
RDFC suites (eddsa-rdfc-2022, ecdsa-rdfc-2019, bbs-2023, and the Legacy RDFC variant) refuse
such input instead of signing less than the document says (VC Data Integrity 1.0 §2.4.3):
- Creating a proof throws
ProofGenerationExceptionwith an innerJsonLdDataLossException. - Verification fails with
DATA_LOSS_DETECTION_ERROR.
Typical causes:
- A term no
@contextdefines. credentials/v2 has no@vocab. Define your terms, or listhttps://www.w3.org/ns/credentials/undefined-terms/v2last, as VCDM 2.0 §5.2 requires. The offline loader bundles that context. - Proof terms no
@contextdefines. A credentials/v1 document also needshttps://w3id.org/security/data-integrity/v2. The Legacy RDFC variant needshttps://w3id.org/security/suites/ed25519-2020/v1. Both are bundled. - An IRI that is not well formed. Examples:
?filter[id]=1, a second#, a space, a relative IRI. - An IRI the canonical form would respell. Examples:
/a/../b,%41,HTTPS://HOST,:443. Relative IRIs resolved against an@baseare respelled too, so they are refused. - Distinct IRIs dotNetRDF treats as one. Example:
https://hostnext tohttps://host/. Their statements would merge.
Accepted input canonicalizes to the same bytes as before. See FR-9 in the PRD for the full rule.
Native AOT and trimming
All six packages declare IsAotCompatible: they build with zero trim, single-file and AOT analyzer
warnings, and every System.Text.Json (de)serialization uses source-generated metadata, so they work in
trimmed and native-AOT applications and in .NET 10 file-based apps. CI job ac-12 runs
tasks/aot-smoke, which exercises every package, under JIT, with
reflection-based serialization disabled, as a file-based app and as a native-AOT binary, and requires
byte-identical output from all four. As a consumer:
DataProofsJsonOptions.Defaultserializes the library's own types through source-generated metadata in every host. For your types it falls back to reflection only where the host enables it. In a trimmed or AOT application, or any project withPublishAot, register them in your ownJsonSerializerContext.DataIntegrityProofcan be listed in your own context directly ([JsonSerializable(typeof(DataIntegrityProof))]); itspreviousProofconverter is public for that reason.- Publishing
Rdfc,Legacyor the DI package with native AOT surfaces warnings from Newtonsoft.Json, dotNetRdf.Core's dependency, fordynamicsupport the RDFC path never reaches (IL2104/IL3053). UnderTreatWarningsAsErrorsthey fail the publish; to keep them visible but not fatal, add<WarningsNotAsErrors>$(WarningsNotAsErrors);IL2104;IL3053</WarningsNotAsErrors>. That makes every dependency's collapsed trim/AOT warnings non-fatal, not only Newtonsoft.Json's, so check that eachIL2104/IL3053in your publish log namesNewtonsoft.Jsonand nothing else. Core, Jose and Cose produce no IL warnings.
Design documents
dataproofs-concept.md— vision and decisions log (binding)dataproofs-prd.md— requirements; the main source of truthCONTRIBUTING.md·SECURITY.md·CHANGELOG.md
License
Apache-2.0. See 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
- DataProofsDotnet.Core (>= 1.5.0)
- DataProofsDotnet.Rdfc (>= 1.5.0)
- NetCid (>= 1.6.0)
- NetCrypto (>= 1.7.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DataProofsDotnet.Legacy:
| Package | Downloads |
|---|---|
|
ZcapLd.Core
.NET implementation of W3C ZCAP-LD for creating, delegating, and verifying authorization capabilities. |
GitHub repositories
This package is not used by any popular GitHub repositories.