signatureBase method
Returns signature base of this transaction.
Implementation
Uint8List signatureBase(Network network) {
XdrDataOutputStream xdrOutputStream = XdrDataOutputStream();
// Hashed NetworkID
xdrOutputStream.write(network.networkId!);
// Envelope Type - 4 bytes
List<int> typeTx = List<int>.filled(4, 0);
typeTx[3] = XdrEnvelopeType.ENVELOPE_TYPE_TX_FEE_BUMP.value;
xdrOutputStream.write(typeTx);
// Transaction XDR bytes
XdrFeeBumpTransaction.encode(xdrOutputStream, this.toXdr());
return Uint8List.fromList(xdrOutputStream.bytes);
}