-// authorize checks if 64 bit access slice contain has accessBit set
-// TODO: refactor to use accessBitmap type
-func authorize(access *[]byte, accessBit int) bool {
- bits := big.NewInt(int64(binary.BigEndian.Uint64(*access)))
-
- return bits.Bit(63-accessBit) == 1