Revoke a Schema Authorization Policy
MOD-CS-MSG-7
Revoke a specific Schema Authorization Policy version for a (schema, role) pair. The targeted version is marked revoked.
This operation is delegable.
Prerequisites
This is a delegable transaction executed on behalf of a Corporation. Before running it you need:
- A Corporation (
policy_address) that controls the Ecosystem owning the target schema — see Create a Corporation. - The policy funded with
uvnafor fees. - An operator granted authorization for
/verana.cs.v1.MsgRevokeSchemaAuthorizationPolicyvia Grant Operator Authorization.
Sign with --from <operator> and pass the corporation's policy_address with the --corporation flag.
Message Parameters
The on-chain message is /verana.cs.v1.MsgRevokeSchemaAuthorizationPolicy.
| Field / Flag | Description | Mandatory |
|---|---|---|
--corporation | policy_address of the Corporation | yes |
--from (operator) | Signer — operator authorized by the Corporation | yes |
--schema-id | ID of the credential schema | yes |
--role | Role of the policy: issuer or verifier | yes |
--version | Policy version number to revoke | yes |
Required Environment Variables
CORPORATION=verana1f6fyc0ptxh7padqr3hnrw6sm8wjfr93w6cgv39jwm00nd6kh08esdak22l
OPERATOR=verana1qrdyvgf74jpu5kxufg0gczz5rfv0ws646t3kw4
SCHEMA_ID=1
CHAIN_ID=vna-testnet-1
NODE_RPC=https://rpc.testnet.verana.network
Post the Message
- CLI
- Frontend
Usage
veranad tx cs revoke-schema-authorization-policy \
--schema-id <schema-id> \
--role <issuer|verifier> \
--version <version> \
--corporation <policy_address> \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --gas auto --node $NODE_RPC
Example
veranad tx cs revoke-schema-authorization-policy \
--schema-id $SCHEMA_ID \
--role issuer \
--version 1 \
--corporation $CORPORATION \
--from $OPERATOR --chain-id $CHAIN_ID --keyring-backend test --fees 750000uvna --gas auto --node $NODE_RPC
Response schema
No live SAP transaction is captured yet. The RPC returns an empty MsgRevokeSchemaAuthorizationPolicyResponse:
message MsgRevokeSchemaAuthorizationPolicyResponse {}
tip
TODO: describe here