Skip to content

Commit

Permalink
Evm requests & results
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitu33 committed Jul 25, 2023
1 parent b2f16d6 commit 0b9cf85
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions proto/abis/massa/abi/v1/abi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ message RespResult {
SubNativeAmountResult sub_native_amount_result = 55;
TransferCoinsResult transfer_coins_result = 56;
UnsafeRandomResult unsafe_random_result = 57;
VerifyEvmSigResult verify_evm_sig_result = 58;
EvmVerifySigResult evm_verify_sig_result = 58;
VerifySigResult verify_sig_result = 59;
EvmGetAddressFromPubkeyResult evm_get_address_from_pubkey_result = 60;
EvmGetPubkeyFromSignatureResult evm_get_pubkey_from_signature_result = 61;
IsAddressEoaResult is_address_eoa_result = 62;
}
}

Expand Down Expand Up @@ -501,7 +504,7 @@ message Keccak256Result {
}

// EVM signature verification request
message VerifyEvmSigRequest {
message EvmVerifySigRequest {
// Signature to verify
bytes sig = 1;
// Message to verify
Expand All @@ -511,11 +514,49 @@ message VerifyEvmSigRequest {
}

// EVM signature verification result
message VerifyEvmSigResult {
message EvmVerifySigResult {
// Verification result
bool is_verified = 1;
}

// EVM get address from public key request
message EvmGetAddressFromPubkeyRequest {
// Public key to get address from
bytes pub_key = 1;
}

// EVM get address from public key result
message EvmGetAddressFromPubkeyResult {
// Address
bytes address = 1;
}

// EVM get public key from signature request
message EvmGetPubkeyFromSignatureRequest {
// Signed hash to verify
bytes hash = 1;
// Signature to verify
bytes sig = 2;
}

// EVM get public key from signature result
message EvmGetPubkeyFromSignatureResult {
// Public key
bytes pub_key = 1;
}

// Is address EOA request
message IsAddressEoaRequest {
// Address to check
string address = 1;
}

// Is address EOA result
message IsAddressEoaResult {
// Is address EOA
bool is_eoa = 1;
}

// Blake3 hash request
message HashBlake3Request {
// Data to hash
Expand Down

0 comments on commit 0b9cf85

Please sign in to comment.