lib/contentauth.js
function ContentAuth (pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf) {
  if (!(this instanceof ContentAuth)) {
    return new ContentAuth(pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf)
  }
  this.initialize()
  this.fromObject({pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf})
}
function ContentAuth (pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf) {
  if (!(this instanceof ContentAuth)) {
    return new ContentAuth(pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf)
  }
  this.initialize()
  this.fromObject({pubkey, sig, blockhashbuf, blockheightnum, parenthashbuf, date, address, contentbuf})
}
function ContentAuth ( pubkey , sig , blockhashbuf , blockheightnum , parenthashbuf , date , address , contentbuf ) { if ( ! ( this instanceof ContentAuth ) ) { return new ContentAuth ( pubkey , sig , blockhashbuf , blockheightnum , parenthashbuf , date , address , contentbuf ) } this . initialize ( ) this . fromObject ( { pubkey , sig , blockhashbuf , blockheightnum , parenthashbuf , date , address , contentbuf } ) }
Note that the signature must be compact, meaning it has a recovery factor
and compressed factor. date is a javascript date object.
Note that the signature must be compact meaning it has a recovery factor and compressed factor . date is a javascript date object .