Asi nhero-confidential
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.
install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/nhero-confidential" ~/.claude/skills/plurigrid-asi-nhero-confidential && rm -rf "$T"
manifest:
skills/nhero-confidential/SKILL.mdsource content
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 | | 0 |
| Deposit | | +1 |
| Withdraw | | -1 |
| Audit | with | 0 |
| Normalize | | 0 |
Keypairs
- Dispenser ek/dk: Encrypts supply counts per slot
- Nurse auditor ek: Verifies
via range proofremaining > threshold - Proofs:
+ConfidentialWithdraw.genSigmaProof().genRangeProof()
Module
0x7::confidential_asset via @aptos-labs/confidential-assets SDK
Parent
Part of the nhero hierarchy.