Skip to content

Deprecate Buffer interop in preparation for 2.0.0 #282

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

Merged
merged 1 commit into from
Sep 22, 2014
Merged

Deprecate Buffer interop in preparation for 2.0.0 #282

merged 1 commit into from
Sep 22, 2014

Conversation

dcousens
Copy link
Contributor

In 2.0.0, a major focus is on making the API as simple as possible, and to avoid possible interop concerns.
This is just one of those preparations.

The BIP32 specification does mention:

This 78 byte structure can be encoded like other Bitcoin data in Base58...

Implying maybe, that you could expose the pure byte format in a standard way, however I feel the checksum is useful in most contexts, and unless a use case can be garnered for toBuffer, I'm happy to remove them in 2.0.0.

@dcousens
Copy link
Contributor Author

@weilu I also question that technically this is Base58Check encoding, do we want to name it accordingly?

@dcousens dcousens modified the milestone: 1.2.0 Sep 20, 2014
@weilu
Copy link
Contributor

weilu commented Sep 22, 2014

@dcousens I think that'd be a good idea, given that we already have address.toBase58Check

@weilu
Copy link
Contributor

weilu commented Sep 22, 2014

Merging this as the toBase58Check rename is an independent issue.

weilu added a commit that referenced this pull request Sep 22, 2014
Deprecate Buffer interop in preparation for 2.0.0
@weilu weilu merged commit 6cd8fc3 into bitcoinjs:master Sep 22, 2014
@dcousens dcousens deleted the nobuff branch September 23, 2014 00:11
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.

2 participants