@@ -138,11 +138,11 @@ export abstract class Transaction {
138138 TransactionType . AGGREGATE_COMPLETE ,
139139 ] . find ( ( type : TransactionType ) => entityType === type ) !== undefined ;
140140
141- // 1) take "R" part of a signature (first 32 bytes)
142- const signatureR : Uint8Array = transactionBytes . slice ( 8 , 8 + 32 ) ;
141+ // 1) add full signature
142+ const signature : Uint8Array = transactionBytes . slice ( 8 , 8 + 64 ) ;
143143
144144 // 2) add public key to match sign/verify behavior (32 bytes)
145- const pubKeyIdx : number = signatureR . length ;
145+ const pubKeyIdx : number = signature . length ;
146146 const publicKey : Uint8Array = transactionBytes . slice ( 8 + 64 , 8 + 64 + 32 ) ;
147147
148148 // 3) add generationHash (32 bytes)
@@ -162,12 +162,12 @@ export abstract class Transaction {
162162 // 5) concatenate binary hash parts
163163 // layout: `signature_R || signerPublicKey || generationHash || EntityDataBuffer`
164164 const entityHashBytes : Uint8Array = new Uint8Array (
165- signatureR . length
165+ signature . length
166166 + publicKey . length
167167 + generationHash . length
168168 + transactionBody . length ,
169169 ) ;
170- entityHashBytes . set ( signatureR , 0 ) ;
170+ entityHashBytes . set ( signature , 0 ) ;
171171 entityHashBytes . set ( publicKey , pubKeyIdx ) ;
172172 entityHashBytes . set ( generationHash , generationHashIdx ) ;
173173 entityHashBytes . set ( transactionBody , transactionBodyIdx ) ;
0 commit comments