diff --git a/wallet/nockhash.go b/wallet/nockhash.go index 1d45183..db71001 100644 --- a/wallet/nockhash.go +++ b/wallet/nockhash.go @@ -213,9 +213,9 @@ func HashSpend(spend *nockchain.NockchainSpend) ([5]uint64, error) { return [5]uint64{}, err } finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5ZeroZero) - finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero) if seedsCount != 1 { + finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero) for i := 1; i < seedsCount; i++ { seedHash, err := HashSeedWithoutSource(spend.Seeds[seedsCount-1-i]) if err != nil { @@ -238,9 +238,9 @@ func HashMsg(spend *nockchain.NockchainSpend) ([5]uint64, error) { return [5]uint64{}, err } finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5ZeroZero) - finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero) if seedsCount != 1 { + finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero) for i := 1; i < seedsCount; i++ { seedHash, err := HashSeed(spend.Seeds[seedsCount-1-i]) if err != nil {