Type alias ServerCryptoOps
ServerCryptoOps: {
sign(key, data) => Promise<ArrayBuffer>;
verify(key, data, sig) => Promise<boolean>;
}
Type declaration
-
sign:function
- sign(key, data): Promise<ArrayBuffer>
-
Parameters
-
key: ArrayBuffer
-
data: ArrayBuffer
Returns Promise<ArrayBuffer>
-
verify:function
- verify(key, data, sig): Promise<boolean>
-
Parameters
-
key: ArrayBuffer
-
data: ArrayBuffer
-
sig: ArrayBuffer
Returns Promise<boolean>
Server crypto utility object Remember every Node Buffer is an ArrayBuffer