mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
bitcoin/preimage: struct preimage.
We had a hack for 'struct rval' in protobuf_convert.h; make an explicit header and put it in bitcoin/preimage.h. It's not really bitcoin-specific, but it's better than having bitcoin/script depend on an external header. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -15,7 +15,7 @@ message sha256_hash {
|
||||
required fixed64 d = 4;
|
||||
}
|
||||
|
||||
message rval {
|
||||
message preimage {
|
||||
required fixed64 a = 1;
|
||||
required fixed64 b = 2;
|
||||
required fixed64 c = 3;
|
||||
@@ -164,8 +164,8 @@ message update_add_htlc {
|
||||
message update_fulfill_htlc {
|
||||
// Which HTLC
|
||||
required uint64 id = 1;
|
||||
// HTLC R value.
|
||||
required rval r = 2;
|
||||
// HTLC payment_preimage.
|
||||
required preimage r = 2;
|
||||
}
|
||||
|
||||
// This is encrypted in fail_reason.
|
||||
|
||||
Reference in New Issue
Block a user