Skip to main content

Class: Zip215

Implementation of Zip215.

Table of contents

Methods

Constructors

Methods

verify

Static verify(publicKey, block, sig): boolean

Verify reports whether sig is a valid signature of block by publicKey, using precisely-specified validation criteria (ZIP 215) suitable for use in consensus-critical contexts.

Parameters

NameTypeDescription
publicKeyUint8ArrayThe public key for the block.
blockUint8ArrayThe block content to validate.
sigUint8ArrayThe signature to verify.

Returns

boolean

True if the signature is valid.

Constructors

constructor

new Zip215()