Skip to content

Commit e681a7a

Browse files
authored
Converted remotesigner.PubKey from 64 byte raw to 33 byte compressed DER. (#15)
1 parent 956a741 commit e681a7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/remote_hsmd/proxy.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ void marshal_node_id(struct node_id const *np, NodeId *o_np)
136136

137137
void marshal_pubkey(struct pubkey const *pp, PubKey *o_pp)
138138
{
139-
o_pp->set_data(pp->pubkey.data, sizeof(pp->pubkey.data));
139+
u8 pubkey_der[PUBKEY_CMPR_LEN];
140+
pubkey_to_der(pubkey_der, pp);
141+
142+
o_pp->set_data(pubkey_der, sizeof(pubkey_der));
140143
}
141144

142145
void marshal_utxo(struct utxo const *up, InputDescriptor *idesc)

0 commit comments

Comments
 (0)