-
|
Hello, In reference to python-ndn/examples/appv2/basic_packets/ app = appv2.NDNApp()
keychain = app.default_keychain()
...
data_name, content, pkt_context = await app.express(
name, validator=appv2.pass_all, app_param=msg.encode(), signer=keychain.get_signer({}),
must_be_fresh=True, can_be_prefix=False, lifetime=6000)From the consumer side, i am receiving the following error: And from the producer side, I am receiving the follow error: And this is the wireshark dump: What am I missing here ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hello. python-ndn/examples/appv2/basic_packets/producer.py Lines 34 to 35 in 070e160 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.
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you, adding the validator to the producers' route solved the issue. |
Beta Was this translation helpful? Give feedback.

Hello.
This is because Appv2 requires you verify all signatures.
On the producer's route registration:
python-ndn/examples/appv2/basic_packets/producer.py
Lines 34 to 35 in 070e160
The
validatorargument is by defaultNone, 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_alltoroute.