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 explores ACP-118, a proposal to standardize Warp message signature requests in AvalancheGo so that signatures can be obtained in the same way across VMs.
This article translates, summarizes, and supplements the proposal linked below. The original Go pseudocode comments and sequence diagram labels are retained in Japanese.
I have also covered various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs:
Overview
ACP-118 proposes standardizing the AppRequest payload format used to obtain signatures for Warp messages on the Avalanche network.
At the time described in the proposal, each VM (virtual machine) implemented Warp signature requests independently.
Consequently, VMs such as SubnetEVM and Coreth had different codecs (data encoding and decoding schemes), creating a significant obstacle for relayers and applications operating across multiple VMs.
ACP-118 aims to define a standard AppRequest payload type in AvalancheGo that VMs can import directly.
This allows signature aggregation implementations to depend on AvalancheGo alone rather than on individual VMs.
As a result, Warp message signature aggregation becomes simpler, and the development effort required in cross-VM environments is substantially reduced.
Motivation
Warp messages are verified using aggregate signatures, which combine individual signatures generated by subnet validators using BLS signatures. Constructing an aggregate signature therefore requires obtaining each validator's individual signature first. However, the mechanism for obtaining those signatures differed across VMs, causing the following problems.
-
VM-specific implementations SubnetEVM and Coreth implement different signature request formats. Applications must implement different handling logic for each target VM, complicating development.
-
Friction for cross-VM applications A prominent example is the Warp message relayer (awm-relayer). It collects and aggregates signatures from validators so that the Warp message can ultimately be verified on the destination chain. However, because VMs use different codecs, the relayer requires explicit branching in its code, reducing extensibility and maintainability.
-
Obstacles to implementing other proposals (ACP-75) ACP-75 seeks to introduce an acceptance proof mechanism using Warp, but the lack of a standard specification for signature aggregation is a major obstacle to determining its feasibility.
Standardizing Warp Signature Requests in AvalancheGo therefore offers several benefits.
- Individual VMs no longer need their own implementations.
- Warp relayers and signature aggregation services can rely on a single standard interface.
- Implementation of Warp-related proposals, including ACP-75, becomes easier.
As a result, cross-chain communication and the use of Warp messages across Avalanche can become simpler and more efficient.
Specification
Goals and assumptions
ACP-118 defines common payload types for the AppRequest/AppResponse P2P messages in Avalanche, stored in app_bytes, so that signatures for Warp messages can be requested independently of the VM.
The types are defined using Protobuf and implemented in AvalancheGo so that VMs can import them at the source-code level.
By placing the standard types in AvalancheGo itself, signature aggregators and relayers can construct and decode messages using AvalancheGo alone rather than relying on VM-specific codecs.
This approach of encoding Protobuf types in app_bytes follows the same design already used for gossip-related AppRequest messages.
The Warp message here refers to the serialized bytes of an unsigned Warp message (unsignedWarp message). Because the BLS aggregate signature used during verification combines individual validator signatures, the objective is to establish a standard request format for obtaining those individual signatures first.
Protobuf type definitions
SignatureRequest
This type requests a signature for an unsigned Warp message.
The message field contains the serialized bytes of the unsigned Warp message to be signed.
The justification field contains arbitrary data that the receiving node can use to decide whether to sign.
Although justification may be unnecessary for some VM implementations, message always contains the bytes to be signed.
The VM defines the validity requirements for message and justification.
message SignatureRequest {
bytes message = 1;
bytes justification = 2;
}SignatureResponse
This is the corresponding type for the AppResponse side.
It returns the bytes of the signature produced in response to the request.
message SignatureResponse {
bytes signature = 1;
}Field reference
| Type | Field | Data type | Purpose |
|---|---|---|---|
SignatureRequest |
message | bytes | Serialized unsigned Warp message to be signed |
| justification | bytes | Arbitrary data used by the node to decide whether to sign (unnecessary for some VMs) | |
SignatureResponse |
signature | bytes | Bytes of the individual signature returned |
Handler implementation and registration
Each VM implements AppRequest/AppResponse handlers corresponding to the types above.
The AppRequest handler is registered with AvalancheGo's P2P network using standard handler ID 2.
This enables a VM-independent flow: the sender uses an AppRequest with ID 2, placing SignatureRequest in app_bytes, the receiver decodes it as SignatureRequest, generates a signature, and returns SignatureResponse in app_bytes.
Example registration and processing flow (Go pseudocode)
// 受信側(署名提供ノード)
network.RegisterAppRequestHandler(2, func(ctx context.Context, nodeID ids.NodeID, reqBytes []byte) ([]byte, error) {
var req SignatureRequest
if err := proto.Unmarshal(reqBytes, &req); err != nil {
return nil, err
}
// req.message: 未署名Warpメッセージ
// req.justification: 署名可否判断のための任意データ(VMルールで評価)
if err := vmValidateMessageAndJustification(req.Message, req.Justification); err != nil {
return nil, err
}
sig, err := signWarpMessage(req.Message) // 個別署名を生成
if err != nil {
return nil, err
}
resp := &SignatureResponse{Signature: sig}
return proto.Marshal(resp)
})Encoding and decoding flow
- The sender serializes the unsigned Warp message and places it in
SignatureRequest.message. It also setsjustificationif needed. - The sender encodes
SignatureRequestusing Protobuf and sends it over P2P asAppRequest(app_bytes=...). Handler ID 2 is specified. - The receiver decodes
app_bytesasSignatureRequestusing Protobuf and validatesmessageandjustificationaccording to VM rules. - The receiver generates a signature, places it in
SignatureResponse.signature, encodes the response using Protobuf, and sends it back viaAppResponse(app_bytes=...).
Message exchange sequence diagram
sequenceDiagram
participant R as 署名要求側
participant V as 署名提供ノード(Validator)
R->>V: AppRequest(ID=2, app_bytes=SignatureRequest)
V->>V: Protobufでデコード→VMルールで検証
V->>V: 未署名Warpメッセージに署名(個別署名生成)
V-->>R: AppResponse(app_bytes=SignatureResponse(signature))
R->>R: 署名収集・後段でBLS集約に利用
Typical use cases
SignatureRequest is primarily used to place an unsigned Warp message in message and request a signature for it.
The justification field is used only when the request needs to include supporting evidence or additional information.
1. Requesting a signature for a known Warp message
SubnetEVM/Coreth store messages sent through the on-chain WarpPrecompile and off-chain Warp messages in a database, allowing them to return signatures for requested messages.
In this case, the serialized unsigned Warp message is placed directly in message.
The receiving node can find the identical message in its database and return the corresponding signature. The justification field is unnecessary.
Key steps
- Serialize the unsigned Warp message and set
message. - Send the request using
AppRequest(ID=2). - The receiving node checks its database and returns a signature.
2. Attesting to on-chain events (e.g., BlockID)
SubnetEVM/Coreth also support providing signatures for block hashes using types such as BlockSignatureRequest{BlockID ids.ID}.
The same can be done with SignatureRequest.
Construct an unsigned Warp message containing BlockID in its payload, serialize it, and place the result in message.
If needed, include additional information in justification (for example, the BlockHeight corresponding to that BlockID).
Key steps
- Construct an unsigned Warp message containing
BlockIDin its payload. - Serialize it and place it in
message(justificationis optional). - Receive the signature and use it for subsequent verification and aggregation.
3. Confirming that an event did not occur (proof of expiration)
ACP-77 enables subnets to manage their own validator sets.
The Warp message payload contained in RegisterSubnetValidatorTx has an expiry field. Once the deadline passes, the corresponding validationID (uniquely identified by the hash of SubnetID, NodeID, StakeWeight, and expiry) becomes invalid.
The subnet must recognize that this validationID has expired and update its local validator set to remain consistent with the P-Chain.
The P-Chain is not expected to permanently store expired or invalid validationIDs.
For more on ACP-77, see the following article.
[ACP-77] Moving Validator Management to L1s
In this case, SignatureRequest is used to construct a Warp message whose signature attests to the expiration of a validationID.
Place the relevant validationID in the unsigned Warp message payload, serialize the message, and set message.
Also include the hash preimage in justification so that the P-Chain can reconstruct the expired validationID.
Key steps
- Construct an unsigned Warp message containing the target validationID in its payload.
- Serialize it and place it in
message. - Place the validationID hash preimage in
justification. - Collect the returned signatures and use them as an expiration attestation during Warp verification.
Security
The implementation of the SignatureRequest handler is left to each VM.
VM developers must therefore carefully determine which message payloads to sign.
Signing indiscriminately risks signing unintended messages. The following considerations are particularly important.
Input validation
When a handler receives message or justification, it must validate both format and content.
It must check that the decoded result has the expected type and that it contains no extraneous or invalid data.
Failing to do so may result in signing unintended data.
Preventing denial-of-service attacks against signing
AvalancheGo's P2P network incorporates rate limiting to resist denial-of-service (DoS) attacks involving large numbers of requests. VM implementations must also avoid incurring excessive computational costs when parsing payloads or generating signatures. They should minimize the resource requirements of signature request handling, accounting for attackers who send large numbers of requests in an attempt to exhaust resources.
Payload collision risks
When designing the message payload, developers must avoid collisions in which data intended for different purposes appears to have the same format.
For example, when receiving a 32-byte hash, a node risks misinterpreting what it is signing if it cannot distinguish a transaction hash from a block hash or a blockchain ID.
VM implementations must therefore clearly separate the types of payloads eligible for signing and prevent overlap or ambiguity.
Accounting for these considerations improves signing security and helps prevent attacks that misuse Warp messages.
Compatibility
This change is backward-compatible for VMs. Older nodes do not support the new message types and simply ignore those messages. Consequently, older nodes do not adversely affect the overall network's operation. Only nodes with updated implementations can use the new functionality, but the change does not conflict with or interrupt existing networks.
Reference implementation
A reference implementation based on this specification has been added to AvalancheGo. It includes the Protobuf types and the standard handler ID. The code is available in the following pull request.
Reference implementation (AvalancheGo PR #3218)
Developers can use this implementation of the proposed SignatureRequest and SignatureResponse types as a reference when incorporating the functionality into their own VMs or related services.
Conclusion
This article covered ACP-118, a proposal to standardize Warp message signature requests in AvalancheGo so that signatures can be obtained in the same way across VMs. I hope it has been helpful.
If you have questions, feel free to reach out via Twitter DM:
I also publish content on other platforms:


