GNUNET-SCALARPRODUCT(1) | General Commands Manual | GNUNET-SCALARPRODUCT(1) |
gnunet-scalarproduct
—
compute a vectorproduct
gnunet-scalarproduct |
[-e ELEMENTS |
--elements= ELEMENTS]
[-m MASK |
--mask= MASK]
[-k KEY |
--key= KEY]
[-c FILENAME |
-config=FILENAME]
[-p PEERID |
--peer= PEERID]
[-h | --help ]
[-L LOGLEVEL |
--loglevel= LOGLEVEL]
[-v | --version ] |
gnunet-scalarproduct
enables you to
compute a vectorproduct across two peers
Alice
and Bob.
A client can issue one of two messages to its service:
Both requests must share the same SID, which can be an arbitrary string identifying the session. SIDs should be unique, however it is sufficient to guarantee the uniqueness of the tuple element count and session ID.
Alice's client must supply the ASCII encoded peer ID of bob's service, it will internally be checked by the client for validity. Invalid values here result in the client or the service failing the session.
Elements are handed over as signed decimal integers, the element count supplied by Alice and Bob must match. Alice can also supply a mask for these values to her service, which allows partial vector products to be computed across the vector. Elements can be masked by setting their the corresponding mask element to zero, any other value means the element will not be masked. Alice's client will also mask all 0-values to avoid information leakage to Bob.
The protocol by definition relies on Alice and Bob being benign, thus Bob can arbitrarily falsify his information. Both peers collaborate to achieve a correct result.
The options are as follows:
-e
ELEMENTS |
--elements=
ELEMENTS-m
MASK |
--mask=
MASK-k
KEY |
--key=
KEY-c
FILENAME |
--config=
FILENAME-p
PEERID |
--peer=
PEERID-h
|
--help
-L
LOGLEVEL |
--loglevel=
LOGLEVEL-v
|
--version
The full documentation for gnunet is maintained as a Texinfo manual. If the info(1) and gnunet programs are properly installed at your site, the command
info gnunet
should give you access to the complete handbook,
info gnunet-c-tutorial
will give you access to a tutorial for developers.
Depending on your installation, this information is also available in gnunet(7) and gnunet-c-tutorial(7).
Report bugs by using https://bugs.gnunet.org or by sending electronic mail to <gnunet-developers@gnu.org>.
August 8, 2013 | Debian |