Skip to content

Commit

Permalink
crypto/hd: update godoc for ComputerMastersFromSeed (cosmos#6694)
Browse files Browse the repository at this point in the history
Closes: cosmos#5338
  • Loading branch information
Alessio Treglia authored Jul 12, 2020
1 parent 2de851d commit ba6a2f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/hd/hdpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ func (p BIP44Params) String() string {
p.AddressIndex)
}

// ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex.
// ComputeMastersFromSeed returns the master secret key's, and chain code.
func ComputeMastersFromSeed(seed []byte) (secret [32]byte, chainCode [32]byte) {
masterSecret := []byte("Bitcoin seed")
secret, chainCode = i64(masterSecret, seed)
curveIdentifier := []byte("Bitcoin seed")
secret, chainCode = i64(curveIdentifier, seed)

return
}
Expand Down

0 comments on commit ba6a2f5

Please sign in to comment.