Skip to content

Commit

Permalink
ACP-77: Implement Warp message signing (#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Nov 13, 2024
1 parent 40eac34 commit 6050f16
Show file tree
Hide file tree
Showing 21 changed files with 2,237 additions and 8 deletions.
2 changes: 2 additions & 0 deletions network/p2p/acp118/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
"github.com/ava-labs/avalanchego/vms/platformvm/warp"
)

const HandlerID = p2p.SignatureRequestHandlerID

var _ p2p.Handler = (*Handler)(nil)

// Verifier verifies that a warp message should be signed
Expand Down
277 changes: 277 additions & 0 deletions proto/pb/platformvm/platformvm.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions proto/platformvm/platformvm.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";

package platformvm;

option go_package = "github.com/ava-labs/avalanchego/proto/pb/platformvm";

message SubnetValidatorRegistrationJustification {
oneof preimage {
// This should be set to obtain an attestation that a validator specified in
// a ConvertSubnetTx has been removed from the validator set.
SubnetIDIndex convert_subnet_tx_data = 1;
// This should be set to a RegisterSubnetValidatorMessage to obtain an
// attestation that a validator is not currently registered and can never be
// registered. This can be because the validator was successfully added and
// then later removed, or because the validator was never added and the
// registration expired.
bytes register_subnet_validator_message = 2;
}
}

message SubnetIDIndex {
bytes subnet_id = 1;
uint32 index = 2;
}
Loading

0 comments on commit 6050f16

Please sign in to comment.