forked from premiere/premiere-libtorrent
curve25519 -> ed25519
This commit is contained in:
parent
fdd856f69d
commit
94caf3f5ad
|
@ -48,7 +48,7 @@ The ``token`` field also has the same semantics as the standard DHT message
|
||||||
``get_peers`` and ``announce_peer``, when requesting an item and to write an
|
``get_peers`` and ``announce_peer``, when requesting an item and to write an
|
||||||
item respectively.
|
item respectively.
|
||||||
|
|
||||||
The ``k`` field is the 32 byte curve25519 public key, which the signature can be
|
The ``k`` field is the 32 byte ed25519 public key, which the signature can be
|
||||||
authenticated with. When looking up a mutable item, the ``target`` field MUST be
|
authenticated with. When looking up a mutable item, the ``target`` field MUST be
|
||||||
the SHA-1 hash of this key concatenated with the ``salt``, if present.
|
the SHA-1 hash of this key concatenated with the ``salt``, if present.
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ not exceed ``MAX_INT64``, (i.e. ``0x7fffffffffffffff``. A client MAY reject any
|
||||||
message with a sequence number exceeding this. A client MAY also reject any
|
message with a sequence number exceeding this. A client MAY also reject any
|
||||||
message with a negative sequence number.
|
message with a negative sequence number.
|
||||||
|
|
||||||
The signature is a 64 byte curve25519 signature of the bencoded sequence number
|
The signature is a 64 byte ed25519 signature of the bencoded sequence number
|
||||||
concatenated with the ``v`` key. e.g. something like this::
|
concatenated with the ``v`` key. e.g. something like this::
|
||||||
|
|
||||||
3:seqi4e1:v12:Hello world!
|
3:seqi4e1:v12:Hello world!
|
||||||
|
@ -190,10 +190,10 @@ Request:
|
||||||
{
|
{
|
||||||
"cas": *<optional 20 byte hash (string)>*,
|
"cas": *<optional 20 byte hash (string)>*,
|
||||||
"id": *<20 byte id of sending node (string)>*,
|
"id": *<20 byte id of sending node (string)>*,
|
||||||
"k": *<curve25519 public key (32 bytes string)>*,
|
"k": *<ed25519 public key (32 bytes string)>*,
|
||||||
"salt": *<optional salt to be appended to "k" when hashing (string)>*
|
"salt": *<optional salt to be appended to "k" when hashing (string)>*
|
||||||
"seq": *<monotonically increasing sequence number (integer)>*,
|
"seq": *<monotonically increasing sequence number (integer)>*,
|
||||||
"sig": *<curve25519 signature (64 bytes string)>*,
|
"sig": *<ed25519 signature (64 bytes string)>*,
|
||||||
"token": *<write-token (string)>*,
|
"token": *<write-token (string)>*,
|
||||||
"v": *<any bencoded type, whose encoded size < 1000>*
|
"v": *<any bencoded type, whose encoded size < 1000>*
|
||||||
},
|
},
|
||||||
|
@ -329,11 +329,11 @@ Response:
|
||||||
"r":
|
"r":
|
||||||
{
|
{
|
||||||
"id": *<20 byte id of sending node (string)>*,
|
"id": *<20 byte id of sending node (string)>*,
|
||||||
"k": *<curve25519 public key (32 bytes string)>*,
|
"k": *<ed25519 public key (32 bytes string)>*,
|
||||||
"nodes": *<IPv4 nodes close to 'target'>*,
|
"nodes": *<IPv4 nodes close to 'target'>*,
|
||||||
"nodes6": *<IPv6 nodes close to 'target'>*,
|
"nodes6": *<IPv6 nodes close to 'target'>*,
|
||||||
"seq": *<monotonically increasing sequence number (integer)>*,
|
"seq": *<monotonically increasing sequence number (integer)>*,
|
||||||
"sig": *<curve25519 signature (64 bytes string)>*,
|
"sig": *<ed25519 signature (64 bytes string)>*,
|
||||||
"token": *<write-token (string)>*,
|
"token": *<write-token (string)>*,
|
||||||
"v": *<any bencoded type, whose encoded size <= 1000>*
|
"v": *<any bencoded type, whose encoded size <= 1000>*
|
||||||
},
|
},
|
||||||
|
@ -456,7 +456,7 @@ value::
|
||||||
resources
|
resources
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Libraries that implement curve25519 DSA:
|
Libraries that implement ed25519 DSA:
|
||||||
|
|
||||||
* NaCl_
|
* NaCl_
|
||||||
* libsodium_
|
* libsodium_
|
||||||
|
|
Loading…
Reference in New Issue