Skip to content

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

ParameterType
signatureUint8Array<ArrayBufferLike>
dataUint8Array<ArrayBufferLike>
publicKeyUint8Array<ArrayBufferLike>

Returns

boolean

Example

import {
function verifyRaw(signature: Uint8Array, data: Uint8Array, publicKey: Uint8Array): boolean

Verify raw signature

@paramsignature

@paramdata

@parampublicKey

@returns

@example

import { verifyRaw } from 'iso-filecoin/ledger'
const signature = new Uint8Array([1, 2, 3])
const data = new Uint8Array([4, 5, 6])
const publicKey = new Uint8Array([7, 8, 9])
const isValid = verifyRaw(signature, data, publicKey)
// => true

verifyRaw
} from 'iso-filecoin/ledger'
const
const signature: Uint8Array<ArrayBuffer>
signature
= new
var Uint8Array: Uint8ArrayConstructor
new (elements: Iterable<number>) => Uint8Array<ArrayBuffer> (+6 overloads)
Uint8Array
([1, 2, 3])
const
const data: Uint8Array<ArrayBuffer>
data
= new
var Uint8Array: Uint8ArrayConstructor
new (elements: Iterable<number>) => Uint8Array<ArrayBuffer> (+6 overloads)
Uint8Array
([4, 5, 6])
const
const publicKey: Uint8Array<ArrayBuffer>
publicKey
= new
var Uint8Array: Uint8ArrayConstructor
new (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

@paramsignature

@paramdata

@parampublicKey

@returns

@example

import { verifyRaw } from 'iso-filecoin/ledger'
const signature = new Uint8Array([1, 2, 3])
const data = new Uint8Array([4, 5, 6])
const publicKey = new Uint8Array([7, 8, 9])
const isValid = verifyRaw(signature, data, publicKey)
// => true

verifyRaw
(
const signature: Uint8Array<ArrayBuffer>
signature
,
const data: Uint8Array<ArrayBuffer>
data
,
const publicKey: Uint8Array<ArrayBuffer>
publicKey
)
// => true