Moves the Address* types to a new module called addrlib, which is somewhat similar to dcrd/dcrutil/address.go.
Standardizes the argument type and order in address constructors. They all take a ByteArray as the first argument and network parameters as the second.
Drops extraneous constructor functions newAddressPubKey, newAddressPubKeyHash, newAddressScriptHash. Just use the class constructors. Moves newAddressScriptHashFromHash to a staticmethod on the AddressScriptHash class.
All address types now inherit from the Address class, which also implements the Blobber API.
All address classes implement comparison __eq__ methods.
Moves deriveChildAddress from a method of ExtendedKey to a function in account. The crypto module does not have any concept of an address now, though it still handles base-58 encoding and decoding.
Resolves #64.
Moves the
Address*
types to a new module calledaddrlib
, which is somewhat similar to dcrd/dcrutil/address.go.Standardizes the argument type and order in address constructors. They all take a
ByteArray
as the first argument and network parameters as the second.Drops extraneous constructor functions
newAddressPubKey
,newAddressPubKeyHash
,newAddressScriptHash
. Just use the class constructors. MovesnewAddressScriptHashFromHash
to astaticmethod
on theAddressScriptHash
class.All address types now inherit from the
Address
class, which also implements theBlobber
API.All address classes implement comparison
__eq__
methods.Moves
deriveChildAddress
from a method ofExtendedKey
to a function in account. The crypto module does not have any concept of an address now, though it still handles base-58 encoding and decoding.