dht

package
v0.0.0-...-405f43c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2014 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(Sid1, Sid2, Skey string) bool

func CalcFinger

func CalcFinger(n []byte, k int, m int) (string, []byte)

(n + 2^(k-1)) mod (2^m)

func Distance

func Distance(a, b []byte, bits int) *big.Int

func GenerateNodeId

func GenerateNodeId() string

func Sha1hash

func Sha1hash(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL