code: async function verify(oid, hash_algo, { R, S }, m, publicKey, hashed) {
    const signature = util.concatUint8Array([R, S]);
    return nacl.sign.detached.verify(hashed, signature, publicKey.subarray(1));
  }
docs: Verifies if a signature is valid for a message
  @param  {module:type/oid}   oid       Elliptic curve object identifier
  @param  {module:enums.hash} hash_algo Hash algorithm used in the signature
  @param  {{R: Uint8Array,
  S: Uint8Array}}   signature Signature to verify the message
  @param  {Uint8Array}        m         Message to verify
  @param  {Uint8Array}        publicKey Public key used to verify the message
  @param  {Uint8Array}        hashed    The hashed message
  @returns {Boolean}
  @async