Keccakf circuit implemented

This commit is contained in:
2021-11-24 12:48:00 +01:00
parent f88c2834fb
commit 4153b516f0
4 changed files with 94 additions and 3 deletions

View File

@@ -92,8 +92,19 @@ func TestKeccakf(t *testing.T) {
15083668107635345971})
// compute again keccakf on the current state
// s = keccakf(s)
// qt.Assert(t, bitsToU64Array(s[:]), qt.DeepEquals, []uint64{})
s = keccakf(s)
qt.Assert(t, bitsToU64Array(s[:]), qt.DeepEquals,
[]uint64{269318771259381490, 15892848561416382510,
12485559500958802382, 4360182510883008729,
14284025675983944434, 8800366419087562177, 7881853509112258378,
9503857914080778528, 17110477940977988953,
13825318756568052601, 11460650932194163315,
13272167288297399439, 13599957064256729412,
12730838251751851758, 13736647180617564382,
5651695613583298166, 15496251216716036782, 9748494184433838858,
3637745438296580159, 3821184813198767406, 15603239432236101315,
3726326332491237029, 7819962668913661099, 2285898735263816116,
13518516210247555620})
}
func TestFinal(t *testing.T) {