Skip to content

Usage of "signer" in appv2.NDNApp().express() #64

Closed Answered by zjkmxy
mandaou asked this question in Q&A
Discussion options

You must be logged in to vote

Hello.
This is because Appv2 requires you verify all signatures.
On the producer's route registration:

@app.route('/example/testApp')
def on_interest(name: enc.FormalName, _app_param: typing.Optional[enc.BinaryStr],

The validator argument is by default None, which will let the NDNApp drop all signed Interests because the signature is unable to verify.
If you want to pass the validation, you can add validator=appv2.pass_all to route.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mandaou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants