Documentation ¶
Index ¶
- Variables
- func DecodeHex(str string) ([]byte, error)
- func F(h *[8]uint64, m [16]uint64, c [2]uint64, f bool, rounds uint32)
- func MustDecodeHex(str string) []byte
- func ReadTestCase(t *testing.T, path string, f func(t *testing.T, c *TestCase))
- type Blake2f
- type Bn256Add
- type Bn256Mul
- type Bn256Pairing
- type Ecrecover
- type Identity
- type ModExp
- type Precompiled
- type Ripemd160h
- type Sha256h
- type TestCase
Constants ¶
This section is empty.
Variables ¶
View Source
var IV = [8]uint64{
0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1,
0x510e527fade682d1, 0x9b05688c2b3e6c1f, 0x1f83d9abfb41bd6b, 0x5be0cd19137e2179,
}
IV is an initialization vector for BLAKE2b
Functions ¶
func F ¶
F is a compression function for BLAKE2b. It takes as an argument the state vector `h`, message block vector `m`, offset counter `t`, final block indicator flag `f`, and number of rounds `rounds`. The state vector provided as the first parameter is modified by the function.
func MustDecodeHex ¶
MustDecodeHex type-checks and converts a hex string to a byte array
Types ¶
type Bn256Add ¶
type Bn256Add struct {
Precompiled
}
type Bn256Mul ¶
type Bn256Mul struct {
Precompiled
}
type Bn256Pairing ¶
type Bn256Pairing struct {
Precompiled
}
type Ecrecover ¶
type Ecrecover struct {
Precompiled
}
type ModExp ¶
type ModExp struct {
Precompiled
}
type Precompiled ¶
type Precompiled struct { }
Precompiled is a helper runtime for precompiled smart contracts
type Ripemd160h ¶
type Ripemd160h struct {
Precompiled
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.