fix: adapt transaction wire format for multiple signatures
This commit is contained in:
parent
3ef167f8fa
commit
44047a8d63
|
@ -244,10 +244,13 @@ export class Transaction {
|
|||
}
|
||||
|
||||
const signData = this._getSignData();
|
||||
const wireTransaction = Buffer.alloc(signature.length + signData.length);
|
||||
const wireTransaction = Buffer.alloc(
|
||||
8 + signature.length + signData.length,
|
||||
);
|
||||
|
||||
Buffer.from(signature).copy(wireTransaction, 0);
|
||||
signData.copy(wireTransaction, signature.length);
|
||||
wireTransaction.writeUInt8(1, 0); // TODO: Support multiple transaction signatures
|
||||
Buffer.from(signature).copy(wireTransaction, 8);
|
||||
signData.copy(wireTransaction, 8 + signature.length);
|
||||
return wireTransaction;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue