mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
d733e82352
This makes merging easier in future. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
440 B
C
17 lines
440 B
C
#ifndef LIGHTNING_BITCOIN_ADDRESS_H
|
|
#define LIGHTNING_BITCOIN_ADDRESS_H
|
|
#include "config.h"
|
|
#include <ccan/crypto/ripemd160/ripemd160.h>
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
struct pubkey;
|
|
|
|
/* An address is the RIPEMD160 of the SHA of the public key. */
|
|
struct bitcoin_address {
|
|
struct ripemd160 addr;
|
|
};
|
|
|
|
void bitcoin_address(const struct pubkey *key,
|
|
struct bitcoin_address *addr);
|
|
#endif /* LIGHTNING_BITCOIN_ADDRESS_H */
|