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
Name | Type | Description |
---|---|---|
publicKey | Uint8Array | The public key for the block. |
block | Uint8Array | The block content to validate. |
sig | Uint8Array | The signature to verify. |
Returns
boolean
True if the signature is valid.
Constructors
constructor
• new Zip215()