You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When transferring CCC or assets, the sender must know the recipient's lock script hash and parameters. An address is a converted form of the lock script hash and parameters, and it has some benefits.
1
+
When transferring CCC, the sender must know the recipient's lock script hash and parameters. An address is a converted form of the lock script hash and parameters, and it has some benefits.
2
2
3
3
* An address includes a checksum. There is a high probability that a mistyped address is invalid.
4
4
* An address is case-insensitive alphanumeric, which is easy to speak aloud or type on the mobile phone. It also makes it efficient to generate QR codes.
@@ -8,7 +8,6 @@ When transferring CCC or assets, the sender must know the recipient's lock scrip
8
8
CodeChain adopted [Bitcoin's Bech32 Specification](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32). The differences from Bitcoin are the following:
9
9
10
10
* CodeChain has no separator.
11
-
* CodeChain has 2 types of address. One is for CCCs and the other is for assets. They are distinguished by HRP(Human Readable Part)
12
11
13
12
Address formats are not a core part.
14
13
@@ -28,53 +27,10 @@ Data body: `Account ID` (20 bytes)
28
27
29
28
Account ID is the result of blake160 over a public key(64 bytes uncompressed form).
30
29
31
-
## 2. Asset Transfer Address Format
32
-
33
-
HRP: `"cca"` for Mainnet, `"tca"` for Testnet.
34
-
35
-
Data: `version` . `body`
36
-
37
-
### Version 0 (0x00)
38
-
39
-
No longer available. Any version 0 address will be rejected in the latest clients.
40
-
41
-
### Version 1 (0x01)
42
-
43
-
Data body: `type` . `payload`
44
-
45
-
#### Type 0 (0x00)
46
-
47
-
Payload: \<LockScriptHash> (20 bytes)
48
-
49
-
Type 0 with given payload represents:
50
-
* Lock Script Hash: \<LockScriptHash>
51
-
* Parameters: []
52
-
53
-
#### Type 1 (0x01)
54
-
55
-
Payload: \<Public Key Hash> (20 bytes)
56
-
57
-
Type 1 with the given payload represents:
58
-
* Lock Script Hash: P2PKH Standard Script Hash (5f5960a7bca6ceeeb0c97bc717562914e7a1de04)
59
-
* Parameters: [\<Public Key Hash>]
60
-
61
-
#### Type 2 (0x02)
62
-
63
-
Payload: \<Public Key Hash> (20 bytes)
64
-
65
-
Type 2 with the given payload represents:
66
-
* Lock Script Hash: P2PKHBurn Standard Script Hash (37572bdcc22d39a59c0d12d301f6271ba3fdd451)
0 commit comments