Skip to content

Commit a56097d

Browse files
author
SeungMin Lee
committed
Remove the remaining assets,
1 parent 95d6568 commit a56097d

File tree

14 files changed

+16
-704
lines changed

14 files changed

+16
-704
lines changed

CHANGELOG.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

json/src/scheme/scheme.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,14 @@ mod tests {
7373
},
7474
"params": {
7575
"maxExtraDataSize": "0x20",
76-
"maxAssetSchemeMetadataSize": "0x0400",
7776
"maxTransferMetadataSize": "0x0100",
7877
"maxTextContentSize": "0x0200",
7978
"networkID" : "tc",
8079
"minPayCost" : 10,
8180
"minCreateShardCost" : 12,
8281
"minSetShardOwnersCost" : 13,
8382
"minSetShardUsersCost" : 14,
84-
"minWrapCccCost" : 15,
8583
"minCustomCost" : 16,
86-
"minMintAssetCost" : 17,
87-
"minTransferAssetCost" : 18,
88-
"minChangeAssetSchemeCost" : 19,
89-
"minIncreaseAssetSupplyCost" : 20,
90-
"minComposeAssetCost" : 21,
91-
"minDecomposeAssetCost" : 22,
92-
"minUnwrapCccCost" : 23,
9384
"maxBodySize": 4194304,
9485
"snapshotPeriod": 16384,
9586
"termSeconds": 3600,

spec/CodeChain-Address.md

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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.
22

33
* An address includes a checksum. There is a high probability that a mistyped address is invalid.
44
* 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
88
CodeChain adopted [Bitcoin's Bech32 Specification](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32). The differences from Bitcoin are the following:
99

1010
* 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)
1211

1312
Address formats are not a core part.
1413

@@ -28,53 +27,10 @@ Data body: `Account ID` (20 bytes)
2827

2928
Account ID is the result of blake160 over a public key(64 bytes uncompressed form).
3029

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)
67-
* Parameters: [\<Public Key Hash>]
68-
6930
---
7031

7132
## Address examples
7233

73-
* Platform Account Address: `cccqx37a03l3axrz3qmtdywgjuyuvr099dueuqvjxp3`
34+
* Address: `cccqx37a03l3axrz3qmtdywgjuyuvr099dueuqvjxp3`
7435
* version = `1`
7536
* payload(Account ID) = `a3eebe3f8f4c31441b5b48e44b84e306f295bccf`
76-
77-
* Asset Transfer Address: `ccaqypf8czlf67sds30ylddl4hxzcr7lml73wqqypt3ua`
78-
* version = `1`
79-
* type = `2`
80-
* payload(blake160 of public key) = `93e05f4ebd06c22f27dadfd6e61607efeffe8b80`

0 commit comments

Comments
 (0)