-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jj #4
Comments
|
*/
#ifndef BTC_TXREF_CODE_H
#define BTC_TXREF_CODE_H 1
#include <stdint.h>
static const char TXREF_BECH32_HRP_MAINNET[] = "tx";
static const char TXREF_BECH32_HRP_TESTNET[] = "txtest";
#define TXREF_MAGIC_BTC_MAINNET 0x03
#define TXREF_MAGIC_BTC_TESTNET 0x06
/** Encodes a transaction reference
*
*/
int btc_txref_encode(
char *output,
const char *hrp,
const char magic,
int block_height,
int tx_pos,
int non_standard
);
/** Decodes a transaction reference
*
at least the size of strlen(txref_id)
int btc_txref_decode(
const char *txref_id,
char *hrp,FULL_FREE_BTC
char *magic,
);
#endif // BTC_TXREF_CODE_H
The text was updated successfully, but these errors were encountered: