mattrglobal / node-bbs-signatures

An implementation of BBS+ signatures using rust and typescript for node.js
Apache License 2.0
58 stars 27 forks source link

Strict check for given messages count and originally revealed #175

Closed anton-iskryzhytskyi closed 2 years ago

anton-iskryzhytskyi commented 2 years ago

Description

Motivation and Context

The main point of this PR is to restrict providing more messages to the blsVerifyProof than it was revealed originally. For now it is possible to provide all revealed + signed messages in the right order and then add to the messages array some additional, not signed, not revealed messages and receive a successful response result.verified === true. More details in the issue

Does this PR introduce a breaking change?

Which merge strategy will you use?

tplooker commented 2 years ago

@anton-iskryzhytskyi thanks for this contribution!