Repository navigation
Expand file tree
/
Copy pathmessage.proto
More file actions
47 lines (44 loc) · 1.68 KB
/
Copy pathmessage.proto
File metadata and controls
47 lines (44 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (c) 2023, © Circle Internet Financial, LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto3";
package circle.cctp.v1;
option go_package = "github.com/circlefin/noble-cctp/x/cctp/types";
/**
* Generic message header for all messages passing through CCTP
* The message body is dynamically-sized to support custom message body
* formats. Other fields must be fixed-size to avoid hash collisions.
*
* Padding: uintNN fields are left-padded, and bytesNN fields are right-padded.
*
* @param version the version of the message format
* @param source_domain domain of home chain
* @param destination_domain domain of destination chain
* @param nonce destination-specific nonce
* @param sender address of sender on source chain as bytes32
* @param recipient address of recipient on destination chain as bytes32
* @param destination_caller address of caller on destination chain as bytes32
* @param message_body raw bytes of message body
*/
message Message {
uint32 version = 1;
uint32 source_domain = 2;
uint32 destination_domain = 3;
uint64 nonce = 4;
bytes sender = 5;
bytes recipient = 6;
bytes destination_caller = 7;
bytes message_body = 8;
}