(function(t){functioni(n,r){return"number"!=typeofn?voidi.super_.call(this,n,r):(this.data=newt(2+r.length),this.encoding("binary"),this.prefix(15),this.type(n),voidthis.payload(r))}varn=require("../util/VersionedData"),r=require("../util/EncodedData"),e=require("util");e.inherits(i,n),r.applyEncodingsTo(i),i.SIN_PERSIST_MAINNET=1,i.SIN_PERSIST_TESTNET=17,i.SIN_EPHEM=2,i.prototype.prefix=function(t){returnt||0===t?(this.doAsBinary(function(){this.data.writeUInt8(t,0)}),t):this.as("binary").readUInt8(0)},i.prototype.type=function(t){returnt||0===t?(this.doAsBinary(function(){this.data.writeUInt8(t,1)}),t):this.as("binary").readUInt8(1)},i.prototype.payload=function(t){returnt?(this.doAsBinary(function(){t.copy(this.data,2)}),t):this.as("binary").slice(1)},i.prototype.validate=function(){this.doAsBinary(function(){if(i.super_.prototype.validate.call(this),22!=this.data.length)thrownewError("invalid data length")})},module.exports=i}).call(this,require("buffer").Buffer);
(function(t){functioni(n,e){return"number"!=typeofn?voidi.super_.call(this,n,e):(this.data=newt(2+e.length),this.converters=this.encodings.binary.converters,this._encoding=this.encodings.binary._encoding,this.encoding("binary"),this.prefix(15),this.type(n),voidthis.payload(e))}varn=require("../util/VersionedData"),e=require("../util/EncodedData"),r=require("util");r.inherits(i,n),e.applyEncodingsTo(i),i.SIN_PERSIST_MAINNET=1,i.SIN_PERSIST_TESTNET=17,i.SIN_EPHEM=2,i.prototype.prefix=function(t){returnt||0===t?(this.doAsBinary(function(){this.data.writeUInt8(t,0)}),t):this.as("binary").readUInt8(0)},i.prototype.type=function(t){returnt||0===t?(this.doAsBinary(function(){this.data.writeUInt8(t,1)}),t):this.as("binary").readUInt8(1)},i.prototype.payload=function(t){returnt?(this.doAsBinary(function(){t.copy(this.data,2)}),t):this.as("binary").slice(1)},i.prototype.validate=function(){this.doAsBinary(function(){if(i.super_.prototype.validate.call(this),22!=this.data.length)thrownewError("invalid data length")})},module.exports=i}).call(this,require("buffer").Buffer);