| 167 | } |
| 168 | |
| 169 | bool derive_shaseed(const struct secret *seed, struct sha256 *shaseed) |
| 170 | { |
| 171 | struct keys keys; |
| 172 | |
| 173 | derive_keys(seed, &keys); |
| 174 | |
| 175 | *shaseed = keys.shaseed; |
| 176 | return true; |
| 177 | } |
| 178 | |
| 179 | bool derive_funding_key(const struct secret *seed, |
| 180 | struct pubkey *funding_pubkey, |