Skip to content

Commit

Permalink
Merge pull request #216 from xmtp/coda/signature-request-update
Browse files Browse the repository at this point in the history
Add VerifySmartContractWalletSignatureRequestSignature
  • Loading branch information
codabrink authored Oct 8, 2024
2 parents f6def10 + 3a82d25 commit 995f059
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions proto/identity/api/v1/identity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,25 @@ service IdentityApi {
}

message VerifySmartContractWalletSignaturesRequest {
repeated UnverifiedSmartContractWalletSignature signatures = 1;
repeated VerifySmartContractWalletSignatureRequestSignature signatures = 1;
}

message UnverifiedSmartContractWalletSignature {
xmtp.identity.associations.SmartContractWalletSignature scw_signature = 1;
// SHA256 hash of the signature payload
bytes hash = 5;
message VerifySmartContractWalletSignatureRequestSignature {
// CAIP-10 string
// https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md
string account_id = 1;
// Specify the block number to verify the signature against
optional uint64 block_number = 2;
// The signature bytes
bytes signature = 3;
bytes hash = 4;
}

message VerifySmartContractWalletSignaturesResponse {
message ValidationResponse {
bool is_valid = 1;
optional string error = 2;
optional uint64 block_number = 2;
optional string error = 3;
}

repeated ValidationResponse responses = 1;
Expand Down

0 comments on commit 995f059

Please sign in to comment.