Increase Active Schema Authorization Policy Version
MOD-CS-MSG-6
Advance the active Schema Authorization Policy version for a (schema, role) pair. This activates the most recently created pending policy: its effective_from is set to now, and the previously active policy's effective_until is closed.
This operation is delegable.
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.MsgIncreaseActiveSchemaAuthorizationPolicyVersionvia Grant Operator Authorization. - A pending policy for the
(schema, role)pair — see Create a Schema Authorization Policy.
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.MsgIncreaseActiveSchemaAuthorizationPolicyVersion.
| 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 whose active version to advance: issuer or verifier | 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 increase-active-schema-authorization-policy-version \
--schema-id <schema-id> \
--role <issuer|verifier> \
--corporation <policy_address> \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --gas auto --node $NODE_RPC
Example
veranad tx cs increase-active-schema-authorization-policy-version \
--schema-id $SCHEMA_ID \
--role issuer \
--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 MsgIncreaseActiveSchemaAuthorizationPolicyVersionResponse:
message MsgIncreaseActiveSchemaAuthorizationPolicyVersionResponse {}
Confirm the change by listing SAPs for the pair and inspecting effective_from / version.
TODO: describe here