2015-05-29 07:08:27 +09:30
|
|
|
#ifndef LIGHTNING_BITCOIN_ADDRESS_H
|
|
|
|
#define LIGHTNING_BITCOIN_ADDRESS_H
|
|
|
|
#include <ccan/short_types/short_types.h>
|
2015-07-09 15:43:36 +09:30
|
|
|
#include <ccan/crypto/ripemd160/ripemd160.h>
|
2015-05-29 07:08:27 +09:30
|
|
|
|
2015-06-02 11:53:59 +09:30
|
|
|
struct pubkey;
|
|
|
|
|
2015-05-29 07:08:27 +09:30
|
|
|
/* An address is the RIPEMD160 of the SHA of the public key. */
|
|
|
|
struct bitcoin_address {
|
2015-07-09 15:43:36 +09:30
|
|
|
struct ripemd160 addr;
|
2015-05-29 07:08:27 +09:30
|
|
|
};
|
|
|
|
|
2015-06-02 11:53:59 +09:30
|
|
|
void bitcoin_address(const struct pubkey *key,
|
2015-05-29 07:08:27 +09:30
|
|
|
struct bitcoin_address *addr);
|
|
|
|
#endif /* LIGHTNING_BITCOIN_ADDRESS_H */
|