verifyRaw
function verifyRaw( signature: Uint8Array<ArrayBufferLike>, data: Uint8Array<ArrayBufferLike>, publicKey: Uint8Array<ArrayBufferLike>): boolean;
Defined in: packages/iso-filecoin/src/ledger.js:251
Verify raw signature
Parameters
Parameter | Type |
---|---|
signature | Uint8Array <ArrayBufferLike > |
data | Uint8Array <ArrayBufferLike > |
publicKey | Uint8Array <ArrayBufferLike > |
Returns
boolean
Example
import { function verifyRaw(signature: Uint8Array, data: Uint8Array, publicKey: Uint8Array): boolean
Verify raw signature
verifyRaw } from 'iso-filecoin/ledger'
const const signature: Uint8Array<ArrayBuffer>
signature = new var Uint8Array: Uint8ArrayConstructornew (elements: Iterable<number>) => Uint8Array<ArrayBuffer> (+6 overloads)
Uint8Array([1, 2, 3])const const data: Uint8Array<ArrayBuffer>
data = new var Uint8Array: Uint8ArrayConstructornew (elements: Iterable<number>) => Uint8Array<ArrayBuffer> (+6 overloads)
Uint8Array([4, 5, 6])const const publicKey: Uint8Array<ArrayBuffer>
publicKey = new var Uint8Array: Uint8ArrayConstructornew (elements: Iterable<number>) => Uint8Array<ArrayBuffer> (+6 overloads)
Uint8Array([7, 8, 9])const const isValid: boolean
isValid = function verifyRaw(signature: Uint8Array, data: Uint8Array, publicKey: Uint8Array): boolean
Verify raw signature
verifyRaw(const signature: Uint8Array<ArrayBuffer>
signature, const data: Uint8Array<ArrayBuffer>
data, const publicKey: Uint8Array<ArrayBuffer>
publicKey)// => true