mirror of
https://github.com/bitcoin/bips.git
synced 2026-05-04 16:41:51 +00:00
Made public keys required, updated steps
This commit is contained in:
@@ -49,7 +49,6 @@ message PaymentACK {
|
||||
|
||||
message InvoiceRequest {
|
||||
required bytes sender_public_key = 1; // Sender's EC Public Key
|
||||
required uint64 nonce = 2; // Microseconds since epoch
|
||||
optional uint64 amount = 3 [default = 0]; // amount is integer-number-of-satoshis
|
||||
optional string pki_type = 4 [default = "none"]; // none / x509+sha256
|
||||
optional bytes pki_data = 5; // Depends on pki_type
|
||||
@@ -62,9 +61,10 @@ message EncryptedInvoiceRequest {
|
||||
required bytes encrypted_invoice_request = 1; // AES-256-CBC Encrypted InvoiceRequest as defined in InvoiceRequest Spec
|
||||
required bytes invoice_request_hash = 2; // SHA256 Hash of Non-Encrypted, Serialized InvoiceRequest (used for authentication)
|
||||
required bytes sender_public_key = 3; // Sender's EC Public Key
|
||||
optional bytes receiver_public_key = 4; // Receiver's EC Public Key
|
||||
required bytes receiver_public_key = 4; // Receiver's EC Public Key
|
||||
required uint64 nonce = 5; // Microseconds since epoch
|
||||
optional bytes identifier = 6; // Unique key to identify this entire exchange on the server. invoice_request_hash SHOULD be used by default
|
||||
optional bytes signature = 7; // Signature of this message using Sender's EC key
|
||||
}
|
||||
|
||||
message EncryptedPaymentRequest {
|
||||
@@ -81,8 +81,8 @@ message EncryptedPaymentRequest {
|
||||
message EncryptedPayment {
|
||||
required bytes encrypted_payment = 1; // AES-256-CBC Encrypted BIP70 Payment as defined in InvoiceRequest Spec
|
||||
required bytes payment_hash = 2; // SHA256 Hash of Non-Encrypted, Serialized BIP70 Payment
|
||||
required bytes receiver_public_key = 3; // Receiver's EC Public Key
|
||||
required bytes sender_public_key = 4; // Sender's EC Public Key
|
||||
required bytes sender_public_key = 3; // Sender's EC Public Key
|
||||
required bytes receiver_public_key = 4; // Receiver's EC Public Key
|
||||
required uint64 nonce = 5; // Microseconds since epoch
|
||||
required bytes signature = 6; // Signature over EncryptedPayment with Sender's EC Key
|
||||
optional bytes identifier = 7; // Use the identifier specified with the EncryptedPaymentRequest, if any.
|
||||
|
||||
Reference in New Issue
Block a user