tensority

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AIHash = NewCache()

AIHash is created for let different package share same cache

Functions

This section is empty.

Types

type Cache added in v0.4.7

type Cache struct {
	// contains filtered or unexported fields
}

Cache is create for cache the tensority result

func NewCache added in v0.4.7

func NewCache() *Cache

NewCache create a cache struct

func (*Cache) AddCache added in v0.4.7

func (a *Cache) AddCache(hash, seed, result *bc.Hash)

AddCache is used for add tensority calculate result

func (*Cache) Hash added in v0.4.7

func (a *Cache) Hash(hash, seed *bc.Hash) *bc.Hash

Hash is the real entry for call tensority algorithm

Jump to

Keyboard shortcuts

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