diff --git a/docs/dht_store.html b/docs/dht_store.html index 8a301536f..37b0f0fca 100644 --- a/docs/dht_store.html +++ b/docs/dht_store.html @@ -100,7 +100,7 @@ i.e. the node ID of the node sending the message, to maintain the structure of t network.

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 item respectively.

-

The k field is the 32 byte ed25519 public key, which the signature +

The k field is the 32 byte curve25519 public key, which the signature can be authenticated with. When looking up a mutable item, the target field MUST be the SHA-1 hash of this key.

The distinction between storing mutable and immutable items is the inclusion @@ -191,7 +191,7 @@ and a node hosting the list node MUST not downgrade a list head from a higher se number to a lower one, only upgrade. The sequence number SHOULD 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 negative sequence number.

-

The signature is a 64 byte ed25519 signature of the bencoded sequence +

The signature is a 64 byte curve25519 signature of the bencoded sequence number concatenated with the v key. e.g. something like this:: 3:seqi4e1:v12:Hello world!.

put message

@@ -202,9 +202,9 @@ number concatenated with the v key. e.g. somet { "cas": <optional 20 byte hash (string)>, "id": <20 byte id of sending node (string)>, - "k": <ed25519 public key (32 bytes string)>, + "k": <curve25519 public key (32 bytes string)>, "seq": <monotonically increasing sequence number (integer)>, - "sig": <ed25519 signature (64 bytes string)>, + "sig": <curve25519 signature (64 bytes string)>, "token": <write-token (string)>, "v": <any bencoded type, whose encoded size < 1000> }, @@ -307,11 +307,11 @@ a critical feature in synchronization of multiple agents sharing an immutable it "r": { "id": <20 byte id of sending node (string)>, - "k": <ed25519 public key (32 bytes string)>, + "k": <curve25519 public key (32 bytes string)>, "nodes": <IPv4 nodes close to 'target'>, "nodes6": <IPv6 nodes close to 'target'>, "seq": <monotonically increasing sequence number (integer)>, - "sig": <ed25519 signature (64 bytes string)>, + "sig": <curve25519 signature (64 bytes string)>, "token": <write-token (string)>, "v": <any bencoded type, whose encoded size <= 1000> }, diff --git a/docs/index.html b/docs/index.html index f63827bc3..590d8d14c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ - +