Root docs
Repository viewer
Legacy docs parity surface
Back to repository viewer
Repository document
REFHE Audit Scope
refhe-audit-scope.md
Boundary
This route preserves legacy markdown access inside the Next.js surface. The raw repository file remains authoritative.
Open raw file<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
REFHE Audit Scope
This file scopes external review for the REFHE layer added to confidential payroll and bonus execution.
In Scope
configure_refhe_envelopesettle_refhe_envelopeexecute_confidential_payout_planREFHE gating pathRefheEnvelopeaccount layout- frontend and CLI operator flow consistency
- proposal-bound PDA derivation
Review Questions
- Can a payout execute with a malformed or mismatched REFHE envelope?
- Can the envelope be attached to the wrong proposal or payout plan?
- Can the operator downgrade or bypass the verifier-program requirement?
- Can a stale or unrelated ciphertext hash be used?
- Are status transitions monotonic and safe?
- Are Anchor events sufficient for operator and reviewer audit trails?
Expected Rejections
- missing REFHE settlement
- missing verifier program
- mismatched DAO, proposal, or payout plan
- invalid envelope payload
- configuration after the proposal lifecycle is already active
Runtime Evidence Needed
- create confidential proposal with REFHE fields
- verify REFHE envelope configuration tx on Devnet
- demonstrate execution rejection before settlement
- settle REFHE on Devnet
- execute confidential payout successfully after settlement