Documentation ¶
Index ¶
Constants ¶
View Source
const ( HashLength = 16 WordLength = 128 BranchElementLength = 32 )
Variables ¶
This section is empty.
Functions ¶
func BigToBase62 ¶
return 11 chars base 62 representation of a big int base chars are 0-9 a-z A-Z
func BytesToBig ¶
Types ¶
type BranchElement ¶
type BranchElement [BranchElementLength]byte
func BranchElementFromHash ¶
func BranchElementFromHash(a, b SPHash) BranchElement
func (BranchElement) Big ¶
func (h BranchElement) Big() *big.Int
func (BranchElement) Bytes ¶
func (h BranchElement) Bytes() []byte
func (BranchElement) Hex ¶
func (h BranchElement) Hex() string
func (BranchElement) Str ¶
func (h BranchElement) Str() string
type SPHash ¶
type SPHash [HashLength]byte
Click to show internal directories.
Click to hide internal directories.