Skip to content
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

feat: added encodeToAddress #205

Merged
merged 1 commit into from Nov 30, 2021
Merged

Conversation

homura
Copy link
Collaborator

@homura homura commented Nov 30, 2021

Background

Due to the upgrade of CKB2021, address format will also be upgrade, but this will cause the address to be difficult to understand, after CKB2021 hard-fork, it will become CKB2021 full address / CKB2021 short address / CKB2019 full address / CKB2019 short address. In order to avoid the complexity of address format, the CKB community will migrate to only support full format address, and the short format address will be deprecated in the future

Migration

We have marked the generateAddress as @deprecated, but it will be removed in the future. To migrate to the new full address format, you can update generateXAddress to encodeToXAddress

// deprecated
generateAddress(...)
generatePredefinedAddress(...)
generateSecp256k1Blake160Address(...)
generateSecp256k1Blake160MultisigAddress(...)


// migrate to
encodeToAddress(...)
encodeToPredefinedAddress(...)
encodeToSecp256k1Blake160Address(...)
encodeToSecp256k1Blake160MultisigAddress(...)

the `generateAddress` is deprecated , lumos will remove it in the future
@homura homura merged commit c2afc82 into ckb-js:ckb2021 Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant