Skip to content

Commit 7dd419e

Browse files
author
Matt David
committed
- Update identifier to be a required field in ProtocolMessage and EncryptedProtocolMessage
1 parent 1943927 commit 7dd419e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bip-0075.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ message ProtocolMessage {
141141
required ProtocolMessageType message_type = 3;
142142
required bytes serialized_message = 4;
143143
optional string status_message = 5;
144-
optional bytes identifier = 6;
144+
required bytes identifier = 6;
145145
}
146146
</pre>
147147

@@ -177,7 +177,7 @@ message EncryptedProtocolMessage {
177177
required bytes receiver_public_key = 5;
178178
required bytes sender_public_key = 6;
179179
required uint64 nonce = 7;
180-
optional bytes identifier = 8;
180+
required bytes identifier = 8;
181181
optional string status_message = 9;
182182
optional bytes signature = 10;
183183
}

bip-0075/paymentrequest.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ message ProtocolMessage {
7070
required ProtocolMessageType message_type = 3; // Message Type of serialized_message
7171
required bytes serialized_message = 4; // Serialized Payment Protocol Message
7272
optional string status_message = 5; // Human-readable Payment Protocol status message
73-
optional bytes identifier = 6; // Unique key to identify this entire exchange on the server. SHA256 of initial serialized InvoiceRequest SHOULD be used by default
73+
required bytes identifier = 6; // Unique key to identify this entire exchange on the server. SHA256 of initial serialized InvoiceRequest SHOULD be used by default
7474
}
7575

7676
message EncryptedProtocolMessage {
@@ -81,7 +81,7 @@ message EncryptedProtocolMessage {
8181
required bytes receiver_public_key = 5; // Receiver's DER-encoded EC Public Key
8282
required bytes sender_public_key = 6; // Sender's DER-encoded EC Public Key
8383
required uint64 nonce = 7; // Microseconds since epoch
84-
optional bytes identifier = 8; // Unique key to identify this entire exchange on the server. SHA256 of initial serialized InvoiceRequest SHOULD be used by default
84+
required bytes identifier = 8; // Unique key to identify this entire exchange on the server. SHA256 of initial serialized InvoiceRequest SHOULD be used by default
8585
optional string status_message = 9; // Human-readable Payment Protocol status message
8686
optional bytes signature = 10; // Signature over the full EncryptedProtocolMessage with EC Key Belonging to Sender / Receiver, respectively
8787
}

0 commit comments

Comments
 (0)