howardwu / wagyu

A Rust library for generating cryptocurrency wallets
https://wagyu.dev
Apache License 2.0
610 stars 106 forks source link

Feature/refactor format #87

Closed howardwu closed 5 years ago

howardwu commented 5 years ago

This PR adds the Format trait to wagyu_model and refactors {Coin}Format from each address.rs file into a dedicated format.rs file. In addition, each {Coin}DerivationPath is converted from a struct to an enum, adding dedicated enums for standardized derivation paths. This PR also adds EthereumNetwork, which includes indices that are used to construct derivation paths.

This change includes notable bug fixes: The ExtendedPublicKey derivation method now properly updates depth. The ZcashExtendedPublicKey prefix has been fixed.