Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ACP31, which proposes a mechanism for transferring Subnet ownership to a new address.

This article translates, summarizes, and supplements the material linked below. The original sequence diagram retains its Japanese labels.

I have also covered various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ACP31 proposes a mechanism that allows the current owner of a Subnet to transfer ownership to a new owner. When a Subnet is created on Avalanche’s P-Chain, an Owner is assigned to it. Under the specification at the time of the proposal, that owner could not be changed once set. ACP31 aims to make ownership transferable and improve the flexibility of Subnet operations.

Motivation

Avalanche Subnets are created through a CreateSubnetTx (Subnet creation transaction) on the P-Chain. The ownership information assigned at creation is fixed and cannot be changed under the original rules. This limits the ability to change owners during the lifecycle of a Subnet.

The need to change Subnet ownership arises in situations such as the following.

  • Key rotation From a security perspective, regularly replacing (rotating) cryptographic keys is recommended. However, fixed ownership forces operators to continue using old keys, increasing security risks.

  • Delegating operational authority When the organization or person operating a Subnet changes, or when operations are outsourced, ownership must be transferred to a new party. The original specification does not allow this, limiting operational flexibility.

  • Long-term operational management For project- or community-based Subnets, there is no guarantee that the owner will remain the same indefinitely. Situations requiring a change of ownership will eventually arise. It is important to have a mechanism in place to accommodate them.

For these reasons, transferable Subnet ownership is considered essential for both security and sustainable operations.

Specification

ACP31 defines a new transaction type, TransferSubnetOwnershipTx, through which the current Subnet owner transfers ownership to a new owner. It takes the target Subnet as input, checks the original Owner recorded in the CreateSubnetTx, verifies the submitter’s SubnetAuth (signatures or other proofs of authority to operate on the Subnet), and assigns the new Owner. This enables previously fixed ownership information to be updated securely.

Transaction format

The transaction has the following structure.

text
type TransferSubnetOwnershipTx struct {
	// Metadata, inputs and outputs
	BaseTx `serialize:"true"`
	// ID of the subnet this tx is modifying
	Subnet ids.ID `serialize:"true" json:"subnetID"`
	// Proves that the issuer has the right to remove the node from the subnet.
	SubnetAuth verify.Verifiable `serialize:"true" json:"subnetAuthorization"`
	// Who is now authorized to manage this subnet
	Owner fx.Owner `serialize:"true" json:"newOwner"`
}
Field Type Description Notes
BaseTx BaseTx Holds shared metadata, inputs, and outputs. The same base structure as other P-Chain transactions.
Subnet ids.ID Identifies the Subnet whose owner is being changed. Serialized as subnetID.
SubnetAuth verify.Verifiable Proves the submitter has authority over the Subnet. Although the code comment mentions node removal authority, this transaction uses it to verify authority against the Owner in the CreateSubnetTx.
Owner fx.Owner Contains the new ownership information. Serialized as newOwner.

Validation flow and state updates

The transaction is validated and applied to the state as follows.

  1. Receive the transaction The node receives the TransferSubnetOwnershipTx and checks the structural validity of the BaseTx and the prerequisites for fee payment.
  2. Identify the target Subnet The Subnet field contains an ids.ID. This value uniquely identifies the target Subnet. The node uses this SubnetID to look up the corresponding Subnet in its internal state data (Subnet information maintained on the P-Chain).
  3. Retrieve the existing owner The node checks the Owner stored in the CreateSubnetTx that created the target Subnet.
  4. Verify authorization (check SubnetAuth) The node verifies SubnetAuth (authorization data satisfying verify.Verifiable) against the Owner obtained in step 3. This determines whether the submitter has the current owner’s authority. If verification fails, the transaction is invalid.
  5. Apply the new owner If verification succeeds, the contents of the Owner field are applied to the state as the Subnet’s new owner.
  6. Process the fee and finalize The specified fee is consumed, and the transaction is included in a block and finalized.

Diagram: Visualizing the transaction flow

sequenceDiagram
    autonumber
    participant Client as クライアント
    participant Node as ノード(P-Chain)
    participant State as ステート

    Client->>Node: TransferSubnetOwnershipTx提出
    Node->>State: SubnetIDから対象Subnet検索
    State-->>Node: CreateSubnetTxのOwner取得
    Node->>Node: SubnetAuthをOwnerに対して検証
    alt 検証成功
        Node->>State: OwnerをnewOwnerに更新
        Node->>Node: 手数料0.001AVAX処理
        Node-->>Client: 成功(所有者更新確定)
    else 検証失敗
        Node-->>Client: 失敗(権限不正)
    end

Type ID and codec version

The transaction type has a type ID of 0x21 and a codec version of 0x00. The type ID is a constant identifying which transaction type is being used, while the codec indicates which serialization and deserialization rules govern its encoding.

Fees

The fee is 0.001AVAX. This is set at the same level as adding a SubnetValidator or Delegator. The value balances network resource consumption with economic Sybil resistance.

Important considerations

The following points must be observed under ACP31.

  1. Subnet is the unique identifier for the Subnet whose ownership is being updated.
  2. Validation must check SubnetAuth against the Owner in the CreateSubnetTx.
  3. Update Owner to the new value only after successful validation. |

Compatibility

Introducing the new TransferSubnetOwnershipTx transaction type requires a change to the Avalanche network’s execution rules. Enabling this feature therefore requires a network-wide upgrade.

Processing the new transaction before the upgrade takes effect could cause disagreement with nodes that do not support it, compromising consensus. Implementers must therefore ensure that the transaction is rejected until the upgrade is activated.

ACP31 defines only the specification for TransferSubnetOwnershipTx. To introduce it while preserving compatibility, implementations must ensure that the transaction remains invalid until the upgrade actually takes place.

Reference implementation

The implementation of this new transaction was created in AvalancheGo as pull request 2178 and subsequently merged.

However, at the time described in the proposal, the D upgrade had not yet been activated, so AvalancheGo rejected submissions of this transaction.

Conclusion

This article has covered ACP31, which proposes a mechanism for transferring Subnet ownership to a new address.

What did you think?

If you have any questions, feel free to send me a direct message on Twitter.

Twitter @cardene777

I also publish on other platforms. Feel free to explore them.

https://chaldene.net/