lib/bip44/wallet.rb in bip44-extended-0.2.20 vs lib/bip44/wallet.rb in bip44-extended-0.2.21
- old
+ new
@@ -6,9 +6,12 @@
# "0" # 0 - public, 1 = private
# "0" # index
class Wallet
include Bip44::Bitcoin
include Bip44::Ethereum
+ include Bip44::BitcoinCash
+ include Bip44::Litecoin
+ include Bip44::Zcoin
def self.from_seed(seed, path)
master = MoneyTree::Master.new(seed_hex: seed) # 3. 种子用于使用 HMAC-SHA512 生成根私钥(参见 BIP32)
wallet_node = master.node_for_path(path) # 4. 从该根私钥,导出子私钥(参见 BIP32),其中节点布局由BIP44设置
Wallet.new(wallet_node)