Skip to content

Commit 65d7624

Browse files
committed
rename ExtendedKey00 to ExtendedKey
1 parent b928ef3 commit 65d7624

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

extended_key.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package bip32
22

33
import "github.com/btcsuite/btcd/btcec"
44

5-
type ExtendedKey00 interface {
5+
type ExtendedKey interface {
66
AddressPubKeyHash() []byte
7-
Child(i uint32) (ExtendedKey00, error)
7+
Child(i uint32) (ExtendedKey, error)
88
Depth() uint8
99
Hardened() bool
1010
Index() uint32

private_key.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (priv *PrivateKey) AddressPubKeyHash() []byte {
2424
return btcutil.Hash160(priv.publicKeyData())
2525
}
2626

27-
func (priv *PrivateKey) Child(i uint32) (ExtendedKey00, error) {
27+
func (priv *PrivateKey) Child(i uint32) (ExtendedKey, error) {
2828
// Prevent derivation of children beyond the max allowed depth.
2929
if priv.Level == maxUint8 {
3030
return nil, ErrDeriveBeyondMaxDepth

public_key.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (pub *PublicKey) AddressPubKeyHash() []byte {
2525
}
2626

2727
// Child derive a normal(non-hardened) child for current key
28-
func (pub *PublicKey) Child(i uint32) (ExtendedKey00, error) {
28+
func (pub *PublicKey) Child(i uint32) (ExtendedKey, error) {
2929
// Prevent derivation of children beyond the max allowed depth.
3030
if pub.Level == maxUint8 {
3131
return nil, ErrDeriveBeyondMaxDepth

0 commit comments

Comments
 (0)