Wickra.Proof
0.1.2
dotnet add package Wickra.Proof --version 0.1.2
NuGet\Install-Package Wickra.Proof -Version 0.1.2
<PackageReference Include="Wickra.Proof" Version="0.1.2" />
<PackageVersion Include="Wickra.Proof" Version="0.1.2" />
<PackageReference Include="Wickra.Proof" />
paket add Wickra.Proof --version 0.1.2
#r "nuget: Wickra.Proof, 0.1.2"
#:package Wickra.Proof@0.1.2
#addin nuget:?package=Wickra.Proof&version=0.1.2
#tool nuget:?package=Wickra.Proof&version=0.1.2
Wickra Proof — C#
The deterministic Proof-of-Backtest core for .NET over the Wickra C ABI hub.
Wickra Proof folds a (spec, data)
pair into a deterministic wickra-backtest report and a canonical blake3 hash that
anyone recomputes byte-for-byte in ten languages. This package is the C# binding:
it P/Invokes the C ABI hub and exposes a stateless Prover with the same JSON
protocol as every other binding.
Install
dotnet add package Wickra.Proof
The package bundles the prebuilt native C ABI library for every supported runtime
(win-x64, win-arm64, linux-x64, linux-arm64, osx-x64, osx-arm64) under
runtimes/<rid>/native/, resolved automatically at run time.
Quick start
using Wickra.Proof;
using var prover = new Prover();
string cmd = """
{"cmd":"prove","spec":{"strategy":{...},"dataset_ref":"BTCUSDT/1h"},
"data":{"BTCUSDT":[{"time":1,"open":100,"high":101,"low":99,"close":100,"volume":1000}]}}
""";
string proof = prover.Command(cmd);
// {"engine_version":"…","inputs_hash":"…","report":…,"report_hash":"…"}
Console.WriteLine(Prover.Version());
Commands
| Command | Payload | Response |
|---|---|---|
prove |
{spec, data} |
{report, inputs_hash, report_hash, engine_version} |
verify |
{proof, spec, data} |
{ok: true, valid: bool} |
canonicalize |
{value} |
{ok: true, canonical} |
version |
— | {engine_version} |
Domain errors are reported in-band as {"ok":false,"error":"…"}.
Building from this repository (contributors)
cargo build -p wickra-proof-c --release
dotnet test bindings/csharp/WickraProof.Tests
The DllImportResolver probes the app directory, the packaged
runtimes/<rid>/native/, and the Cargo target/{release,debug}/ tree, validating
each candidate with a sentinel export so a stale library is rejected.
License
Dual-licensed under MIT or Apache-2.0, at your option.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.