# verifyFacts

> **verifyFacts**(`facts`, `options?`): `Promise`\<[`VerifyFactsResult`](https://docs.sparkletree.io/developers/api/core/interfaces/verifyfactsresult.md)\>

Defined in: facts.ts:533

Check a facts document's Ed25519 signature with WebCrypto. Works in
browsers and in Node where `crypto.subtle` supports Ed25519. Never rejects:
where Ed25519 is not available it resolves `{ valid: false, reason:
"unsupported" }`.

## Parameters

### facts

[`FactsPayload`](https://docs.sparkletree.io/developers/api/core/interfaces/factspayload.md) \| `null` \| `undefined`

### options?

[`VerifyFactsOptions`](https://docs.sparkletree.io/developers/api/core/interfaces/verifyfactsoptions.md) = `{}`

## Returns

`Promise`\<[`VerifyFactsResult`](https://docs.sparkletree.io/developers/api/core/interfaces/verifyfactsresult.md)\>
