Overview
revoke_document() validates the hash format but then unconditionally returns 404 with "revoke endpoint not yet implemented". Like submit_document, it has no State<AppState> and cannot actually record a revocation anywhere.
File
contract/src/lib.rs (revoke_document)
Acceptance Criteria
Overview
revoke_document()validates the hash format but then unconditionally returns404with "revoke endpoint not yet implemented". Likesubmit_document, it has noState<AppState>and cannot actually record a revocation anywhere.File
contract/src/lib.rs(revoke_document)Acceptance Criteria
State<AppState>torevoke_document's signaturereason,revoked_by, timestamp) keyed by document hash in the cache backend, following the same patternrecord_transferuses for transfer history (key format e.g.revoke:{hash})verify_document/verify_document_by_hashshould reflect a revoked status once this lands (or a follow-up issue notes the dependency explicitly)RevokeResponse{ transaction_id, revoked_at }on success with a realtransaction_id, not a hardcoded stub