NextGenSoftware.OASIS.API.Providers.MidenOASIS 2.0.0

dotnet add package NextGenSoftware.OASIS.API.Providers.MidenOASIS --version 2.0.0
                    
NuGet\Install-Package NextGenSoftware.OASIS.API.Providers.MidenOASIS -Version 2.0.0
                    
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="NextGenSoftware.OASIS.API.Providers.MidenOASIS" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NextGenSoftware.OASIS.API.Providers.MidenOASIS" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NextGenSoftware.OASIS.API.Providers.MidenOASIS" />
                    
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 NextGenSoftware.OASIS.API.Providers.MidenOASIS --version 2.0.0
                    
#r "nuget: NextGenSoftware.OASIS.API.Providers.MidenOASIS, 2.0.0"
                    
#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 NextGenSoftware.OASIS.API.Providers.MidenOASIS@2.0.0
                    
#: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=NextGenSoftware.OASIS.API.Providers.MidenOASIS&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NextGenSoftware.OASIS.API.Providers.MidenOASIS&version=2.0.0
                    
Install as a Cake Tool

Miden OASIS Provider

Miden privacy provider for OASIS offering private note management, STARK proof workflows, and zkVM interactions.

Overview

This provider enables OASIS to interact with the Miden blockchain, a STARK-based L2 with private state capabilities. Built specifically for Zypherpunk Hackathon Track 4: Private Bridge Zcash ↔ Miden ($5,000 prize).

Features

  • Private Note Management: Create, manage, and nullify private notes on Miden
  • STARK Proof Generation: Generate and verify STARK proofs for private operations
  • Zcash ↔ Miden Bridge: Bi-directional private bridge operations
    • Lock on Zcash, mint on Miden
    • Lock on Miden, mint on Zcash
  • Privacy Preserved: All operations maintain privacy through STARK proofs

Configuration

Set environment variables:

  • MIDEN_API_URL: Miden API endpoint (default: https://testnet.miden.xyz)
  • MIDEN_API_KEY: API key for authentication (optional)

Usage

var midenProvider = new MidenOASIS();
await midenProvider.ActivateProviderAsync();

// Create a private note
var noteResult = await midenProvider.CreatePrivateNoteAsync(
    value: 100m,
    ownerPublicKey: "0x...",
    assetId: "ZEC"
);

// Generate STARK proof
var proofResult = await midenProvider.GenerateSTARKProofAsync(
    programHash: "bridge_program_hash",
    inputs: new { amount = 100m, source = "Zcash" },
    outputs: new { noteId = noteResult.Result.NoteId }
);

// Bridge operations
var mintResult = await midenProvider.MintOnMidenAsync(
    midenAddress: "0x...",
    amount: 100m,
    zcashTxHash: "tx_hash",
    viewingKey: "viewing_key"
);

Bridge Architecture

The provider supports bi-directional private bridges:

Zcash → Miden

  1. Lock ZEC on Zcash (shielded transaction)
  2. Generate viewing key for auditability
  3. Generate STARK proof verifying the lock
  4. Mint private note on Miden

Miden → Zcash

  1. Lock on Miden (private note)
  2. Generate STARK proof
  3. Verify proof and mint on Zcash (shielded)

Status

Provider Structure: Complete ✅ STARK Proof Support: Implemented ✅ Bridge Operations: Implemented ⏳ Testing: Pending Miden testnet access ⏳ Integration: Pending bridge manager implementation

  • MidenZcashBridgeManager.cs: Bridge manager for coordinating Zcash ↔ Miden transfers
  • ZYPherPUNK_TRACK_SPECIFIC_BRIEFS.md: Full track requirements

License

MIT

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
2.0.0 131 7/12/2026

- OASIS Omniverse Reboot and Rebrand: major ecosystem relaunch under oasisomniverse.one.
- Full implementation of all remaining provider interface stubs — no more NotImplementedExceptions.
- Security hardening: NuGet vulnerability remediation, CORS and JWT alignment.
- Improved error handling: explicit errors when provider returns null content; null guards throughout.
- Updated to align with OASIS API Core v2.0.0.
- Upgraded to .NET 10 — latest runtime with significant performance and GC improvements.
- Miscellaneous bug fixes and stability improvements.
- Improved null safety and error reporting.
- Internal refactoring to align with OASIS API Core v2.0.0 conventions.
- Many misc improvements.
- Multiple bug fixes.