struct NftGuardConstState { bytes collectionScript; int[6] localIdArray; } library NftGuardProto { static function stateHash(NftGuardConstState _state) : bytes { bytes inputOutpointAll = _state.collectionScript; loop (6) : i { inputOutpointAll += pack(_state.localIdArray[i]); } return hash160(inputOutpointAll); } }