aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernd Fix <brf@hoi-polloi.org>2023-06-30 08:26:32 +0200
committerBernd Fix <brf@hoi-polloi.org>2023-06-30 08:26:32 +0200
commit334697d1e6a728c3129fa3835ec3c1ca1a59ab06 (patch)
tree3590f2f80623e0af86e198c20ee310a74eeac674 /src
parent4a543f364b203b6fd491f64fa43495262dba6fde (diff)
downloadgnunet-go-334697d1e6a728c3129fa3835ec3c1ca1a59ab06.tar.gz
gnunet-go-334697d1e6a728c3129fa3835ec3c1ca1a59ab06.zip
Updated GANA defintions.
Diffstat (limited to 'src')
-rw-r--r--src/gnunet/enums/blocktype_string.go8
-rw-r--r--src/gnunet/enums/dht_block_type.go4
-rw-r--r--src/gnunet/enums/gnunet-dht.rec8
-rw-r--r--src/gnunet/enums/gnunet-signature.rec36
-rw-r--r--src/gnunet/go.mod16
-rw-r--r--src/gnunet/go.sum30
-rw-r--r--src/gnunet/service/dht/blocks/generic.go2
-rw-r--r--src/gnunet/service/dht/blocks/handlers.go2
-rw-r--r--src/gnunet/service/dht/blocks/hello.go2
-rw-r--r--src/gnunet/service/dht/messages.go4
-rw-r--r--src/gnunet/service/dht/module.go4
11 files changed, 76 insertions, 40 deletions
diff --git a/src/gnunet/enums/blocktype_string.go b/src/gnunet/enums/blocktype_string.go
index b81cd19..adc4e5b 100644
--- a/src/gnunet/enums/blocktype_string.go
+++ b/src/gnunet/enums/blocktype_string.go
@@ -12,13 +12,13 @@ func _() {
12 _ = x[BLOCK_TYPE_FS_DBLOCK-1] 12 _ = x[BLOCK_TYPE_FS_DBLOCK-1]
13 _ = x[BLOCK_TYPE_FS_IBLOCK-2] 13 _ = x[BLOCK_TYPE_FS_IBLOCK-2]
14 _ = x[BLOCK_TYPE_FS_ONDEMAND-6] 14 _ = x[BLOCK_TYPE_FS_ONDEMAND-6]
15 _ = x[BLOCK_TYPE_DHT_HELLO-7] 15 _ = x[BLOCK_TYPE_LEGACY_HELLO-7]
16 _ = x[BLOCK_TYPE_TEST-8] 16 _ = x[BLOCK_TYPE_TEST-8]
17 _ = x[BLOCK_TYPE_FS_UBLOCK-9] 17 _ = x[BLOCK_TYPE_FS_UBLOCK-9]
18 _ = x[BLOCK_TYPE_DNS-10] 18 _ = x[BLOCK_TYPE_DNS-10]
19 _ = x[BLOCK_TYPE_GNS_NAMERECORD-11] 19 _ = x[BLOCK_TYPE_GNS_NAMERECORD-11]
20 _ = x[BLOCK_TYPE_REVOCATION-12] 20 _ = x[BLOCK_TYPE_REVOCATION-12]
21 _ = x[BLOCK_TYPE_DHT_URL_HELLO-13] 21 _ = x[BLOCK_TYPE_DHT_HELLO-13]
22 _ = x[BLOCK_TYPE_REGEX-22] 22 _ = x[BLOCK_TYPE_REGEX-22]
23 _ = x[BLOCK_TYPE_REGEX_ACCEPT-23] 23 _ = x[BLOCK_TYPE_REGEX_ACCEPT-23]
24 _ = x[BLOCK_TYPE_SET_TEST-24] 24 _ = x[BLOCK_TYPE_SET_TEST-24]
@@ -29,13 +29,13 @@ func _() {
29 29
30const ( 30const (
31 _BlockType_name_0 = "BLOCK_TYPE_ANYBLOCK_TYPE_FS_DBLOCKBLOCK_TYPE_FS_IBLOCK" 31 _BlockType_name_0 = "BLOCK_TYPE_ANYBLOCK_TYPE_FS_DBLOCKBLOCK_TYPE_FS_IBLOCK"
32 _BlockType_name_1 = "BLOCK_TYPE_FS_ONDEMANDBLOCK_TYPE_DHT_HELLOBLOCK_TYPE_TESTBLOCK_TYPE_FS_UBLOCKBLOCK_TYPE_DNSBLOCK_TYPE_GNS_NAMERECORDBLOCK_TYPE_REVOCATIONBLOCK_TYPE_DHT_URL_HELLO" 32 _BlockType_name_1 = "BLOCK_TYPE_FS_ONDEMANDBLOCK_TYPE_LEGACY_HELLOBLOCK_TYPE_TESTBLOCK_TYPE_FS_UBLOCKBLOCK_TYPE_DNSBLOCK_TYPE_GNS_NAMERECORDBLOCK_TYPE_REVOCATIONBLOCK_TYPE_DHT_HELLO"
33 _BlockType_name_2 = "BLOCK_TYPE_REGEXBLOCK_TYPE_REGEX_ACCEPTBLOCK_TYPE_SET_TESTBLOCK_TYPE_CONSENSUS_ELEMENTBLOCK_TYPE_SETI_TESTBLOCK_TYPE_SETU_TEST" 33 _BlockType_name_2 = "BLOCK_TYPE_REGEXBLOCK_TYPE_REGEX_ACCEPTBLOCK_TYPE_SET_TESTBLOCK_TYPE_CONSENSUS_ELEMENTBLOCK_TYPE_SETI_TESTBLOCK_TYPE_SETU_TEST"
34) 34)
35 35
36var ( 36var (
37 _BlockType_index_0 = [...]uint8{0, 14, 34, 54} 37 _BlockType_index_0 = [...]uint8{0, 14, 34, 54}
38 _BlockType_index_1 = [...]uint8{0, 22, 42, 57, 77, 91, 116, 137, 161} 38 _BlockType_index_1 = [...]uint8{0, 22, 45, 60, 80, 94, 119, 140, 160}
39 _BlockType_index_2 = [...]uint8{0, 16, 39, 58, 86, 106, 126} 39 _BlockType_index_2 = [...]uint8{0, 16, 39, 58, 86, 106, 126}
40) 40)
41 41
diff --git a/src/gnunet/enums/dht_block_type.go b/src/gnunet/enums/dht_block_type.go
index 9a03bf0..66fc0ca 100644
--- a/src/gnunet/enums/dht_block_type.go
+++ b/src/gnunet/enums/dht_block_type.go
@@ -11,13 +11,13 @@ BLOCK_TYPE_ANY BlockType = 0 // Identifier for any block.
11BLOCK_TYPE_FS_DBLOCK BlockType = 1 // Data block (leaf) in the CHK tree. 11BLOCK_TYPE_FS_DBLOCK BlockType = 1 // Data block (leaf) in the CHK tree.
12BLOCK_TYPE_FS_IBLOCK BlockType = 2 // Inner block in the CHK tree. 12BLOCK_TYPE_FS_IBLOCK BlockType = 2 // Inner block in the CHK tree.
13BLOCK_TYPE_FS_ONDEMAND BlockType = 6 // Type of a block representing a block to be encoded on demand from disk. Should never appear on the network directly. 13BLOCK_TYPE_FS_ONDEMAND BlockType = 6 // Type of a block representing a block to be encoded on demand from disk. Should never appear on the network directly.
14BLOCK_TYPE_DHT_HELLO BlockType = 7 // Type of a block that contains a HELLO for a peer. 14BLOCK_TYPE_LEGACY_HELLO BlockType = 7 // Legacy type of a block that contains a HELLO for a peer.
15BLOCK_TYPE_TEST BlockType = 8 // Block for testing. 15BLOCK_TYPE_TEST BlockType = 8 // Block for testing.
16BLOCK_TYPE_FS_UBLOCK BlockType = 9 // Type of a block representing any type of search result (universal). 16BLOCK_TYPE_FS_UBLOCK BlockType = 9 // Type of a block representing any type of search result (universal).
17BLOCK_TYPE_DNS BlockType = 10 // Block for storing DNS exit service advertisements. 17BLOCK_TYPE_DNS BlockType = 10 // Block for storing DNS exit service advertisements.
18BLOCK_TYPE_GNS_NAMERECORD BlockType = 11 // Block for storing GNS record data. 18BLOCK_TYPE_GNS_NAMERECORD BlockType = 11 // Block for storing GNS record data.
19BLOCK_TYPE_REVOCATION BlockType = 12 // Block type for a revocation message by which a key is revoked. 19BLOCK_TYPE_REVOCATION BlockType = 12 // Block type for a revocation message by which a key is revoked.
20BLOCK_TYPE_DHT_URL_HELLO BlockType = 13 // Type of a block that contains a DHT-NG HELLO for a peer. 20BLOCK_TYPE_DHT_HELLO BlockType = 13 // Type of a block that contains a DHT-NG HELLO for a peer.
21BLOCK_TYPE_REGEX BlockType = 22 // Block to store a cadet regex state 21BLOCK_TYPE_REGEX BlockType = 22 // Block to store a cadet regex state
22BLOCK_TYPE_REGEX_ACCEPT BlockType = 23 // Block to store a cadet regex accepting state 22BLOCK_TYPE_REGEX_ACCEPT BlockType = 23 // Block to store a cadet regex accepting state
23BLOCK_TYPE_SET_TEST BlockType = 24 // Block for testing set/consensus. If first byte of the block is non-zero, the block is considered invalid. 23BLOCK_TYPE_SET_TEST BlockType = 24 // Block for testing set/consensus. If first byte of the block is non-zero, the block is considered invalid.
diff --git a/src/gnunet/enums/gnunet-dht.rec b/src/gnunet/enums/gnunet-dht.rec
index e2366d3..e73dea4 100644
--- a/src/gnunet/enums/gnunet-dht.rec
+++ b/src/gnunet/enums/gnunet-dht.rec
@@ -37,8 +37,8 @@ Comment: Type of a block representing a block to be encoded on demand from disk.
37References: None 37References: None
38 38
39Number: 7 39Number: 7
40Name: DHT_HELLO 40Name: LEGACY_HELLO
41Comment: Type of a block that contains a HELLO for a peer. 41Comment: Legacy type of a block that contains a HELLO for a peer.
42References: None 42References: None
43 43
44Number: 8 44Number: 8
@@ -67,9 +67,9 @@ Comment: Block type for a revocation message by which a key is revoked.
67References: None 67References: None
68 68
69Number: 13 69Number: 13
70Name: DHT_URL_HELLO 70Name: DHT_HELLO
71Comment: Type of a block that contains a DHT-NG HELLO for a peer. 71Comment: Type of a block that contains a DHT-NG HELLO for a peer.
72References: None 72References: LSD-0004
73 73
74Number: 22 74Number: 22
75Name: REGEX 75Name: REGEX
diff --git a/src/gnunet/enums/gnunet-signature.rec b/src/gnunet/enums/gnunet-signature.rec
index fbd57e4..1a73141 100644
--- a/src/gnunet/enums/gnunet-signature.rec
+++ b/src/gnunet/enums/gnunet-signature.rec
@@ -224,6 +224,12 @@ Subsystem: GNUnet-TRANSPORT-TCP
224# 224#
225# Exchange offline signatures (with master key) 225# Exchange offline signatures (with master key)
226# 226#
227
228Number: 1017
229Name: MASTER_AML_KEY
230Comment: Initialize or update the status of an AML key for an AML officer
231Package: GNU Taler
232
227Number: 1018 233Number: 1018
228Name: MASTER_DRAIN_PROFIT 234Name: MASTER_DRAIN_PROFIT
229Comment: Affirm wiring of exchange profits to operator account. 235Comment: Affirm wiring of exchange profits to operator account.
@@ -389,6 +395,11 @@ Name: EXCHANGE_CONFIRM_PURSE_REFUND
389Comment: Signature by which the exchange confirms that a purse expired and a coin was refunded. 395Comment: Signature by which the exchange confirms that a purse expired and a coin was refunded.
390Package: GNU Taler 396Package: GNU Taler
391 397
398Number: 1050
399Name: EXCHANGE_CONFIRM_AGE_WITHDRAW
400Comment: Signature where the Exchange confirms an age-withdraw.
401Package: GNU Taler
402
392# 403#
393# Auditor signatures 404# Auditor signatures
394# 405#
@@ -531,6 +542,16 @@ Name: WALLET_RESERVE_ATTEST_DETAILS
531Comment: Request attestation about reserve owner. Signed by the reserve private key. 542Comment: Request attestation about reserve owner. Signed by the reserve private key.
532Package: GNU Taler 543Package: GNU Taler
533 544
545Number: 1220
546Name: WALLET_PURSE_DELETE
547Comment: Signature by which a wallet requests a purse to be deleted.
548Package: GNU Taler
549
550Number: 1221
551Name: WALLET_RESERVE_AGE_WITHDRAW
552Comment: Signature where the reserve key confirms an age-withdraw request. Signed with the reserve private key.
553Package: GNU Taler
554
534# 555#
535# Security module signatures 556# Security module signatures
536# 557#
@@ -565,6 +586,21 @@ Comment: EdDSA test signature.
565Package: GNU Taler 586Package: GNU Taler
566 587
567# 588#
589# AML officer signatures
590#
591
592Number: 1350
593Name: AML_DECISION
594Comment: Signature by which an AML officer signs an AML decision.
595Package: GNU Taler
596
597Number: 1351
598Name: AML_QUERY
599Comment: Signature by which an AML officer requests AML data.
600Package: GNU Taler
601
602
603#
568# GNU Anastasis signatures, >= 1400 604# GNU Anastasis signatures, >= 1400
569# 605#
570 606
diff --git a/src/gnunet/go.mod b/src/gnunet/go.mod
index 4c12af3..e45a035 100644
--- a/src/gnunet/go.mod
+++ b/src/gnunet/go.mod
@@ -3,25 +3,25 @@ module gnunet
3go 1.19 3go 1.19
4 4
5require ( 5require (
6 github.com/bfix/gospel v1.2.21 6 github.com/bfix/gospel v1.2.22
7 github.com/go-redis/redis/v8 v8.11.5 7 github.com/go-redis/redis/v8 v8.11.5
8 github.com/go-sql-driver/mysql v1.6.0 8 github.com/go-sql-driver/mysql v1.6.0
9 github.com/gorilla/mux v1.8.0 9 github.com/gorilla/mux v1.8.0
10 github.com/gorilla/rpc v1.2.0 10 github.com/gorilla/rpc v1.2.0
11 github.com/mattn/go-sqlite3 v1.14.13 11 github.com/mattn/go-sqlite3 v1.14.13
12 github.com/miekg/dns v1.1.49 12 github.com/miekg/dns v1.1.49
13 golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 13 golang.org/x/crypto v0.8.0
14) 14)
15 15
16require ( 16require (
17 github.com/cespare/xxhash/v2 v2.1.2 // indirect 17 github.com/cespare/xxhash/v2 v2.1.2 // indirect
18 github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect 18 github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
19 github.com/huin/goupnp v1.0.0 // indirect 19 github.com/huin/goupnp v1.0.0 // indirect
20 golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect 20 golang.org/x/mod v0.8.0 // indirect
21 golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect 21 golang.org/x/net v0.9.0 // indirect
22 golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect 22 golang.org/x/sys v0.7.0 // indirect
23 golang.org/x/text v0.3.7 // indirect 23 golang.org/x/text v0.9.0 // indirect
24 golang.org/x/tools v0.1.11 // indirect 24 golang.org/x/tools v0.6.0 // indirect
25) 25)
26 26
27// replace github.com/bfix/gospel v1.2.21 => ../gospel 27// replace github.com/bfix/gospel v1.2.22 => ../gospel
diff --git a/src/gnunet/go.sum b/src/gnunet/go.sum
index 26ce2b7..c7c04b9 100644
--- a/src/gnunet/go.sum
+++ b/src/gnunet/go.sum
@@ -1,5 +1,5 @@
1github.com/bfix/gospel v1.2.21 h1:rgllMlR+2AZt6+x0uaBF67a+pM7fJxHiO93amhKXZNU= 1github.com/bfix/gospel v1.2.22 h1:b7hChvq4Cn/+KZDiaE0bKBx7b6L+aObbjR1dj6V5f9o=
2github.com/bfix/gospel v1.2.21/go.mod h1:cdu63bA9ZdfeDoqZ+vnWOcbY9Puwdzmf5DMxMGMznRI= 2github.com/bfix/gospel v1.2.22/go.mod h1:cdu63bA9ZdfeDoqZ+vnWOcbY9Puwdzmf5DMxMGMznRI=
3github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= 3github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
4github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 4github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
5github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= 5github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
@@ -27,21 +27,21 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1
27golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 27golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
28golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 28golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
29golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= 29golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
30golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 h1:SLP7Q4Di66FONjDJbCYrCRrh97focO6sLogHO7/g8F0= 30golang.org/x/crypto v0.8.0 h1:pd9TJtTueMTVQXzk8E2XESSMQDj/U7OUu0PqJqPXQjQ=
31golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= 31golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
32golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 32golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
33golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= 33golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
34golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= 34golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
35golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 35golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
36golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 36golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
37golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 37golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
38golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 38golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
39golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 39golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
40golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 h1:NWy5+hlRbC7HK+PmcXVUmW1IMyFce7to56IUvhUFm7Y= 40golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
41golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 41golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
42golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 42golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
43golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
44golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 43golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
44golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
45golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 45golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
46golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 46golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
47golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 47golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -50,21 +50,21 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
50golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 50golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
51golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 51golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
52golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 52golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
53golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= 53golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU=
54golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 54golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
55golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= 55golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
56golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 56golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
57golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 57golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
58golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 58golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
59golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 59golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
60golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 60golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
61golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 61golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
62golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 62golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
63golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 63golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
64golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 64golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
65golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 65golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
66golang.org/x/tools v0.1.11 h1:loJ25fNOEhSXfHrpoGj91eCUThwdNX6u24rO1xnNteY= 66golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
67golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= 67golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
68golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 68golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
69golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 69golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
70golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 70golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
diff --git a/src/gnunet/service/dht/blocks/generic.go b/src/gnunet/service/dht/blocks/generic.go
index 374bfc6..c0a9fe9 100644
--- a/src/gnunet/service/dht/blocks/generic.go
+++ b/src/gnunet/service/dht/blocks/generic.go
@@ -220,7 +220,7 @@ func (b *GenericBlock) String() string {
220var ( 220var (
221 blkFactory = map[enums.BlockType]func() Block{ 221 blkFactory = map[enums.BlockType]func() Block{
222 enums.BLOCK_TYPE_GNS_NAMERECORD: NewGNSBlock, 222 enums.BLOCK_TYPE_GNS_NAMERECORD: NewGNSBlock,
223 enums.BLOCK_TYPE_DHT_URL_HELLO: NewHelloBlock, 223 enums.BLOCK_TYPE_DHT_HELLO: NewHelloBlock,
224 enums.BLOCK_TYPE_TEST: NewTestBlock, 224 enums.BLOCK_TYPE_TEST: NewTestBlock,
225 } 225 }
226) 226)
diff --git a/src/gnunet/service/dht/blocks/handlers.go b/src/gnunet/service/dht/blocks/handlers.go
index d8db6ae..d1f7533 100644
--- a/src/gnunet/service/dht/blocks/handlers.go
+++ b/src/gnunet/service/dht/blocks/handlers.go
@@ -83,6 +83,6 @@ func init() {
83 BlockHandlers = make(map[enums.BlockType]BlockHandler) 83 BlockHandlers = make(map[enums.BlockType]BlockHandler)
84 84
85 // add validation functions 85 // add validation functions
86 BlockHandlers[enums.BLOCK_TYPE_DHT_URL_HELLO] = new(HelloBlockHandler) 86 BlockHandlers[enums.BLOCK_TYPE_DHT_HELLO] = new(HelloBlockHandler)
87 BlockHandlers[enums.BLOCK_TYPE_TEST] = new(TestBlockHandler) 87 BlockHandlers[enums.BLOCK_TYPE_TEST] = new(TestBlockHandler)
88} 88}
diff --git a/src/gnunet/service/dht/blocks/hello.go b/src/gnunet/service/dht/blocks/hello.go
index da67521..5a1a3bb 100644
--- a/src/gnunet/service/dht/blocks/hello.go
+++ b/src/gnunet/service/dht/blocks/hello.go
@@ -231,7 +231,7 @@ func (h *HelloBlock) finalize() (err error) {
231 231
232// Return the block type 232// Return the block type
233func (h *HelloBlock) Type() enums.BlockType { 233func (h *HelloBlock) Type() enums.BlockType {
234 return enums.BLOCK_TYPE_DHT_URL_HELLO 234 return enums.BLOCK_TYPE_DHT_HELLO
235} 235}
236 236
237// Bytes returns the raw block data 237// Bytes returns the raw block data
diff --git a/src/gnunet/service/dht/messages.go b/src/gnunet/service/dht/messages.go
index 912203d..18249d7 100644
--- a/src/gnunet/service/dht/messages.go
+++ b/src/gnunet/service/dht/messages.go
@@ -132,7 +132,7 @@ func (m *Module) HandleMessage(ctx context.Context, sender *util.PeerID, msgIn m
132 132
133 //------------------------------------------------------ 133 //------------------------------------------------------
134 // query for a HELLO? (9.4.3.3a) 134 // query for a HELLO? (9.4.3.3a)
135 if btype == enums.BLOCK_TYPE_DHT_URL_HELLO { 135 if btype == enums.BLOCK_TYPE_DHT_HELLO {
136 // try to find results in HELLO cache 136 // try to find results in HELLO cache
137 results = m.lookupHelloCache(label, addr, rf, approx) 137 results = m.lookupHelloCache(label, addr, rf, approx)
138 // DEBUG: 138 // DEBUG:
@@ -315,7 +315,7 @@ func (m *Module) HandleMessage(ctx context.Context, sender *util.PeerID, msgIn m
315 //-------------------------------------------------------------- 315 //--------------------------------------------------------------
316 // if the put is for a HELLO block, add the sender to the 316 // if the put is for a HELLO block, add the sender to the
317 // routing table (9.3.2.9) 317 // routing table (9.3.2.9)
318 if msg.BType == enums.BLOCK_TYPE_DHT_HELLO { 318 if msg.BType == enums.BLOCK_TYPE_LEGACY_HELLO {
319 m.addSender(msg.Block, label, sender) 319 m.addSender(msg.Block, label, sender)
320 } 320 }
321 //-------------------------------------------------------------- 321 //--------------------------------------------------------------
diff --git a/src/gnunet/service/dht/module.go b/src/gnunet/service/dht/module.go
index a954a37..16881c5 100644
--- a/src/gnunet/service/dht/module.go
+++ b/src/gnunet/service/dht/module.go
@@ -152,7 +152,7 @@ func NewModule(ctx context.Context, c *core.Core, cfg *config.DHTConfig) (m *Mod
152 // initiate peer discovery 152 // initiate peer discovery
153 case <-ticker.C: 153 case <-ticker.C:
154 // query DHT for our own HELLO block 154 // query DHT for our own HELLO block
155 query := blocks.NewGenericQuery(key, enums.BLOCK_TYPE_DHT_URL_HELLO, flags) 155 query := blocks.NewGenericQuery(key, enums.BLOCK_TYPE_DHT_HELLO, flags)
156 logger.Printf(logger.DBG, "[dht-discovery] own HELLO key %s", query.Key().Short()) 156 logger.Printf(logger.DBG, "[dht-discovery] own HELLO key %s", query.Key().Short())
157 resCh = m.Get(ctx, query) 157 resCh = m.Get(ctx, query)
158 158
@@ -160,7 +160,7 @@ func NewModule(ctx context.Context, c *core.Core, cfg *config.DHTConfig) (m *Mod
160 case res := <-resCh: 160 case res := <-resCh:
161 // check for correct type 161 // check for correct type
162 btype := res.Type() 162 btype := res.Type()
163 if btype == enums.BLOCK_TYPE_DHT_URL_HELLO { 163 if btype == enums.BLOCK_TYPE_DHT_HELLO {
164 hb, ok := res.(*blocks.HelloBlock) 164 hb, ok := res.(*blocks.HelloBlock)
165 if !ok { 165 if !ok {
166 logger.Println(logger.WARN, "[dht-discovery] received invalid block data") 166 logger.Println(logger.WARN, "[dht-discovery] received invalid block data")