Documentation ¶ Index ¶ Constants Variables func Hash(inpBI [NROUNDSF]uint64, capBI [CAPLEN]uint64) ([CAPLEN]uint64, error) Constants ¶ View Source const ( // NROUNDSF const from original paper NROUNDSF = 8 // NROUNDSP const from original paper NROUNDSP = 22 // CAPLEN const CAPLEN = 4 ) Variables ¶ View Source var ( // C is a constant array of element C []*ffg.Element // M is a matrix M [][]*ffg.Element // P is a matrix P [][]*ffg.Element // S is a array of element S []*ffg.Element ) Functions ¶ func Hash ¶ func Hash(inpBI [NROUNDSF]uint64, capBI [CAPLEN]uint64) ([CAPLEN]uint64, error) Hash computes the hash for the given inputs Types ¶ This section is empty. Source Files ¶ View all Source files constants.go poseidon.go Click to show internal directories. Click to hide internal directories.