NextGenSoftware.OASIS.API.Providers.MidenOASIS
2.0.4
dotnet add package NextGenSoftware.OASIS.API.Providers.MidenOASIS --version 2.0.4
NuGet\Install-Package NextGenSoftware.OASIS.API.Providers.MidenOASIS -Version 2.0.4
<PackageReference Include="NextGenSoftware.OASIS.API.Providers.MidenOASIS" Version="2.0.4" />
<PackageVersion Include="NextGenSoftware.OASIS.API.Providers.MidenOASIS" Version="2.0.4" />
<PackageReference Include="NextGenSoftware.OASIS.API.Providers.MidenOASIS" />
paket add NextGenSoftware.OASIS.API.Providers.MidenOASIS --version 2.0.4
#r "nuget: NextGenSoftware.OASIS.API.Providers.MidenOASIS, 2.0.4"
#:package NextGenSoftware.OASIS.API.Providers.MidenOASIS@2.0.4
#addin nuget:?package=NextGenSoftware.OASIS.API.Providers.MidenOASIS&version=2.0.4
#tool nuget:?package=NextGenSoftware.OASIS.API.Providers.MidenOASIS&version=2.0.4
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
- Lock ZEC on Zcash (shielded transaction)
- Generate viewing key for auditability
- Generate STARK proof verifying the lock
- Mint private note on Miden
Miden → Zcash
- Lock on Miden (private note)
- Generate STARK proof
- 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
Related Files
MidenZcashBridgeManager.cs: Bridge manager for coordinating Zcash ↔ Miden transfersZYPherPUNK_TRACK_SPECIFIC_BRIEFS.md: Full track requirements
License
MIT
| 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
- Newtonsoft.Json (>= 13.0.3)
- NextGenSoftware.OASIS.API.Core (>= 2.0.5)
- NextGenSoftware.OASIS.Common (>= 2.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
NextGenSoftware.OASIS.API.Providers.MidenOASIS v2.0.4
Connects the OASIS to Polygon Miden -- STARK-based ZK rollup with a unique client-side proving model enabling private transactions and account abstraction at scale. Stores OASIS holons and avatars with ZK-proven privacy. Part of the OASIS HOT-Swappable Provider Architecture. Ecosystem: https://oasisomniverse.one/
What's new since v2.0.3
- Initial validated package contents and metadata for this release line.
Full changelog
https://github.com/NextGenSoftwareUK/OASIS/commits/master/Providers/Blockchain/NextGenSoftware.OASIS.API.Providers.MidenOASIS