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
// AddrForKey takes a Domain as an argument and returns an *Address.
55
+
// AddrForDomain takes a Domain as an argument and returns an *Address.
56
56
// This function returns nil if the key length is not ed25519.PublicKeySize.
57
57
// This address begins with the contents of GetPrefix(), with the last bit set to 0 to indicate an address.
58
58
// The following 8 bits are set to the number of leading 1 bits in the bitwise inverse of the public key.
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.
// The bitwise inverse of the Domain name, 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 a Domain as an argument and returns a *Subnet.
105
+
// SubnetForDomain takes a Domain as an argument and returns a *Subnet.
106
106
// This function returns nil if the key length is not ed25519.PublicKeySize.
107
107
// The subnet begins with the address prefix, with the last bit set to 1 to indicate a prefix.
108
108
// The following 8 bits are set to the number of leading 1 bits in the bitwise inverse of the key.
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.
// The bitwise inverse of the Domain name bytes, 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