mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Emit 'signed' event when transaction is resigned
This commit is contained in:
@@ -289,13 +289,15 @@ Transaction.prototype.sign = function() {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
var key = seed.get_key(this.tx_json.Account);
|
var key = seed.get_key(this.tx_json.Account);
|
||||||
var sig = key.sign(hash, 0);
|
var sig = key.sign(hash, 0);
|
||||||
var hex = sjcl.codec.hex.fromBits(sig).toUpperCase();
|
var hex = sjcl.codec.hex.fromBits(sig).toUpperCase();
|
||||||
|
|
||||||
this.tx_json.TxnSignature = hex;
|
this.tx_json.TxnSignature = hex;
|
||||||
this.previousSigningHash = hash;
|
this.previousSigningHash = hash;
|
||||||
|
|
||||||
|
this.emit('signed', this.hash());
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user