Skip to content

Optional network considered harmful #325

@dcousens

Description

@dcousens

Reference: #321

Should the interfaces ECPair.fromWIF and HDNode.fromBase58 always require a network parameter?
We could use auto-detect based on the version flag, but there comes up the problem that networks recently added to the network constants have duplicate constants that would mean auto detection may be misleading for those unaware.

In this sense, it is considered harmful in its current state, where the bitcoin default can regularly throw off users (especially with .getAddress() in <2.0.0) and the auto detect can cause incredibly difficult-to-trace bugs.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions