Type alias ServerCryptoOps

ServerCryptoOps: {
    sign(key, data) => Promise<ArrayBuffer>;
    verify(key, data, sig) => Promise<boolean>;
}

Server crypto utility object Remember every Node Buffer is an ArrayBuffer

Type declaration

  • sign:function
    • Parameters

      • key: ArrayBuffer
      • data: ArrayBuffer

      Returns Promise<ArrayBuffer>

  • verify:function
    • Parameters

      • key: ArrayBuffer
      • data: ArrayBuffer
      • sig: ArrayBuffer

      Returns Promise<boolean>

Generated using TypeDoc