Bitcoin ABC
0.31.0
P2P Digital Currency
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
f
g
h
i
k
m
n
o
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
h
i
l
m
n
p
q
r
s
t
u
v
w
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
!
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
m
n
o
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
f
g
i
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
b
c
d
e
h
i
k
l
m
n
p
r
s
t
u
v
Enumerations
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
cashaddrenc.h
Go to the documentation of this file.
1
// Copyright (c) 2017-2019 The Bitcoin developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
#ifndef BITCOIN_CASHADDRENC_H
5
#define BITCOIN_CASHADDRENC_H
6
7
#include <
script/standard.h
>
8
9
#include <string>
10
#include <vector>
11
12
class
CChainParams
;
13
14
enum
CashAddrType
: uint8_t {
PUBKEY_TYPE
= 0,
SCRIPT_TYPE
= 1 };
15
16
struct
CashAddrContent
{
17
CashAddrType
type
;
18
std::vector<uint8_t>
hash
;
19
};
20
21
std::string
EncodeCashAddr
(
const
CTxDestination
&,
const
CChainParams
&);
22
std::string
EncodeCashAddr
(
const
std::string &
prefix
,
23
const
CashAddrContent
&content);
24
25
CTxDestination
DecodeCashAddr
(
const
std::string &addr,
26
const
CChainParams
¶ms);
27
CashAddrContent
DecodeCashAddrContent
(
const
std::string &addr,
28
const
std::string &
prefix
);
29
CTxDestination
DecodeCashAddrDestination
(
const
CashAddrContent
&content);
30
31
std::vector<uint8_t>
PackCashAddrContent
(
const
CashAddrContent
&content);
32
#endif
// BITCOIN_CASHADDRENC_H
CashAddrType
CashAddrType
Definition:
cashaddrenc.h:14
PUBKEY_TYPE
@ PUBKEY_TYPE
Definition:
cashaddrenc.h:14
SCRIPT_TYPE
@ SCRIPT_TYPE
Definition:
cashaddrenc.h:14
EncodeCashAddr
std::string EncodeCashAddr(const CTxDestination &, const CChainParams &)
Definition:
cashaddrenc.cpp:90
DecodeCashAddrDestination
CTxDestination DecodeCashAddrDestination(const CashAddrContent &content)
Definition:
cashaddrenc.cpp:154
DecodeCashAddr
CTxDestination DecodeCashAddr(const std::string &addr, const CChainParams ¶ms)
Definition:
cashaddrenc.cpp:101
PackCashAddrContent
std::vector< uint8_t > PackCashAddrContent(const CashAddrContent &content)
Definition:
cashaddrenc.cpp:175
DecodeCashAddrContent
CashAddrContent DecodeCashAddrContent(const std::string &addr, const std::string &prefix)
Definition:
cashaddrenc.cpp:112
CChainParams
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition:
chainparams.h:85
prefix
const char * prefix
Definition:
rest.cpp:817
standard.h
CTxDestination
std::variant< CNoDestination, PKHash, ScriptHash > CTxDestination
A txout script template with a specific destination.
Definition:
standard.h:85
CashAddrContent
Definition:
cashaddrenc.h:16
CashAddrContent::type
CashAddrType type
Definition:
cashaddrenc.h:17
CashAddrContent::hash
std::vector< uint8_t > hash
Definition:
cashaddrenc.h:18
Generated on Sat Apr 5 2025 11:01:58 for Bitcoin ABC by
1.9.4