mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +01:00
ef9463f6b1
Put ccan first, openssl next, then standard headers, then locals. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 lines
264 B
C
12 lines
264 B
C
#include <ccan/crypto/sha256/sha256.h>
|
|
#include "address.h"
|
|
#include "pubkey.h"
|
|
|
|
void bitcoin_address(const struct pubkey *key, struct bitcoin_address *addr)
|
|
{
|
|
struct sha256 h;
|
|
|
|
sha256(&h, key->key, pubkey_len(key));
|
|
RIPEMD160(h.u.u8, sizeof(h), addr->addr);
|
|
}
|