mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
We alternated between using a sha256 and using a privkey, but there are numerous places where we have a random 32 bytes which are neither. This fixes many of them (plus, struct privkey is now defined in terms of struct secret). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
22 lines
558 B
Plaintext
22 lines
558 B
Plaintext
# Give me ECDH(node-id-secret,point)
|
|
hsm_ecdh_req,1
|
|
hsm_ecdh_req,0,point,struct pubkey
|
|
hsm_ecdh_resp,100
|
|
hsm_ecdh_resp,0,ss,struct secret
|
|
|
|
hsm_cannouncement_sig_req,2
|
|
hsm_cannouncement_sig_req,0,bitcoin_id,struct pubkey
|
|
hsm_cannouncement_sig_req,33,calen,u16
|
|
hsm_cannouncement_sig_req,35,ca,calen
|
|
|
|
hsm_cannouncement_sig_reply,102
|
|
hsm_cannouncement_sig_reply,0,node_signature,64
|
|
|
|
hsm_cupdate_sig_req,3
|
|
hsm_cupdate_sig_req,0,culen,u16
|
|
hsm_cupdate_sig_req,2,cu,culen
|
|
|
|
hsm_cupdate_sig_reply,103
|
|
hsm_cupdate_sig_reply,0,culen,u16
|
|
hsm_cupdate_sig_reply,2,cu,culen
|