how to add an application parametet to signed interests? #47
Replies: 1 comment
-
A byte string can be anything. The format is define by your application, not NDN. You can use Pickle, JSON, Protobuf, etc. Also, the code you gave does not looks good: ExpirationPeriod is a type number defined by NFD. I suggest you use your application-defined type number instead of keeping synced with NFD.
No. SignatureInfo is delegated to the signer.
Sorry about this. Currently we have not settled down which one to use, and the default signer does not write any. |
Beta Was this translation helpful? Give feedback.
-
I use
express_interest
sending an signed interest with customed signatureinfo. I want to add an applicatioin parameter to the interest, which is like the following code when usingncn-cxx
:It seems like the
app_param
parameter ofexpress_interest
is a byte string, But I don't know how to generate the string. for instance, what kind of byte string can I use to produce the same interest packet as abovec++
code? The document on this aspect is very rare.Another question is that it seems like user cannot customize their signature info. When I want to add timestamp and nonce to signature, I have to add some codes to
make_interest
:Beta Was this translation helpful? Give feedback.
All reactions