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.
This PR adds the
Format
trait towagyu_model
and refactors{Coin}Format
from eachaddress.rs
file into a dedicatedformat.rs
file. In addition, each{Coin}DerivationPath
is converted from astruct
to anenum
, adding dedicated enums for standardized derivation paths. This PR also addsEthereumNetwork
, which includes indices that are used to construct derivation paths.This change includes notable bug fixes: The
ExtendedPublicKey
derivation method now properly updates depth. TheZcashExtendedPublicKey
prefix has been fixed.