Documentation
¶
Index ¶
- Constants
- Variables
- type BCTCurl
- type BatchHasher
- type Curl
- func (curl *Curl) Absorb(trits trinary.Trits, offset int, length int)
- func (curl *Curl) Initialize()
- func (curl *Curl) InitializeCurl(trits trinary.Trits, length int, rounds int)
- func (curl *Curl) Reset()
- func (curl *Curl) Squeeze(resp trinary.Trits, offset int, length int) trinary.Trits
- func (curl *Curl) Transform()
- type Hash
Constants ¶
View Source
const ( HASH_LENGTH = 243 STATE_LENGTH = 3 * HASH_LENGTH )
View Source
const ( CURLP81_HASH_LENGTH = 243 CURLP81_ROUNDS = 81 )
View Source
const (
BatchedHasherQueueSize = 500
)
View Source
const (
NUMBER_OF_TRITS_IN_A_TRYTE = 3
)
Variables ¶
View Source
var (
BatchedHasherCount = runtime.NumCPU() * 2
)
View Source
var (
CURLP81 = NewBatchHasher(CURLP81_HASH_LENGTH, CURLP81_ROUNDS)
)
View Source
var (
TRUTH_TABLE = trinary.Trits{1, 0, -1, 2, 1, -1, 0, 2, -1, 1, 0}
)
Functions ¶
This section is empty.
Types ¶
type BatchHasher ¶
type BatchHasher struct {
// contains filtered or unexported fields
}
func NewBatchHasher ¶
func NewBatchHasher(hashLength int, rounds int) (result *BatchHasher)
func (*BatchHasher) GetBatchSize ¶
func (this *BatchHasher) GetBatchSize() int
func (*BatchHasher) GetPendingQueueSize ¶
func (this *BatchHasher) GetPendingQueueSize() int
func (*BatchHasher) GetWorkerCount ¶
func (this *BatchHasher) GetWorkerCount() int
type Curl ¶
type Curl struct { Hash // contains filtered or unexported fields }
func (*Curl) Initialize ¶
func (curl *Curl) Initialize()
func (*Curl) InitializeCurl ¶
Click to show internal directories.
Click to hide internal directories.