Documentation ¶
Index ¶
- Constants
- func Data(data []byte) []byte
- func DiscoveryKey(publicKey []byte) []byte
- func Namespace(name []byte, count int) [][]byte
- func Parent(a, b []byte, aSize, bSize uint64) []byte
- func RandomBytes(n int) []byte
- func Sign(message, privateKey []byte) []byte
- func Tree(roots [][]byte, out []byte) []byte
- func ValidateKeyPair(keyPair KeyPair) bool
- func Verify(message, signature, publicKey []byte) bool
- func WriteUvarint(w io.Writer, x uint64)
- type KeyPair
Constants ¶
View Source
const ( LeafType = byte(0) ParentType = byte(1) RootType = byte(2) Hypercore = "hypercore" )
Variables ¶
This section is empty.
Functions ¶
func DiscoveryKey ¶
func RandomBytes ¶
func ValidateKeyPair ¶
func WriteUvarint ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.