Verify that an event's declared aggregate x tag equals the aggregate recomputed from its path tags.
x
path
The manifest event's tags
true only when an aggregate x tag is present and matches the recomputed value; false otherwise (mismatch or missing aggregate tag)
true
false
import { verifyAggregate } from '@kehto/nip/5a';if (!verifyAggregate(manifestEvent.tags)) throw new Error('aggregate mismatch'); Copy
import { verifyAggregate } from '@kehto/nip/5a';if (!verifyAggregate(manifestEvent.tags)) throw new Error('aggregate mismatch');
Verify that an event's declared aggregate
xtag equals the aggregate recomputed from itspathtags.