Skip to content
Back to skills

Nhero Confidential

ASecurity

Twisted ElGamal encrypted supply tracking on Aptos for nhero devices. ZK range proofs verify supply sufficiency without revealing counts. Nurse auditor key model. Uses @aptos-labs/confidential-assets SDK.

  • 61 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
business

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill nhero-confidential --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nhero Confidential?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nhero Confidential
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-nhero-confidential/badge)](https://www.skillsdirectory.com/skills/plurigrid-nhero-confidential)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nhero-confidential
description: Twisted ElGamal encrypted supply tracking on Aptos for nhero devices. ZK range proofs verify supply sufficiency without revealing counts. Nurse auditor key model. Uses @aptos-labs/confidential-assets SDK.
version: 0.1.0
trit: 1
color: "#16FF16"
tags: [nhero, confidential, aptos, twisted-elgamal, zk-range-proof, bulletproofs]
---

# nhero-confidential

Confidential supply tracking via Twisted ElGamal on Aptos.

## Privacy Model

| Layer | Visible | Encrypted | Never On-Chain |
|-------|---------|-----------|----------------|
| On-chain | slot letter, timestamp, addresses | supply count, dosage mg, pills remaining | medication name, patient ID, diagnosis |

## Operations

| Op | Function | Trit |
|----|----------|------|
| Register | `register(signer, token_metadata, ek)` | 0 |
| Deposit | `deposit_to(signer, token, addr, count)` | +1 |
| Withdraw | `withdraw(signer, token, 1, balance, zkrp, sigma)` | -1 |
| Audit | `confidential_transfer` with `nurse_auditor_ek` | 0 |
| Normalize | `normalize(signer, token, ...)` | 0 |

## Keypairs

- **Dispenser ek/dk**: Encrypts supply counts per slot
- **Nurse auditor ek**: Verifies `remaining > threshold` via range proof
- Proofs: `ConfidentialWithdraw.genSigmaProof()` + `.genRangeProof()`

## Module
`0x7::confidential_asset` via `@aptos-labs/confidential-assets` SDK

## Parent
Part of the [nhero](../nhero/SKILL.md) hierarchy.

Files in this skill

  • CONCOMITANT_SKILLS.md509 B
  • SKILL.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.