| 90 | } |
| 91 | |
| 92 | void pubkey_to_hash160(const struct pubkey *pk, struct ripemd160 *hash) |
| 93 | { |
| 94 | u8 der[PUBKEY_CMPR_LEN]; |
| 95 | struct sha256 h; |
| 96 | |
| 97 | pubkey_to_der(der, pk); |
| 98 | sha256(&h, der, sizeof(der)); |
| 99 | ripemd160(hash, h.u.u8, sizeof(h)); |
| 100 | } |
| 101 | |
| 102 | void fromwire_pubkey(const u8 **cursor, size_t *max, struct pubkey *pubkey) |
| 103 | { |
no test coverage detected