File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package bip32
2
2
3
3
import "github.com/btcsuite/btcd/btcec"
4
4
5
- type ExtendedKey00 interface {
5
+ type ExtendedKey interface {
6
6
AddressPubKeyHash () []byte
7
- Child (i uint32 ) (ExtendedKey00 , error )
7
+ Child (i uint32 ) (ExtendedKey , error )
8
8
Depth () uint8
9
9
Hardened () bool
10
10
Index () uint32
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ func (priv *PrivateKey) AddressPubKeyHash() []byte {
24
24
return btcutil .Hash160 (priv .publicKeyData ())
25
25
}
26
26
27
- func (priv * PrivateKey ) Child (i uint32 ) (ExtendedKey00 , error ) {
27
+ func (priv * PrivateKey ) Child (i uint32 ) (ExtendedKey , error ) {
28
28
// Prevent derivation of children beyond the max allowed depth.
29
29
if priv .Level == maxUint8 {
30
30
return nil , ErrDeriveBeyondMaxDepth
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func (pub *PublicKey) AddressPubKeyHash() []byte {
25
25
}
26
26
27
27
// 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 ) {
29
29
// Prevent derivation of children beyond the max allowed depth.
30
30
if pub .Level == maxUint8 {
31
31
return nil , ErrDeriveBeyondMaxDepth
You can’t perform that action at this time.
0 commit comments