Skip to content

Commit

Permalink
feat(core): move the address module into the core module
Browse files Browse the repository at this point in the history
1. move the address module into the core module, 2. add loadCells and generateRawTransaction method
in the core module

BREAKING CHANGE: move the address module into the core module
  • Loading branch information
Keith-CY committed Sep 24, 2019
1 parent 2befcff commit 10dd017
Show file tree
Hide file tree
Showing 27 changed files with 1,639 additions and 623 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ $ yarn add @nervosnetwork/ckb-sdk-core # install the SDK into your project

This SDK includes several modules:

<details>
<summary>
Address <a href="https://github.com/nervosnetwork/ckb-sdk-js/tree/develop/packages/ckb-sdk-address" alt="address">Code</a>
</summary>
<dd>

Used to create an address object, whose value is the address we are going to use.

Default `address algorithm` is the `pubkeyToAddress` in utils module, which generates address in bech32 format.

Default rule to generate the address from a public key is:

- Blake160(public key): blake2b(public key) then trauncate it for fist 20 bytes.
- Specify options used: Address Type, Address Bin Index, Prefix. The options will be explained in an RFC.
- Bech32 the blake160ed public key with specified options: bech32Address(blake160Pubkey, {prefix, type, binIndex})

</dd>
</details>

<details>
<summary>
RPC <a href="https://github.com/nervosnetwork/ckb-sdk-js/tree/develop/packages/ckb-sdk-rpc" alt="rpc">Code</a>
Expand Down
142 changes: 0 additions & 142 deletions packages/ckb-sdk-address/CHANGELOG.md

This file was deleted.

69 changes: 0 additions & 69 deletions packages/ckb-sdk-address/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions packages/ckb-sdk-address/package.json

This file was deleted.

0 comments on commit 10dd017

Please sign in to comment.