fix: send tx with 2 seeds
This commit is contained in:
parent
5e70dcafd7
commit
0cc226c52a
@ -211,7 +211,7 @@ func HashSpend(spend *nockchain.NockchainSpend) ([5]uint64, error) {
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5ZeroZero)
|
||||
|
||||
if seedsCount != 1 {
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero)
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(crypto.Tip5Zero, finalSeedHash)
|
||||
for i := 1; i < seedsCount; i++ {
|
||||
seedHash, err := HashSeedWithoutSource(spend.Seeds[seedsCount-1-i])
|
||||
if err != nil {
|
||||
@ -236,7 +236,8 @@ func HashMsg(spend *nockchain.NockchainSpend) ([5]uint64, error) {
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5ZeroZero)
|
||||
|
||||
if seedsCount != 1 {
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(finalSeedHash, crypto.Tip5Zero)
|
||||
finalSeedHash = crypto.Tip5RehashTenCell(crypto.Tip5Zero, finalSeedHash)
|
||||
|
||||
for i := 1; i < seedsCount; i++ {
|
||||
seedHash, err := HashSeed(spend.Seeds[seedsCount-1-i])
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user