diff --git a/lib/bcoin/bip151.js b/lib/bcoin/bip151.js index 8ae82ea0..54f4e798 100644 --- a/lib/bcoin/bip151.js +++ b/lib/bcoin/bip151.js @@ -106,6 +106,7 @@ BIP151Stream.prototype.sequence = function sequence() { this.seq++; this.chacha.init(null, this.iv()); this.aead.init(null, this.iv()); + this.aead.aad(this.sid); }; BIP151Stream.prototype.iv = function iv() {