You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config/config.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ type NodeConfig struct {
35
35
AllowedPublicKeys []string`comment:"List of peer public keys to allow incoming peering connections\nfrom. If left empty/undefined then all connections will be allowed\nby default. This does not affect outgoing peerings, nor does it\naffect link-local peers discovered via multicast."`
36
36
PublicKeystring`comment:"Your public key. Your peers may ask you for this to put\ninto their AllowedPublicKeys configuration."`
37
37
PrivateKeystring`comment:"Your private key. DO NOT share this with anyone!"`
38
+
Domainstring`comment:"Your domain. Should be registered with consensus algo."`
38
39
IfNamestring`comment:"Local network interface name for TUN adapter, or \"auto\" to select\nan interface automatically, or \"none\" to run without TUN."`
39
40
IfMTUuint64`comment:"Maximum Transmission Unit (MTU) size for your local TUN interface.\nDefault is the largest supported size for your platform. The lowest\npossible value is 1280."`
40
41
NodeInfoPrivacybool`comment:"By default, nodeinfo contains some defaults including the platform,\narchitecture and RiV-mesh version. These can help when surveying\nthe network and diagnosing network routing problems. Enabling\nnodeinfo privacy prevents this, so that only items specified in\n\"NodeInfo\" are sent back if specified."`
// AddrForKey takes an ed25519.PublicKey as an argument and returns an *Address.
54
-
// This function returns nil if the key length is not ed25519.PublicKeySize.
55
+
// AddrForDomain takes a Domain as an argument and returns an *Address.
56
+
// This function returns nil if the Domain length is greater ed25519.PublicKeySize.
55
57
// This address begins with the contents of GetPrefix(), with the last bit set to 0 to indicate an address.
56
58
// The following 8 bits are set to the number of leading 1 bits in the bitwise inverse of the public key.
57
59
// The bitwise inverse of the key, excluding the leading 1 bits and the first leading 0 bit, is truncated to the appropriate length and makes up the remainder of the address.
// SubnetForKey takes an ed25519.PublicKey as an argument and returns a *Subnet.
104
-
// This function returns nil if the key length is not ed25519.PublicKeySize.
105
+
// SubnetForDomain takes a Domain as an argument and returns a *Subnet.
106
+
// This function returns nil if the Domain length is greater ed25519.PublicKeySize.
105
107
// The subnet begins with the address prefix, with the last bit set to 1 to indicate a prefix.
106
108
// The following 8 bits are set to the number of leading 1 bits in the bitwise inverse of the key.
107
109
// The bitwise inverse of the key, excluding the leading 1 bits and the first leading 0 bit, is truncated to the appropriate length and makes up the remainder of the subnet.
0 commit comments