Skip to content

Commit

Permalink
fix tx builder using SignExtended
Browse files Browse the repository at this point in the history
  • Loading branch information
safanaj committed Nov 19, 2023
1 parent 349aeeb commit 74d6859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tx_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ func (tb *TxBuilder) build() error {
tb.tx.WitnessSet.VKeyWitnessSet = make([]VKeyWitness, len(tb.pkeys))
for i, pkey := range tb.pkeys {
tb.tx.WitnessSet.VKeyWitnessSet[i] = VKeyWitness{
VKey: pkey.PubKey(),
Signature: pkey.Sign(txHash),
VKey: pkey.PubKey(),
// for transaction we use Extended version of Sign method, not the ed25519 signing way
Signature: pkey.SignExtended(txHash),
}
}

Expand Down

0 comments on commit 74d6859

Please sign in to comment.