-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACP-77: Allow xsvm to sign arbitrary warp messages (#3448)
- Loading branch information
1 parent
43d5b43
commit da949d2
Showing
2 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
|
||
package xsvm | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/ava-labs/avalanchego/network/p2p/acp118" | ||
"github.com/ava-labs/avalanchego/snow/engine/common" | ||
"github.com/ava-labs/avalanchego/vms/platformvm/warp" | ||
) | ||
|
||
var _ acp118.Verifier = (*acp118Verifier)(nil) | ||
|
||
// acp118Verifier allows signing all warp messages | ||
type acp118Verifier struct{} | ||
|
||
func (acp118Verifier) Verify(context.Context, *warp.UnsignedMessage, []byte) *common.AppError { | ||
return nil | ||
} |